secure_data_bag 3.0.0 → 3.0.1

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
  SHA1:
3
- metadata.gz: b22224b0b2102fd71b07fdc51184af1897b5b74e
4
- data.tar.gz: 0bf974e3ba411d700bc55ed5d42fc9a7246258dd
3
+ metadata.gz: 2833f65a5c45b72bd00549fcea3eb18919dec607
4
+ data.tar.gz: ccadb4b6cb83e9990c3aebf9834464dc7b66e643
5
5
  SHA512:
6
- metadata.gz: 894f9fbfcf7dd4c3ad755302a06f0fd2dd489681f7336ad07609cedb7c3f09158c3b7560c8e2ea0211fa5147681b34514185b4cc442a4824896c6518e8491afd
7
- data.tar.gz: 0710828746350ae0988324d280618527290e44bab263a6c464faab86215de89da56ff50fd4664c82eed4cc00f80973a1596bc414bc9bcdc1e2721f5ab3e4ff66
6
+ metadata.gz: 55fe1d9d0304339baeb0d1cfe62ff4fbcc6d510eb7b29f89ef3c5f4a9b0cf256eb9c8e04a851713b9054be4237f9f8c0f3ab38a9774770de8cee6d3e2b929767
7
+ data.tar.gz: cd1a21801740ac1231d3cdb34324b4ecbd3f8fbc4dffdf10ec298ad9cc4d50806a4c4426a9b985febee1be030e7dacc3263c1314bf2a4d8740f649a3b5b5d4fd
@@ -1,8 +1,20 @@
1
1
  secure_data_bag
2
2
  ======
3
- # 2.2.0
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
- # 2.1.x
18
+ v2.1.x
19
+ -------
8
20
  * Alot of initial commits ;)
@@ -35,6 +35,7 @@ class Chef
35
35
  encryption_format: config[:encryption_format],
36
36
  decryption_format: config[:decryption_format],
37
37
  encrypted_keys: encrypted_keys,
38
+ encrypt: true,
38
39
  secret: secret
39
40
  )
40
41
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SecureDataBag
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '3.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_data_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Serafini