mydrive-aws-mfa 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d937928ecf69a8a6cdffaad09ec850ecb0af0633
4
- data.tar.gz: f02617189b0a87ae28d29b1694ccd327a3648c37
2
+ SHA256:
3
+ metadata.gz: 9d214b5697cc1f64dde658ca1c8217e3a910bfd581fee13e613f76adc87488df
4
+ data.tar.gz: 91c6b30b669f9c337aee487d489570809949fe5a14e223ec9e07137e7cd713a2
5
5
  SHA512:
6
- metadata.gz: 2e8b5632cbb667d2c41b502640ee26429dcddb7af5d88d754e1db8afdf0a8985ee14c7a544e37ed9c770e7a8015d9fe789c2e3880138f238eef2d83171e83479
7
- data.tar.gz: c1faeb1f690ed3498b30fb6d6bb61a396a490657b7801d5a3bfb3d6d4279fb546bb22d5ce6b27e5f37ad6e29707f13ef40d06efd4223a5346ae339d67dc92bd7
6
+ metadata.gz: '0289523e85d277900b2df8e0ae1786181720647d1c8d6001ecf31d418f5a46d32399238d3c14a9eb17c078330d04f162108bd4bbed73f85d402988c9aa890d66'
7
+ data.tar.gz: 69e07c31f4168e0373bad0f2e841df1782999165d09b66698c73a07c988157aa639d79214347ae835445d3765019d960351ee35f05ce11d009c6cfb3d388f454
@@ -70,6 +70,6 @@ class AwsMfa
70
70
  end
71
71
 
72
72
  def expiration_buffer_minutes
73
- ENV.fetch("MYDRIVE_MFA_TOKEN_EXPIRATION_BUFFER", 0).to_i
73
+ ENV.fetch("MYDRIVE_MFA_TOKEN_EXPIRATION_BUFFER", 60).to_i
74
74
  end
75
75
  end
@@ -63,8 +63,8 @@ class AwsMfa
63
63
 
64
64
  def build_credentials_command(profile_config, token_code)
65
65
  "aws --profile #{profile_config.source_profile} --region eu-west-1 --output json sts assume-role " \
66
- "--role-arn #{profile_config.role_arn} --role-session-name aws-mfa-session " \
67
- "--serial-number #{profile_config.mfa_serial} --token-code #{token_code}"
66
+ "--duration-seconds #{@expiration_buffer_seconds} --role-arn #{profile_config.role_arn} " \
67
+ "--role-session-name aws-mfa-session --serial-number #{profile_config.mfa_serial} --token-code #{token_code}"
68
68
  end
69
69
  end
70
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mydrive-aws-mfa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MyDrive Solutions Ltd
@@ -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.14.1
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)