cipherpipe 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/cipherpipe.gemspec +1 -1
- data/lib/cipherpipe/vault/ec2_token.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f0e32f480bf3dfd34b87dded6a5bf13ab9e37e8cffcecf597828cac5f3d756
|
4
|
+
data.tar.gz: f68ddc736e43122d4790f29647b898629be30804fc035c6d1c241decc3a6effa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71f09bf4723137bc0e205d993d67ab9a9cb97e54b8aac05ce9d904ecf4596dd34caa22fffbeffe8f528148d8d8f9057ff78fe6973fcf3be48cb68d13a2519c9f
|
7
|
+
data.tar.gz: aa5fd99b6dfac62daac9a2a2bf622ec614fb047bd169684b01077380c21f281a3612e0cf28c1a9094e001ede149320e23af8e5a935ec7b8d01ae23b2ded5f074
|
data/Gemfile.lock
CHANGED
data/cipherpipe.gemspec
CHANGED
@@ -21,7 +21,9 @@ class Cipherpipe::Vault::EC2Token
|
|
21
21
|
def call
|
22
22
|
response = ::Vault.auth.aws_ec2 external_source.ec2_role, signature, nonce
|
23
23
|
|
24
|
-
|
24
|
+
if response.auth.metadata[:nonce]
|
25
|
+
File.write NONCE_FILE, response.auth.metadata[:nonce]
|
26
|
+
end
|
25
27
|
|
26
28
|
response.auth.client_token
|
27
29
|
end
|