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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/secure_data_bag/item.rb +5 -1
- data/lib/secure_data_bag/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e19596df52fc0acba77867d44007e16f2f721b83
|
4
|
+
data.tar.gz: adc998a5b846acea1ba2aafcc3907310d1c6db7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b783fc0045a7a346157ce9ac4fe81d5a56cd5e45d160d67d9f89c368b77feed2b62c0c9b4e9bc086ffc5b784c5070ea6049f8567b1b89db02f63a3d36a32879
|
7
|
+
data.tar.gz: 22d4cc02726da502e60a1eb0ecd69efb0ce65e7fed5dfa9d13fd38a7f123a62d14505136d40de9ba611b9f8478c9b3c1fdd7bf23c72ed68eaa36dd2ed5e3d157
|
data/CHANGELOG.md
CHANGED
data/lib/secure_data_bag/item.rb
CHANGED
@@ -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)
|
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.
|
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-
|
11
|
+
date: 2016-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef
|