mydrive-aws-mfa 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/aws_mfa.rb +1 -1
- data/lib/aws_mfa/credentials_loader.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4ef501319e69eda2102cc82664f78ec62757e043a4c5f84bb6e0fe10a55a6cf6
|
4
|
+
data.tar.gz: 34d0269b15d9121b3a13baa84fb29415dcad1da45a6e9727ba16b9e2c563df97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d65ba2dceeef535307512ec07f9409db2d616f3adf320752c59681a3fb45a8ae2e3f7f5b4869f69a5049a38f246a24c73089dbbe687de4835f9da386b1846cee
|
7
|
+
data.tar.gz: a56e9f14a70eb2235a0c4858243d7a8d80f4bebcab790a4d37d4003a9b41a55f1b1af146b08d8408d6591973e0c3b917222f4439154723960027a8973d4b5ff9
|
data/lib/aws_mfa.rb
CHANGED
@@ -64,8 +64,12 @@ class AwsMfa
|
|
64
64
|
def build_credentials_command(profile_config, token_code)
|
65
65
|
username = profile_config.mfa_serial.split("/").last
|
66
66
|
"aws --profile #{profile_config.source_profile} --region eu-west-1 --output json sts assume-role " \
|
67
|
-
"--duration-seconds #{
|
67
|
+
"--duration-seconds #{duration_seconds} --role-arn #{profile_config.role_arn} " \
|
68
68
|
"--role-session-name #{username} --serial-number #{profile_config.mfa_serial} --token-code #{token_code}"
|
69
69
|
end
|
70
|
+
|
71
|
+
def duration_seconds
|
72
|
+
ENV['MYDRIVE_MFA_DURATION'] || 3600
|
73
|
+
end
|
70
74
|
end
|
71
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mydrive-aws-mfa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MyDrive Solutions Ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
requirements:
|
92
92
|
- aws-cli
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.6
|
94
|
+
rubygems_version: 2.7.6
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Run AWS commands with MFA (MyDrive fork)
|