Skip to content

Support credential refresh resilience - #10910

Draft
luigi617 wants to merge 1 commit into
v2from
credential_refresh
Draft

luigi617 wants to merge 1 commit into
v2from
credential_refresh

Conversation

@luigi617

@luigi617 luigi617 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description of changes:

Port of https://github.com/boto/botocore/commits/feature/credential-refresh-resilience/ into the vendored botocore.

  • Supported credential providers (IMDS, container, assume role, web identity, SSO, login) keep using cached credentials when a refresh fails, and retry the refresh with backoff. Non-recoverable errors (e.g. expired SSO/login sessions) are still raised immediately.
  • Requests rejected with ExpiredToken / ExpiredTokenException invalidate the cached credentials and are retried with freshly resolved credentials (standard and adaptive retry modes).
  • Includes the prerequisite race fix for concurrent get_frozen_credentials() calls during refresh (Fix race when publishing refreshed credentials boto/botocore#3835).
  • Legacy retry mode changes (retryhandler.py, _retry.json) are not ported since v2 does not have legacy retries.

Testing
unit and functional tests passes.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@luigi617 luigi617 changed the title Port credential refresh resilience from botocore Support credential refresh resilience Nov 17, 2026

This branch has not been deployed

No deployments
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.

1 participant