BREAKING: Default credentials provider chain #1499
0marperez
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An upcoming release of the AWS SDK for Kotlin will change the order of
credentials resolution for the default credentials provider chain
and the order of credentials resolution for AWS shared config files.
Release date
This change will be included in the upcoming v1.4.x release, expected in the
upcoming days.
What's changing
The order of credentials resolution for the default credentials provider chain,
and the order of credentials resolution for AWS shared config files (profile chain).
Default credentials provider chain
The table below outlines the current and new order in which the SDK will
resolve credentials from the default credentials provider chain.
The default credentials provider chain documentation
contains more details on each credential source.
Profile chain
The table below outlines the current and new order in which the SDK will
resolve credentials from AWS shared config files.
How to migrate
Default credentials provider chain
You can preserve the current default credentials provider chain behavior by setting
the credentials provider to a credentials provider chain with the current order, e.g.
Profile credentials provider
The order in which credentials are resolved for shared credentials and config
files cannot be customized. If your AWS config file(s) contain multiple valid
credential sources within a single profile, you may need to update them to align
with the new resolution order. For example, config file
A
should be updated tomatch config file
B
. This is necessary because static credentials will nowtake precedence and be selected before assume role credentials with a source profile.
Similar adjustments to your configuration may be necessary to maintain current
behavior. Use the new order as a guide for any required changes.
Config file
A
Config file
B
Feedback
If you have any questions concerning this change, please feel free to engage
with us in this discussion. If you encounter a bug with these changes when
released, please file an issue.
Beta Was this translation helpful? Give feedback.
All reactions