Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support duration_seconds on the web identity token provider #3411

Open
1 of 2 tasks
pawalt opened this issue Feb 26, 2025 · 0 comments
Open
1 of 2 tasks

Support duration_seconds on the web identity token provider #3411

pawalt opened this issue Feb 26, 2025 · 0 comments
Labels
feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged.

Comments

@pawalt
Copy link

pawalt commented Feb 26, 2025

Describe the feature

Right now, there's no way to provide DurationSeconds as an extra kwarg on the AssumeRoleWithWebIdentityCredentialFetcher. We'd like to be able to populate this from the profile config.

Use Case

We need our provider to have a longer lifetime so we can mint pre-signed URLs which won't expire after 1 hour, the default STS timeout.

Proposed Solution

Add a populate for duration_seconds here, the same way that already exists for the assume role provider.

extra_args = {}
role_session_name = self._get_config('role_session_name')
if role_session_name is not None:
extra_args['RoleSessionName'] = role_session_name
fetcher = AssumeRoleWithWebIdentityCredentialFetcher(
client_creator=self._client_creator,
web_identity_token_loader=token_loader,
role_arn=role_arn,
extra_args=extra_args,
cache=self.cache,
)

Other Information

If this is a desired change, we'd be happy to put up the PR ourselves!

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

latest

Environment details (OS name and version, etc.)

EKS

@pawalt pawalt added feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged. labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request This issue requests a feature. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant