secure_data_bag 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secure_data_bag/item.rb +3 -2
- 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: bf061c693288d22d3ec51494d4444ba95b3ef4be
|
4
|
+
data.tar.gz: 3378622f0ac889dd64e94825713692d524f8c0e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25916b24905313e61c7d46ba88c95c9bc4f1c2a858049d0cc00733ff467ccc084a5bb3fd8e7eaa928b9f54af80fe0abf1ed821f1291cccdaf6578a25b14a84be
|
7
|
+
data.tar.gz: 4a4b9d70db45a1ff2b391e31e7bea1ac8049da8431fefc111b4cb31e3af4aa5075d04004a28e8d6073a3389269d32aa5d4c72e7235bda5f3df8b101609d9fb12
|
data/lib/secure_data_bag/item.rb
CHANGED
@@ -230,8 +230,9 @@ module SecureDataBag
|
|
230
230
|
encryptor.encrypt!
|
231
231
|
encrypted_hash = encryptor.encrypted_hash
|
232
232
|
# Ensure that protected fields are never encrypted
|
233
|
-
|
234
|
-
|
233
|
+
%w(data_bag id).each do |k|
|
234
|
+
encrypted_hash[k] = raw_data[k] if encrypted_hash.key?(k)
|
235
|
+
end
|
235
236
|
encrypted_hash
|
236
237
|
end
|
237
238
|
|