secure_data_bag 3.0.0 → 3.0.1
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 +4 -4
- data/CHANGELOG.md +14 -2
- data/lib/chef/knife/secure_data_bag/base_mixin.rb +1 -0
- data/lib/secure_data_bag/item.rb +1 -1
- data/lib/secure_data_bag/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2833f65a5c45b72bd00549fcea3eb18919dec607
|
4
|
+
data.tar.gz: ccadb4b6cb83e9990c3aebf9834464dc7b66e643
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55fe1d9d0304339baeb0d1cfe62ff4fbcc6d510eb7b29f89ef3c5f4a9b0cf256eb9c8e04a851713b9054be4237f9f8c0f3ab38a9774770de8cee6d3e2b929767
|
7
|
+
data.tar.gz: cd1a21801740ac1231d3cdb34324b4ecbd3f8fbc4dffdf10ec298ad9cc4d50806a4c4426a9b985febee1be030e7dacc3263c1314bf2a4d8740f649a3b5b5d4fd
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,20 @@
|
|
1
1
|
secure_data_bag
|
2
2
|
======
|
3
|
-
|
3
|
+
|
4
|
+
v3.0.1
|
5
|
+
------
|
6
|
+
* Ensure SecureDataBagItem .to\_data and .to\_hash output plain text unless the _encrypted_ metadata key is passed. This preserves compatibility with cookbooks running v2.
|
7
|
+
|
8
|
+
v3.0.0
|
9
|
+
------
|
10
|
+
* Full rewrite of the gem
|
11
|
+
* Full rewrite of Knife commands, new CLI tools and options
|
12
|
+
|
13
|
+
v2.2.0
|
14
|
+
------
|
4
15
|
* Add support for printing data bag items after edit via `knife secure bag edit --print-after`
|
5
16
|
* Resolve problem where `knife secure bag edit` would not encode fields
|
6
17
|
|
7
|
-
|
18
|
+
v2.1.x
|
19
|
+
-------
|
8
20
|
* Alot of initial commits ;)
|
data/lib/secure_data_bag/item.rb
CHANGED
@@ -161,7 +161,7 @@ module SecureDataBag
|
|
161
161
|
# @since 3.0.0
|
162
162
|
def to_data(opts = {})
|
163
163
|
opts = Mash.new(opts)
|
164
|
-
result = encrypt_data(raw_data)
|
164
|
+
result = opts[:encrypt] ? encrypt_data(raw_data) : raw_data
|
165
165
|
result[SecureDataBag::METADATA_KEY] = metadata if opts[:metadata]
|
166
166
|
result
|
167
167
|
end
|