Skip to content

feat(credentials): support web identity duration seconds#3711

Open
rohan-patnaik wants to merge 1 commit into
boto:developfrom
rohan-patnaik:feat-web-identity-duration-seconds
Open

feat(credentials): support web identity duration seconds#3711
rohan-patnaik wants to merge 1 commit into
boto:developfrom
rohan-patnaik:feat-web-identity-duration-seconds

Conversation

@rohan-patnaik

@rohan-patnaik rohan-patnaik commented May 22, 2026

Copy link
Copy Markdown

Fixes #3411

Summary

This lets the assume-role-with-web-identity provider read duration_seconds from profile config and pass it as DurationSeconds to STS.

Why

The regular assume role provider already supports this config, but the web identity provider ignored it. That made web identity sessions keep the default STS duration even when a profile requested a longer session.

Test plan

  • .venv/bin/python -m pytest tests/unit/test_credentials.py::TestAssumeRoleWithWebIdentityCredentialProvider

@rohan-patnaik rohan-patnaik marked this pull request as ready for review May 22, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support duration_seconds on the web identity token provider

1 participant