secure_data_bag 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b6fcbd13a41e6f976656fdbe7bb6e43f02031ae
|
4
|
+
data.tar.gz: a433da64df0447378ea05e5cecda6aa8b24cf1d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6203e56251f529905b373645c7af57f1fe4834a0ff4bf8cb8836613783995224e64a1f259bdbbce2e51e17c06112677800e831cf0d121acb04ffa3343e96c771
|
7
|
+
data.tar.gz: 15134db5f30add0a8bdd30bef9e63ff8b343dec7b60f1a9eb85e45507c23a8b4d202e0ff81aa851629aaf75849cd5ebcee5ba55537d27b875583c64381cc8467
|
@@ -24,7 +24,7 @@ class Chef
|
|
24
24
|
option :encode_fields,
|
25
25
|
long: "--encode-fields FIELD1,FIELD2,FIELD3",
|
26
26
|
description: "List of attribute keys for which to encode values",
|
27
|
-
default:
|
27
|
+
default: ""
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -51,7 +51,7 @@ class Chef
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def encoded_fields_for(item)
|
54
|
-
[].concat(config[:encode_fields]).
|
54
|
+
[].concat(config[:encode_fields].split(",")).
|
55
55
|
concat(item.encode_fields).
|
56
56
|
uniq
|
57
57
|
end
|
@@ -18,8 +18,10 @@ class Chef
|
|
18
18
|
item = Chef::EncryptedDataBagItem.new(@raw_data, read_secret)
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
item.to_hash
|
21
|
+
item = SecureDataBag::Item.from_item(item, read_secret)
|
22
|
+
data = item.to_hash(false)
|
23
|
+
data[:encryption][:encoded_fields] = item.encode_fields
|
24
|
+
data
|
23
25
|
end
|
24
26
|
|
25
27
|
def run
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secure_data_bag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Serafini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|