chef-vault 4.1.0 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/lib/chef/knife/mixin/helper.rb +2 -2
- data/lib/chef/knife/vault_delete.rb +7 -7
- data/lib/chef-vault/item.rb +6 -6
- data/lib/chef-vault/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19add775da291b1eb9dc767f149c98e477f5048ea30e4a525ff1e143918f5847
|
4
|
+
data.tar.gz: 483d87a0e56f4209fc532be68a11add44a2b7a968ce9ee0c37729e241cb723c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70423d48be58261e55b09b0cba47df51366571795d2bd9b1c60c0255b26f1e796e3d52c8c3cb32f13ae33e07860c88c67b2d124e74b432b8ac0bfc00c6b9b4a4
|
7
|
+
data.tar.gz: 89400da10b9840bd63b9ff626abbb32bea9f40897efa989f70c5ee63e6e533a21807491a936358d35652af30c67ceb67c4a9e5345393758217b7f9c42320bd58
|
data/Gemfile
CHANGED
@@ -9,6 +9,8 @@ group :development do
|
|
9
9
|
gem "rspec", "~> 3.4"
|
10
10
|
gem "aruba", "~> 0.6"
|
11
11
|
gem "chef", "~> 14.0" # avoids test failures on license acceptance
|
12
|
+
gem "contracts", "~> 0.16.1" # pin until we drop ruby < 2.7
|
13
|
+
gem "chef-utils", "= 16.6.14" # pin until we drop ruby 2.5
|
12
14
|
end
|
13
15
|
|
14
16
|
group :docs do
|
@@ -59,7 +59,7 @@ class ChefVault
|
|
59
59
|
next unless printable?(value.to_s)
|
60
60
|
|
61
61
|
msg = "Value '#{value}' of key '#{key}' contains non-printable characters. Check that backslashes are escaped with another backslash (e.g. C:\\\\Windows) in double-quoted strings."
|
62
|
-
|
62
|
+
ChefVault::Log.warn(msg)
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
@@ -69,7 +69,7 @@ class ChefVault
|
|
69
69
|
# returns true if string is free of non-printable characters (escape sequences)
|
70
70
|
# this returns false for whitespace escape sequences as well, e.g. \n\t
|
71
71
|
def printable?(string)
|
72
|
-
/[^[:print:]]/.match(string)
|
72
|
+
/[^[:print:]]|[[:space:]]/.match(string)
|
73
73
|
end
|
74
74
|
end
|
75
75
|
end
|
@@ -30,13 +30,13 @@ class Chef
|
|
30
30
|
|
31
31
|
if vault && item
|
32
32
|
delete_object(ChefVault::Item, "#{vault}/#{item}", "chef_vault_item") do
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
33
|
+
|
34
|
+
ChefVault::Item.load(vault, item).destroy
|
35
|
+
rescue ChefVault::Exceptions::KeysNotFound,
|
36
|
+
ChefVault::Exceptions::ItemNotFound
|
37
|
+
raise ChefVault::Exceptions::ItemNotFound,
|
38
|
+
"#{vault}/#{item} not found."
|
39
|
+
|
40
40
|
end
|
41
41
|
else
|
42
42
|
show_usage
|
data/lib/chef-vault/item.rb
CHANGED
@@ -89,12 +89,12 @@ class ChefVault
|
|
89
89
|
handle_client_action(search_or_client, action)
|
90
90
|
else
|
91
91
|
search_or_client.each do |name|
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
92
|
+
|
93
|
+
client = load_actor(name, "clients")
|
94
|
+
handle_client_action(client, action)
|
95
|
+
rescue ChefVault::Exceptions::ClientNotFound
|
96
|
+
ChefVault::Log.warn "node '#{name}' has no 'default' public key; skipping"
|
97
|
+
|
98
98
|
end
|
99
99
|
end
|
100
100
|
end
|
data/lib/chef-vault/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-vault
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Data encryption support for Chef Infra using data bags
|
14
14
|
email:
|
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
|
-
rubygems_version: 3.
|
71
|
+
rubygems_version: 3.1.4
|
72
72
|
signing_key:
|
73
73
|
specification_version: 4
|
74
74
|
summary: Data encryption support for Chef Infra using data bags
|