File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def initialize
50
50
desc "An identifier for the assumed role session"
51
51
config_param :role_session_name , :string #required
52
52
desc "The absolute path to the file on disk containing the OIDC token"
53
- config_param :web_identity_token_file , :string , default : nil #required
53
+ config_param :web_identity_token_file , :string #required
54
54
desc "An IAM policy in JSON format"
55
55
config_param :policy , :string , default : nil
56
56
desc "The duration, in seconds, of the role session (900-43200)"
@@ -222,8 +222,6 @@ def setup_credentials
222
222
credentials_options [ :role_session_name ] = c . role_session_name
223
223
credentials_options [ :web_identity_token_file ] = c . web_identity_token_file
224
224
credentials_options [ :policy ] = c . policy if c . policy
225
- # TODO: Validation or clamping? If we go above 12 hours, the request will fail...
226
- # Is it better behavior to hard fail, or just provide the max session duration?
227
225
credentials_options [ :duration_seconds ] = c . duration_seconds if c . duration_seconds
228
226
if @s3_region
229
227
credentials_options [ :client ] = Aws ::STS ::Client . new ( :region => @s3_region )
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ def initialize
48
48
desc "An identifier for the assumed role session"
49
49
config_param :role_session_name , :string #required
50
50
desc "The absolute path to the file on disk containing the OIDC token"
51
- config_param :web_identity_token_file , :string , default : nil #required
51
+ config_param :web_identity_token_file , :string #required
52
52
desc "An IAM policy in JSON format"
53
53
config_param :policy , :string , default : nil
54
54
desc "The duration, in seconds, of the role session (900-43200)"
@@ -480,8 +480,6 @@ def setup_credentials
480
480
credentials_options [ :role_session_name ] = c . role_session_name
481
481
credentials_options [ :web_identity_token_file ] = c . web_identity_token_file
482
482
credentials_options [ :policy ] = c . policy if c . policy
483
- # TODO: Validation or clamping? If we go above 12 hours, the request will fail...
484
- # Is it better behavior to hard fail, or just provide the max session duration?
485
483
credentials_options [ :duration_seconds ] = c . duration_seconds if c . duration_seconds
486
484
if @s3_region
487
485
credentials_options [ :client ] = Aws ::STS ::Client . new ( :region => @s3_region )
You can’t perform that action at this time.
0 commit comments