ruby_vault 0.2.0.pre.1 → 0.2.0.pre.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d1e7d27dee803ad1c0b0dbd72a3793def746b3e59ab81cb3a2017b99fc5e38a
4
- data.tar.gz: 8b2fb3ad754e089e71b484488163cd0efe82b8ae0a1ade4aed1968be683322f9
3
+ metadata.gz: ace6e0302c893cfba559c149924b72ccd633a64d5b77a2759e6500bfcd5e15cf
4
+ data.tar.gz: f94d0a8f3235b62bb6ff81696a55f9c4630641bd36c1885c776039aec3be55eb
5
5
  SHA512:
6
- metadata.gz: b1aceb598e8d6cdc4de13bf72133c5a6d81b14c7bad903e987af7bc65009679cdfd8b9222356a083a9fb78739f5cf905e363a1aba5117f98e75eacdeed2967d3
7
- data.tar.gz: d1470e95fb2074f28c64cba465431aad638fd81604c842fb2cdae2cbf3ae10381c3b036ed1a16bfea1cc56f561c5ae478846ab9258d42d4020e78149eae5a029
6
+ metadata.gz: 7e62c49da83daa094febaf352eb14948098360d7ac9e4ea8b161de6c5bfa41ef6145223f6c1d0f569ee53a7063636fa934997fde3b54696f8ca8e021e183be3e
7
+ data.tar.gz: b723fdf4dc3e0526939ecbc24917429ebd7954ce6489af5770c941f09d30490f14447b713f00d08a4dcd7cbf05fb3a98eb4113b1601dd16d6949f77301b9f4be
data/CODE_OF_CONDUCT.md CHANGED
@@ -5,9 +5,9 @@
5
5
  In the interest of fostering an open and welcoming environment, we as
6
6
  contributors and maintainers pledge to making participation in our project and
7
7
  our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
8
+ size, disability, ethnicity, gender identity and expression, level of
9
+ experience, nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
11
 
12
12
  ## Our Standards
13
13
 
@@ -23,7 +23,7 @@ include:
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
25
  * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
26
+ advances
27
27
  * Trolling, insulting/derogatory comments, and personal or political attacks
28
28
  * Public or private harassment
29
29
  * Publishing others' private information, such as a physical or electronic
@@ -37,11 +37,11 @@ Project maintainers are responsible for clarifying the standards of acceptable
37
37
  behavior and are expected to take appropriate and fair corrective action in
38
38
  response to any instances of unacceptable behavior.
39
39
 
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
40
+ Project maintainers have the right and responsibility to remove, edit, or reject
41
+ comments, commits, code, wiki edits, issues, and other contributions that are
42
+ not aligned to this Code of Conduct, or to ban temporarily or permanently any
43
+ contributor for other behaviors that they deem inappropriate, threatening,
44
+ offensive, or harmful.
45
45
 
46
46
  ## Scope
47
47
 
@@ -58,8 +58,9 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
58
  reported by contacting the project team at maintainers@infrablocks.io. All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
60
  is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
61
+ obligated to maintain confidentiality with regard to the reporter of an
62
+ incident. Further details of specific enforcement policies may be posted
63
+ separately.
63
64
 
64
65
  Project maintainers who do not follow or enforce the Code of Conduct in good
65
66
  faith may face temporary or permanent repercussions as determined by other
@@ -67,8 +68,9 @@ members of the project's leadership.
67
68
 
68
69
  ## Attribution
69
70
 
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
71
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
72
+ version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
72
73
 
73
74
  [homepage]: http://contributor-covenant.org
75
+
74
76
  [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile.lock CHANGED
@@ -1,37 +1,51 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_vault (0.2.0.pre.1)
4
+ ruby_vault (0.2.0.pre.2)
5
5
  immutable-struct (~> 2.4)
6
6
  lino (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (7.0.4)
11
+ activesupport (7.1.1)
12
+ base64
13
+ bigdecimal
12
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ connection_pool (>= 2.2.5)
16
+ drb
13
17
  i18n (>= 1.6, < 2)
14
18
  minitest (>= 5.1)
19
+ mutex_m
15
20
  tzinfo (~> 2.0)
16
- addressable (2.8.1)
21
+ addressable (2.8.5)
17
22
  public_suffix (>= 2.0.2, < 6.0)
18
23
  ast (2.4.2)
24
+ base64 (0.1.1)
25
+ bigdecimal (3.1.4)
19
26
  coderay (1.1.3)
20
27
  colored2 (3.1.2)
21
- concurrent-ruby (1.1.10)
28
+ concurrent-ruby (1.2.2)
29
+ connection_pool (2.4.1)
22
30
  diff-lcs (1.5.0)
23
31
  docile (1.4.0)
24
- excon (0.95.0)
25
- faker (3.1.0)
32
+ drb (2.1.1)
33
+ ruby2_keywords
34
+ excon (0.104.0)
35
+ faker (3.2.1)
26
36
  i18n (>= 1.8.11, < 2)
27
- faraday (2.7.2)
37
+ faraday (2.7.11)
38
+ base64
28
39
  faraday-net_http (>= 2.0, < 3.1)
29
40
  ruby2_keywords (>= 0.0.4)
30
41
  faraday-net_http (3.0.2)
31
- ffi (1.15.5)
42
+ ffi (1.16.3)
32
43
  formatador (1.1.0)
33
44
  gem-release (2.2.2)
34
- guard (2.18.0)
45
+ git (1.18.0)
46
+ addressable (~> 2.8)
47
+ rchardet (~> 1.8)
48
+ guard (2.18.1)
35
49
  formatador (>= 0.2.4)
36
50
  listen (>= 2.7, < 4.0)
37
51
  lumberjack (>= 1.0.12, < 2.0)
@@ -47,44 +61,57 @@ GEM
47
61
  rspec (>= 2.99.0, < 4.0)
48
62
  hamster (3.0.0)
49
63
  concurrent-ruby (~> 1.0)
50
- i18n (1.12.0)
64
+ i18n (1.14.1)
51
65
  concurrent-ruby (~> 1.0)
52
66
  immutable-struct (2.4.1)
53
67
  json (2.6.3)
68
+ language_server-protocol (3.17.0.3)
54
69
  lino (3.1.0)
55
70
  hamster (~> 3.0)
56
71
  open4 (~> 1.3)
57
- listen (3.7.1)
72
+ listen (3.8.0)
58
73
  rb-fsevent (~> 0.10, >= 0.10.3)
59
74
  rb-inotify (~> 0.9, >= 0.9.10)
60
- lumberjack (1.2.8)
75
+ lumberjack (1.2.9)
61
76
  method_source (1.0.0)
62
- minitest (5.17.0)
77
+ minitest (5.20.0)
78
+ mutex_m (0.1.2)
63
79
  nenv (0.3.0)
64
80
  notiffany (0.1.3)
65
81
  nenv (~> 0.1)
66
82
  shellany (~> 0.0)
67
- octokit (6.0.1)
83
+ octokit (6.1.1)
68
84
  faraday (>= 1, < 3)
69
85
  sawyer (~> 0.9)
70
86
  open4 (1.3.4)
71
- parallel (1.22.1)
72
- parser (3.1.3.0)
87
+ parallel (1.23.0)
88
+ parser (3.2.2.4)
73
89
  ast (~> 2.4.1)
74
- pry (0.14.1)
90
+ racc
91
+ pry (0.14.2)
75
92
  coderay (~> 1.1)
76
93
  method_source (~> 1.0)
77
- public_suffix (5.0.1)
94
+ public_suffix (5.0.3)
95
+ racc (1.7.1)
78
96
  rainbow (3.1.1)
79
- rake (13.0.6)
97
+ rake (13.1.0)
80
98
  rake_circle_ci (0.11.0)
81
99
  colored2 (~> 3.1)
82
100
  excon (~> 0.72)
83
101
  rake_factory (~> 0.23)
84
102
  sshkey (~> 2.0)
85
- rake_factory (0.31.0)
103
+ rake_factory (0.32.0.pre.2)
86
104
  activesupport (>= 4)
87
105
  rake (~> 13.0)
106
+ rake_git (0.1.0.pre.8)
107
+ colored2 (~> 3.1)
108
+ git (~> 1.13, >= 1.13.2)
109
+ rake_factory (= 0.32.0.pre.2)
110
+ rake_git_crypt (0.1.0.pre.27)
111
+ colored2 (~> 3.1)
112
+ rake_factory (= 0.32.0.pre.2)
113
+ ruby_git_crypt (= 0.1.0.pre.2)
114
+ ruby_gpg2 (~> 0.6)
88
115
  rake_github (0.11.0)
89
116
  colored2 (~> 3.1)
90
117
  octokit (>= 4.16, < 7.0)
@@ -93,46 +120,57 @@ GEM
93
120
  rake_gpg (0.18.0)
94
121
  rake_factory (~> 0.23)
95
122
  ruby_gpg2 (~> 0.6)
96
- rake_ssh (0.8.0)
123
+ rake_ssh (0.10.0)
97
124
  colored2 (~> 3.1)
98
125
  rake_factory (~> 0.23)
99
126
  sshkey (~> 2.0)
100
127
  rb-fsevent (0.11.2)
101
128
  rb-inotify (0.10.1)
102
129
  ffi (~> 1.0)
103
- regexp_parser (2.6.1)
104
- rexml (3.2.5)
130
+ rchardet (1.8.0)
131
+ regexp_parser (2.8.2)
132
+ rexml (3.2.6)
105
133
  rspec (3.12.0)
106
134
  rspec-core (~> 3.12.0)
107
135
  rspec-expectations (~> 3.12.0)
108
136
  rspec-mocks (~> 3.12.0)
109
- rspec-core (3.12.0)
137
+ rspec-core (3.12.2)
110
138
  rspec-support (~> 3.12.0)
111
- rspec-expectations (3.12.1)
139
+ rspec-expectations (3.12.3)
112
140
  diff-lcs (>= 1.2.0, < 2.0)
113
141
  rspec-support (~> 3.12.0)
114
- rspec-mocks (3.12.1)
142
+ rspec-mocks (3.12.6)
115
143
  diff-lcs (>= 1.2.0, < 2.0)
116
144
  rspec-support (~> 3.12.0)
117
- rspec-support (3.12.0)
118
- rubocop (1.42.0)
145
+ rspec-support (3.12.1)
146
+ rubocop (1.57.2)
119
147
  json (~> 2.3)
148
+ language_server-protocol (>= 3.17.0)
120
149
  parallel (~> 1.10)
121
- parser (>= 3.1.2.1)
150
+ parser (>= 3.2.2.4)
122
151
  rainbow (>= 2.2.2, < 4.0)
123
152
  regexp_parser (>= 1.8, < 3.0)
124
153
  rexml (>= 3.2.5, < 4.0)
125
- rubocop-ast (>= 1.24.1, < 2.0)
154
+ rubocop-ast (>= 1.28.1, < 2.0)
126
155
  ruby-progressbar (~> 1.7)
127
- unicode-display_width (>= 1.4.0, < 3.0)
128
- rubocop-ast (1.24.1)
129
- parser (>= 3.1.1.0)
156
+ unicode-display_width (>= 2.4.0, < 3.0)
157
+ rubocop-ast (1.30.0)
158
+ parser (>= 3.2.1.0)
159
+ rubocop-capybara (2.19.0)
160
+ rubocop (~> 1.41)
161
+ rubocop-factory_bot (2.24.0)
162
+ rubocop (~> 1.33)
130
163
  rubocop-rake (0.6.0)
131
164
  rubocop (~> 1.0)
132
- rubocop-rspec (2.16.0)
133
- rubocop (~> 1.33)
134
- ruby-progressbar (1.11.0)
165
+ rubocop-rspec (2.25.0)
166
+ rubocop (~> 1.40)
167
+ rubocop-capybara (~> 2.17)
168
+ rubocop-factory_bot (~> 2.22)
169
+ ruby-progressbar (1.13.0)
135
170
  ruby2_keywords (0.0.5)
171
+ ruby_git_crypt (0.1.0.pre.2)
172
+ immutable-struct (~> 2.4)
173
+ lino (~> 3.0)
136
174
  ruby_gpg2 (0.10.0)
137
175
  lino (~> 3.0)
138
176
  sawyer (0.9.2)
@@ -147,18 +185,19 @@ GEM
147
185
  simplecov_json_formatter (0.1.4)
148
186
  sshkey (2.0.0)
149
187
  terminal-notifier-guard (1.7.0)
150
- thor (1.2.1)
151
- tzinfo (2.0.5)
188
+ thor (1.3.0)
189
+ tzinfo (2.0.6)
152
190
  concurrent-ruby (~> 1.0)
153
- unicode-display_width (2.3.0)
154
- webrick (1.7.0)
155
- yard (0.9.28)
156
- webrick (~> 1.7.0)
191
+ unicode-display_width (2.5.0)
192
+ yard (0.9.34)
157
193
 
158
194
  PLATFORMS
159
195
  arm64-darwin-21
196
+ arm64-darwin-22
160
197
  ruby
161
198
  x86_64-darwin-19
199
+ x86_64-darwin-20
200
+ x86_64-darwin-21
162
201
  x86_64-linux
163
202
 
164
203
  DEPENDENCIES
@@ -169,6 +208,8 @@ DEPENDENCIES
169
208
  guard-rspec
170
209
  rake
171
210
  rake_circle_ci
211
+ rake_git
212
+ rake_git_crypt
172
213
  rake_github
173
214
  rake_gpg
174
215
  rake_ssh
@@ -182,4 +223,4 @@ DEPENDENCIES
182
223
  yard
183
224
 
184
225
  BUNDLED WITH
185
- 2.4.2
226
+ 2.4.17
data/Rakefile CHANGED
@@ -1,20 +1,45 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'yaml'
4
- require 'yard'
5
3
  require 'rake_circle_ci'
4
+ require 'rake_git'
5
+ require 'rake_git_crypt'
6
6
  require 'rake_github'
7
- require 'rake_ssh'
8
7
  require 'rake_gpg'
9
- require 'securerandom'
8
+ require 'rake_ssh'
10
9
  require 'rspec/core/rake_task'
11
10
  require 'rubocop/rake_task'
11
+ require 'securerandom'
12
+ require 'yaml'
13
+ require 'yard'
12
14
 
13
15
  task default: %i[
14
16
  library:fix
15
17
  test:unit
16
18
  ]
17
19
 
20
+ RakeGitCrypt.define_standard_tasks(
21
+ namespace: :git_crypt,
22
+
23
+ provision_secrets_task_name: :'secrets:provision',
24
+ destroy_secrets_task_name: :'secrets:destroy',
25
+
26
+ install_commit_task_name: :'git:commit',
27
+ uninstall_commit_task_name: :'git:commit',
28
+
29
+ gpg_user_key_paths: %w[
30
+ config/gpg
31
+ config/secrets/ci/gpg.public
32
+ ]
33
+ )
34
+
35
+ namespace :git do
36
+ RakeGit.define_commit_task(
37
+ argument_names: [:message]
38
+ ) do |t, args|
39
+ t.message = args.message
40
+ end
41
+ end
42
+
18
43
  namespace :encryption do
19
44
  namespace :directory do
20
45
  desc 'Ensure CI secrets directory exists.'
@@ -24,10 +49,12 @@ namespace :encryption do
24
49
  end
25
50
 
26
51
  namespace :passphrase do
27
- desc 'Generate encryption passphrase used by CI.'
52
+ desc 'Generate encryption passphrase for CI GPG key'
28
53
  task generate: ['directory:ensure'] do
29
- File.write('config/secrets/ci/encryption.passphrase',
30
- SecureRandom.base64(36))
54
+ File.write(
55
+ 'config/secrets/ci/encryption.passphrase',
56
+ SecureRandom.base64(36)
57
+ )
31
58
  end
32
59
  end
33
60
  end
@@ -52,12 +79,33 @@ namespace :keys do
52
79
  end
53
80
 
54
81
  namespace :secrets do
55
- desc 'Regenerate all generatable secrets.'
56
- task regenerate: %w[
82
+ namespace :directory do
83
+ desc 'Ensure secrets directory exists and is set up correctly'
84
+ task :ensure do
85
+ FileUtils.mkdir_p('config/secrets')
86
+ unless File.exist?('config/secrets/.unlocked')
87
+ File.write('config/secrets/.unlocked', 'true')
88
+ end
89
+ end
90
+ end
91
+
92
+ desc 'Generate all generatable secrets.'
93
+ task generate: %w[
57
94
  encryption:passphrase:generate
58
95
  keys:deploy:generate
59
96
  keys:gpg:generate
60
97
  ]
98
+
99
+ desc 'Provision all secrets.'
100
+ task provision: [:generate]
101
+
102
+ desc 'Delete all secrets.'
103
+ task :destroy do
104
+ rm_rf 'config/secrets'
105
+ end
106
+
107
+ desc 'Rotate all secrets.'
108
+ task rotate: [:'git_crypt:reinstall']
61
109
  end
62
110
 
63
111
  RuboCop::RakeTask.new
@@ -141,7 +189,6 @@ end
141
189
  namespace :pipeline do
142
190
  desc 'Prepare CircleCI Pipeline'
143
191
  task prepare: %i[
144
- circle_ci:project:follow
145
192
  circle_ci:env_vars:ensure
146
193
  circle_ci:checkout_keys:ensure
147
194
  circle_ci:ssh_keys:ensure
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyVault
4
- VERSION = '0.2.0.pre.1'
4
+ VERSION = '0.2.0.pre.2'
5
5
  end
data/ruby_vault.gemspec CHANGED
@@ -48,6 +48,8 @@ Gem::Specification.new do |spec|
48
48
  spec.add_development_dependency 'guard-rspec'
49
49
  spec.add_development_dependency 'rake'
50
50
  spec.add_development_dependency 'rake_circle_ci'
51
+ spec.add_development_dependency 'rake_git'
52
+ spec.add_development_dependency 'rake_git_crypt'
51
53
  spec.add_development_dependency 'rake_github'
52
54
  spec.add_development_dependency 'rake_gpg'
53
55
  spec.add_development_dependency 'rake_ssh'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.1
4
+ version: 0.2.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfraBlocks Maintainers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-02 00:00:00.000000000 Z
11
+ date: 2023-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: immutable-struct
@@ -136,6 +136,34 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rake_git
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rake_git_crypt
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: rake_github
141
169
  requirement: !ruby/object:Gem::Requirement