rake_vault 0.3.0.pre.3 → 0.3.0.pre.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +67 -68
- data/Rakefile +1 -3
- data/lib/rake_vault/auth/approle.rb +2 -2
- data/lib/rake_vault/auth/oidc.rb +3 -3
- data/lib/rake_vault/task_sets/vault.rb +14 -14
- data/lib/rake_vault/tasks/login.rb +1 -1
- data/lib/rake_vault/version.rb +1 -1
- data/lib/rake_vault.rb +6 -6
- data/rake_vault.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1cd4e9dcdb691b91260507f5a261950e2452839416c88eb6a375ba3053428b0
|
4
|
+
data.tar.gz: 583fb587fdc3c3ecc1d91f0030c74c345d4227185d640b8adc09b29f8f65a823
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf86ac123d860777985cee4ce640996da656240f7c46ff068592c235aa9704eb5b0e8847a9cae642b3b7468ce7922f2b480d9531b798f15208ebd07855221885
|
7
|
+
data.tar.gz: cd8ffa6878be8ffe29d9034c0c7b4ab15e446db993751e09b79d0d78573fb8cad31db61176aee29e7748c2c441bc540c8fd0409452fd054be000c94096f6f4ec
|
data/Gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rake_vault (0.3.0.pre.
|
4
|
+
rake_vault (0.3.0.pre.5)
|
5
5
|
colored2 (~> 3.1)
|
6
6
|
rake_dependencies (~> 3.1)
|
7
7
|
rake_factory (~> 0.23)
|
8
|
-
ruby_vault (~> 0.
|
8
|
+
ruby_vault (~> 0.2.0.pre.5)
|
9
9
|
vault (~> 0.17)
|
10
10
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
activesupport (7.1.
|
14
|
+
activesupport (7.1.3.4)
|
15
15
|
base64
|
16
16
|
bigdecimal
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
@@ -21,59 +21,62 @@ GEM
|
|
21
21
|
minitest (>= 5.1)
|
22
22
|
mutex_m
|
23
23
|
tzinfo (~> 2.0)
|
24
|
-
addressable (2.8.
|
25
|
-
public_suffix (>= 2.0.2, <
|
24
|
+
addressable (2.8.7)
|
25
|
+
public_suffix (>= 2.0.2, < 7.0)
|
26
26
|
ast (2.4.2)
|
27
|
-
aws-eventstream (1.
|
28
|
-
aws-sigv4 (1.
|
27
|
+
aws-eventstream (1.3.0)
|
28
|
+
aws-sigv4 (1.8.0)
|
29
29
|
aws-eventstream (~> 1, >= 1.0.2)
|
30
|
-
base64 (0.
|
31
|
-
bigdecimal (3.1.
|
30
|
+
base64 (0.2.0)
|
31
|
+
bigdecimal (3.1.8)
|
32
32
|
colored2 (3.1.2)
|
33
|
-
concurrent-ruby (1.
|
33
|
+
concurrent-ruby (1.3.3)
|
34
34
|
connection_pool (2.4.1)
|
35
|
-
diff-lcs (1.5.
|
35
|
+
diff-lcs (1.5.1)
|
36
36
|
docile (1.4.0)
|
37
|
-
down (5.4.
|
37
|
+
down (5.4.2)
|
38
38
|
addressable (~> 2.8)
|
39
|
-
drb (2.
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
faraday-net_http (3.0.2)
|
39
|
+
drb (2.2.1)
|
40
|
+
excon (0.111.0)
|
41
|
+
faraday (2.10.0)
|
42
|
+
faraday-net_http (>= 2.0, < 3.2)
|
43
|
+
logger
|
44
|
+
faraday-net_http (3.1.0)
|
45
|
+
net-http
|
47
46
|
gem-release (2.2.2)
|
48
|
-
git (1.
|
47
|
+
git (1.19.1)
|
49
48
|
addressable (~> 2.8)
|
50
49
|
rchardet (~> 1.8)
|
51
50
|
hamster (3.0.0)
|
52
51
|
concurrent-ruby (~> 1.0)
|
53
|
-
i18n (1.14.
|
52
|
+
i18n (1.14.5)
|
54
53
|
concurrent-ruby (~> 1.0)
|
55
54
|
immutable-struct (2.4.1)
|
56
|
-
json (2.
|
55
|
+
json (2.7.2)
|
57
56
|
language_server-protocol (3.17.0.3)
|
58
57
|
lino (3.1.0)
|
59
58
|
hamster (~> 3.0)
|
60
59
|
open4 (~> 1.3)
|
60
|
+
logger (1.6.0)
|
61
61
|
memfs (1.0.0)
|
62
62
|
minitar (0.9)
|
63
|
-
minitest (5.
|
64
|
-
mutex_m (0.
|
65
|
-
|
63
|
+
minitest (5.24.1)
|
64
|
+
mutex_m (0.2.0)
|
65
|
+
net-http (0.4.1)
|
66
|
+
uri
|
67
|
+
octokit (8.1.0)
|
68
|
+
base64
|
66
69
|
faraday (>= 1, < 3)
|
67
70
|
sawyer (~> 0.9)
|
68
71
|
open4 (1.3.4)
|
69
|
-
parallel (1.
|
70
|
-
parser (3.
|
72
|
+
parallel (1.25.1)
|
73
|
+
parser (3.3.4.0)
|
71
74
|
ast (~> 2.4.1)
|
72
75
|
racc
|
73
|
-
public_suffix (
|
74
|
-
racc (1.
|
76
|
+
public_suffix (6.0.0)
|
77
|
+
racc (1.8.0)
|
75
78
|
rainbow (3.1.1)
|
76
|
-
rake (13.1
|
79
|
+
rake (13.2.1)
|
77
80
|
rake_circle_ci (0.11.0)
|
78
81
|
colored2 (~> 3.1)
|
79
82
|
excon (~> 0.72)
|
@@ -88,18 +91,18 @@ GEM
|
|
88
91
|
rake_factory (0.32.0.pre.2)
|
89
92
|
activesupport (>= 4)
|
90
93
|
rake (~> 13.0)
|
91
|
-
rake_git (0.1.0.pre.
|
94
|
+
rake_git (0.1.0.pre.10)
|
92
95
|
colored2 (~> 3.1)
|
93
96
|
git (~> 1.13, >= 1.13.2)
|
94
97
|
rake_factory (= 0.32.0.pre.2)
|
95
|
-
rake_git_crypt (0.1.0.pre.
|
98
|
+
rake_git_crypt (0.1.0.pre.29)
|
96
99
|
colored2 (~> 3.1)
|
97
100
|
rake_factory (= 0.32.0.pre.2)
|
98
|
-
ruby_git_crypt (= 0.1.0.pre.
|
101
|
+
ruby_git_crypt (= 0.1.0.pre.4)
|
99
102
|
ruby_gpg2 (~> 0.6)
|
100
|
-
rake_github (0.
|
103
|
+
rake_github (0.13.0)
|
101
104
|
colored2 (~> 3.1)
|
102
|
-
octokit (>= 4.16, <
|
105
|
+
octokit (>= 4.16, < 9.0)
|
103
106
|
rake_factory (~> 0.23)
|
104
107
|
sshkey (~> 2.0)
|
105
108
|
rake_gpg (0.18.0)
|
@@ -110,54 +113,48 @@ GEM
|
|
110
113
|
rake_factory (~> 0.23)
|
111
114
|
sshkey (~> 2.0)
|
112
115
|
rchardet (1.8.0)
|
113
|
-
regexp_parser (2.
|
114
|
-
rexml (3.2
|
115
|
-
|
116
|
-
|
117
|
-
rspec-
|
118
|
-
rspec-
|
119
|
-
|
120
|
-
|
121
|
-
|
116
|
+
regexp_parser (2.9.2)
|
117
|
+
rexml (3.3.2)
|
118
|
+
strscan
|
119
|
+
rspec (3.13.0)
|
120
|
+
rspec-core (~> 3.13.0)
|
121
|
+
rspec-expectations (~> 3.13.0)
|
122
|
+
rspec-mocks (~> 3.13.0)
|
123
|
+
rspec-core (3.13.0)
|
124
|
+
rspec-support (~> 3.13.0)
|
125
|
+
rspec-expectations (3.13.1)
|
122
126
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
|
-
rspec-support (~> 3.
|
124
|
-
rspec-mocks (3.
|
127
|
+
rspec-support (~> 3.13.0)
|
128
|
+
rspec-mocks (3.13.1)
|
125
129
|
diff-lcs (>= 1.2.0, < 2.0)
|
126
|
-
rspec-support (~> 3.
|
127
|
-
rspec-support (3.
|
128
|
-
rubocop (1.
|
130
|
+
rspec-support (~> 3.13.0)
|
131
|
+
rspec-support (3.13.1)
|
132
|
+
rubocop (1.65.0)
|
129
133
|
json (~> 2.3)
|
130
134
|
language_server-protocol (>= 3.17.0)
|
131
135
|
parallel (~> 1.10)
|
132
|
-
parser (>= 3.
|
136
|
+
parser (>= 3.3.0.2)
|
133
137
|
rainbow (>= 2.2.2, < 4.0)
|
134
|
-
regexp_parser (>=
|
138
|
+
regexp_parser (>= 2.4, < 3.0)
|
135
139
|
rexml (>= 3.2.5, < 4.0)
|
136
|
-
rubocop-ast (>= 1.
|
140
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
137
141
|
ruby-progressbar (~> 1.7)
|
138
142
|
unicode-display_width (>= 2.4.0, < 3.0)
|
139
|
-
rubocop-ast (1.
|
140
|
-
parser (>= 3.
|
141
|
-
rubocop-capybara (2.19.0)
|
142
|
-
rubocop (~> 1.41)
|
143
|
-
rubocop-factory_bot (2.24.0)
|
144
|
-
rubocop (~> 1.33)
|
143
|
+
rubocop-ast (1.31.3)
|
144
|
+
parser (>= 3.3.1.0)
|
145
145
|
rubocop-rake (0.6.0)
|
146
146
|
rubocop (~> 1.0)
|
147
|
-
rubocop-rspec (
|
148
|
-
rubocop (~> 1.
|
149
|
-
rubocop-capybara (~> 2.17)
|
150
|
-
rubocop-factory_bot (~> 2.22)
|
147
|
+
rubocop-rspec (3.0.3)
|
148
|
+
rubocop (~> 1.61)
|
151
149
|
ruby-progressbar (1.13.0)
|
152
|
-
|
153
|
-
ruby_git_crypt (0.1.0.pre.2)
|
150
|
+
ruby_git_crypt (0.1.0.pre.4)
|
154
151
|
immutable-struct (~> 2.4)
|
155
152
|
lino (~> 3.0)
|
156
153
|
ruby_gpg2 (0.10.0)
|
157
154
|
lino (~> 3.0)
|
158
|
-
ruby_vault (0.
|
155
|
+
ruby_vault (0.2.0.pre.5)
|
159
156
|
immutable-struct (~> 2.4)
|
160
|
-
lino (
|
157
|
+
lino (>= 3.1)
|
161
158
|
rubyzip (2.3.2)
|
162
159
|
sawyer (0.9.2)
|
163
160
|
addressable (>= 2.3.5)
|
@@ -169,10 +166,12 @@ GEM
|
|
169
166
|
simplecov-html (0.12.3)
|
170
167
|
simplecov_json_formatter (0.1.4)
|
171
168
|
sshkey (2.0.0)
|
169
|
+
strscan (3.1.0)
|
172
170
|
tzinfo (2.0.6)
|
173
171
|
concurrent-ruby (~> 1.0)
|
174
172
|
unicode-display_width (2.5.0)
|
175
|
-
|
173
|
+
uri (0.13.0)
|
174
|
+
vault (0.18.2)
|
176
175
|
aws-sigv4
|
177
176
|
|
178
177
|
PLATFORMS
|
data/Rakefile
CHANGED
@@ -146,7 +146,7 @@ end
|
|
146
146
|
RakeGithub.define_repository_tasks(
|
147
147
|
namespace: :github,
|
148
148
|
repository: 'infrablocks/rake_vault'
|
149
|
-
) do |t
|
149
|
+
) do |t|
|
150
150
|
github_config =
|
151
151
|
YAML.load_file('config/secrets/github/config.yaml')
|
152
152
|
|
@@ -157,8 +157,6 @@ RakeGithub.define_repository_tasks(
|
|
157
157
|
public_key: File.read('config/secrets/ci/ssh.public')
|
158
158
|
}
|
159
159
|
]
|
160
|
-
t.branch_name = args.branch_name
|
161
|
-
t.commit_message = args.commit_message
|
162
160
|
end
|
163
161
|
|
164
162
|
namespace :pipeline do
|
data/lib/rake_vault/auth/oidc.rb
CHANGED
@@ -14,11 +14,11 @@ module RakeVault
|
|
14
14
|
|
15
15
|
attr_reader :delegate
|
16
16
|
|
17
|
-
def initialize(*args, &
|
17
|
+
def initialize(*args, &)
|
18
18
|
@opts = args[0]
|
19
19
|
@delegate =
|
20
20
|
RakeDependencies::TaskSets::All.new(
|
21
|
-
task_set_opts, &
|
21
|
+
task_set_opts, &
|
22
22
|
)
|
23
23
|
end
|
24
24
|
|
@@ -37,21 +37,21 @@ module RakeVault
|
|
37
37
|
|
38
38
|
def task_set_opts
|
39
39
|
{
|
40
|
-
namespace
|
41
|
-
dependency
|
42
|
-
version
|
43
|
-
path
|
44
|
-
type
|
40
|
+
namespace:,
|
41
|
+
dependency:,
|
42
|
+
version:,
|
43
|
+
path:,
|
44
|
+
type:,
|
45
45
|
|
46
|
-
platform_os_names
|
47
|
-
platform_cpu_names
|
46
|
+
platform_os_names:,
|
47
|
+
platform_cpu_names:,
|
48
48
|
|
49
|
-
uri_template
|
50
|
-
file_name_template
|
49
|
+
uri_template:,
|
50
|
+
file_name_template:,
|
51
51
|
|
52
|
-
binary_directory
|
52
|
+
binary_directory:,
|
53
53
|
|
54
|
-
needs_fetch:
|
54
|
+
needs_fetch:
|
55
55
|
}
|
56
56
|
end
|
57
57
|
|
@@ -122,7 +122,7 @@ module RakeVault
|
|
122
122
|
end
|
123
123
|
|
124
124
|
def needs_fetch
|
125
|
-
@needs_fetch ||= ->(_) {
|
125
|
+
@needs_fetch ||= ->(_) { !exists_with_correct_version?(binary) }
|
126
126
|
end
|
127
127
|
|
128
128
|
def exists_with_correct_version?(binary)
|
@@ -43,7 +43,7 @@ module RakeVault
|
|
43
43
|
|
44
44
|
def valid_token?(address)
|
45
45
|
puts 'Checking for valid token...'
|
46
|
-
vault_client = Vault::Client.new(address:
|
46
|
+
vault_client = Vault::Client.new(address:)
|
47
47
|
vault_client.auth_token.lookup_self
|
48
48
|
rescue Vault::HTTPClientError, Vault::HTTPServerError
|
49
49
|
false
|
data/lib/rake_vault/version.rb
CHANGED
data/lib/rake_vault.rb
CHANGED
@@ -14,16 +14,16 @@ module RakeVault
|
|
14
14
|
command_task_set.delegate
|
15
15
|
end
|
16
16
|
|
17
|
-
def self.define_oidc_auth_task(opts = {}, &
|
18
|
-
RakeVault::Tasks::OidcAuth.define(opts, &
|
17
|
+
def self.define_oidc_auth_task(opts = {}, &)
|
18
|
+
RakeVault::Tasks::OidcAuth.define(opts, &)
|
19
19
|
end
|
20
20
|
|
21
|
-
def self.define_app_role_auth_task(opts = {}, &
|
22
|
-
RakeVault::Tasks::AppRoleAuth.define(opts, &
|
21
|
+
def self.define_app_role_auth_task(opts = {}, &)
|
22
|
+
RakeVault::Tasks::AppRoleAuth.define(opts, &)
|
23
23
|
end
|
24
24
|
|
25
|
-
def self.define_login_task(opts = {}, &
|
26
|
-
RakeVault::Tasks::Login.define(opts, &
|
25
|
+
def self.define_login_task(opts = {}, &)
|
26
|
+
RakeVault::Tasks::Login.define(opts, &)
|
27
27
|
end
|
28
28
|
|
29
29
|
class << self
|
data/rake_vault.gemspec
CHANGED
@@ -34,12 +34,12 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
35
35
|
spec.require_paths = ['lib']
|
36
36
|
|
37
|
-
spec.required_ruby_version = '>=
|
37
|
+
spec.required_ruby_version = '>= 3.1'
|
38
38
|
|
39
39
|
spec.add_dependency 'colored2', '~> 3.1'
|
40
40
|
spec.add_dependency 'rake_dependencies', '~> 3.1'
|
41
41
|
spec.add_dependency 'rake_factory', '~> 0.23'
|
42
|
-
spec.add_dependency 'ruby_vault', '~> 0.
|
42
|
+
spec.add_dependency 'ruby_vault', '~> 0.2.0.pre.5'
|
43
43
|
spec.add_dependency 'vault', '~> 0.17'
|
44
44
|
|
45
45
|
spec.add_development_dependency 'activesupport'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0.pre.
|
4
|
+
version: 0.3.0.pre.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- InfraBlocks Maintainers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored2
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.2.0.pre.5
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.2.0.pre.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: vault
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -344,14 +344,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
344
344
|
requirements:
|
345
345
|
- - ">="
|
346
346
|
- !ruby/object:Gem::Version
|
347
|
-
version: '
|
347
|
+
version: '3.1'
|
348
348
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
349
349
|
requirements:
|
350
350
|
- - ">"
|
351
351
|
- !ruby/object:Gem::Version
|
352
352
|
version: 1.3.1
|
353
353
|
requirements: []
|
354
|
-
rubygems_version: 3.
|
354
|
+
rubygems_version: 3.3.7
|
355
355
|
signing_key:
|
356
356
|
specification_version: 4
|
357
357
|
summary: Rake tasks for interacting with Hashicorp Vault.
|