-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Default STS Client uses global endpoint but recommendation is now regional endpoints #3310
Comments
Thanks for the feature request — however it would be a breaking change for users who expect and rely on the current behavior. But the team is considering the implications of making this change in the future. In the meantime you can use the |
It is a change, but it isn't a breaking one. Can you elaborate on how this breaks anything? Thanks. |
This would be a breaking change for customers who expect the default configuration to be legacy. It could affect applications that rely on the global STS endpoint without explicitly configuring it. These apps might experience unexpected behavior or failures when suddenly using regional endpoints instead. |
You just described every change made to this library. As I understand it, only very old token usage falls into this category, and those folks are unlikely to upgrade the library, much less their token usage. Can't simple downgrade instructions be provided for the edge cases that run into issues in the release notes? |
This was also brought up 3 years ago in #2577 and dismissed for the same reason. Is the plan to never upgrade this, regardless of the AWS ask to move to the new behavior? |
We published Updating AWS SDK defaults – AWS STS service endpoint and Retry Strategy this week, announcing that we're planning to make this change for existing SDKs on July 31st, 2025. Since it is a change to behavior like discussed above, the ~six month window allows users to either test the new behavior by opting in early, or to pin to |
This is excellent news! It makes sense to have that transition period to give folks time. Specific details about when |
Describe the feature
Around 2022, AWS announced that all new SDKs would change the default STS endpoint behavior from the
legacy
endpoint toregional
as documented here.This is used when clients call
sts:AssumeRole
. Using thelegacy
behavior, clients connect tosts.amazonaws.com,
which lives inus-east-1.
Workloads outside of that region using this configuration unknowingly depend on that region since they are not using theregional
endpoint where their code runs.botocore was never updated, so today, all calls to the STS API, unless otherwise explicitly configured, will use the "global" endpoint in
us-east-1.
There was an outage in Aug 2024 which impacted STS in
us-east-1
.Had botocore been updated, this specific event would not have impaired workloads running in other regions using a default client.
This PR attempts to align the new "default" to
regional
as specified by the documentation.Should you require the old behavior, you can always set the environment variable to override the new default back to
legacy
(as documented):A follow-up change to the documentation here will be needed to reflect this change.
Use Case
Any workload running in a region should, by default, use the regional STS endpoint for role assumption.
Proposed Solution
I've started a pull request here with the proposed change to the defaults, so the default will select
regional
endpoints rather than thelegacy
configuration if no additional configuration is specified.Other Information
No response
Acknowledgements
SDK version used
Any current boto3 version
Environment details (OS name and version, etc.)
N/A - changes to SDK defaults
The text was updated successfully, but these errors were encountered: