Skip to content

Commit

Permalink
ENCD-6019-increase-sts-token-expiration (#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-sud authored Jun 24, 2021
1 parent 51c4e00 commit 24a6430
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/encoded/upload_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'Effect': 'Allow',
},
]
_FEDERATION_TOKEN_DURATION_SECONDS = 36 * 60 * 60


def _compile_statements_from_list(buckets_list):
Expand Down Expand Up @@ -122,7 +123,8 @@ def _get_token(self, policy):
try:
token = conn.get_federation_token(
Name=self._name,
Policy=json.dumps(policy)
Policy=json.dumps(policy),
DurationSeconds=_FEDERATION_TOKEN_DURATION_SECONDS,
)
return token
except botocore.exceptions.ClientError as ecp:
Expand Down

0 comments on commit 24a6430

Please sign in to comment.