secure_data_bag 3.0.2 → 3.0.3

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: 15062d0ab607b50f2ee12da3ccd9a9f39299623a
4
- data.tar.gz: 263cbdf072107fe078fa134fb4c13629befbe6eb
3
+ metadata.gz: e19596df52fc0acba77867d44007e16f2f721b83
4
+ data.tar.gz: adc998a5b846acea1ba2aafcc3907310d1c6db7b
5
5
  SHA512:
6
- metadata.gz: 5c5e6f99122251453c31ed9069c919bfce04f4d105762d27ce126a90d6596225b44093ec9c5e3afb03f7589809e5b1ffe7ad4ed996e5aa309192543299e70d09
7
- data.tar.gz: 900651a4b9905efda9b1349a6efef756eb9284cd6ec51ee6418901d87a931b7d44c298748377b43cdf5d881fd884ece9114d8cc078a5caeaf4d24d52d6aac79c
6
+ metadata.gz: 6b783fc0045a7a346157ce9ac4fe81d5a56cd5e45d160d67d9f89c368b77feed2b62c0c9b4e9bc086ffc5b784c5070ea6049f8567b1b89db02f63a3d36a32879
7
+ data.tar.gz: 22d4cc02726da502e60a1eb0ecd69efb0ce65e7fed5dfa9d13fd38a7f123a62d14505136d40de9ba611b9f8478c9b3c1fdd7bf23c72ed68eaa36dd2ed5e3d157
@@ -1,6 +1,10 @@
1
1
  secure_data_bag
2
2
  ======
3
3
 
4
+ v3.0.3
5
+ ------
6
+ * Ensure that reserved data_bag_item fields id and data_bag are never encrypted
7
+
4
8
  v3.0.2
5
9
  ------
6
10
  * Resolve issue with knife from file not encrypting files correctly
@@ -228,7 +228,11 @@ module SecureDataBag
228
228
  def encrypt_data(data, _save: false)
229
229
  encryptor = SecureDataBag::Encryptor.new(data, secret, metadata)
230
230
  encryptor.encrypt!
231
- encryptor.encrypted_hash
231
+ encrypted_hash = encryptor.encrypted_hash
232
+ # Ensure that protected fields are never encrypted
233
+ encrypted_hash['data_bag'] = raw_data['data_bag']
234
+ encrypted_hash['id'] = raw_data['id']
235
+ encrypted_hash
232
236
  end
233
237
 
234
238
  def encrypt_data!(data)
@@ -1,3 +1,3 @@
1
1
  module SecureDataBag
2
- VERSION = '3.0.2'.freeze
2
+ VERSION = '3.0.3'.freeze
3
3
  end
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: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Serafini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-15 00:00:00.000000000 Z
11
+ date: 2016-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef