kms-env 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kms-env.rb +2 -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: f1bcd4fc810cc4418c3fef1fc2ba923feb8d41e7
|
4
|
+
data.tar.gz: 6653dc982de2369f7a8e29858eb31a615195746c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9757f13c162d26464b9be0b74275d1ca0f2bbefdd0f62134ac67eb95178dd87cf5fb3bbe9e756c96754b9f3cf0b292ab7980a983db3f2c876ccb3e4303f31464
|
7
|
+
data.tar.gz: 68e7579e40863167d4116d1bdcc61cd1e607f157ada412b07c8a0e952a01962169674ee83e456a4b826e1879b49a04689fc587fe9553a50ed534d0fedaa5a14c
|
data/lib/kms-env.rb
CHANGED
@@ -39,7 +39,8 @@ module KmsEnv
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def set_decrypted_env_for(key)
|
42
|
-
|
42
|
+
data = kms_decrypt_blob(ciphertext_blob_for(ENV[key]))
|
43
|
+
ENV[plaintext_key_for(key)] = data.plaintext if data
|
43
44
|
end
|
44
45
|
|
45
46
|
def kms_key_matcher
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kms-env
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drew Stokes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|