-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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 credentials provider chain documentation doesn't look right #4347
Comments
Hi @liwadman, thanks for reaching out. Could you clarify how you think the credentials precedence documentation should be changed? It sounds like you want the SSO provider and assume role provider removed because they are defined in the config file, is that correct? |
There is no possible known location to search for credentials for providers like the AssumeRole and AWS IAM Identity Center credential provider. These can only be defined in profiles. So the search order is really more like: 1)hard coded credentials |
After discussing with the SDK team, we've chosen not to change the documentation. The current precedence reflects the order that the SDK individually checks credential providers. Even if several credential providers are defined in a profile, it's worthwhile to give the additional detail of the search order. Thanks for opening this issue. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
The SDK team is missig the point. Those other providers are NOT checked in a sequential order, they're only checked when explicitly configured. example: with 0 configuration present, how would the AWS SDK discover a configuration to use the identity center configuration? |
Describe the issue
The default search list doesn't look right based on the botocore code I reviewed, and doesn't quite make sense. e.g. the sso provider would only be brought in if a profile in any location used an sso profile, and the sdk wouldn't do a specific search on existing config files for sso providers. As well the assume role provider is the implimentation of the config files e.g. the assume role provider is what's used with the relevant settings of a config file and the default profile within it.
Links
https://boto3.amazonaws.com/v1/documentation/api/latest/guide/credentials.html
The text was updated successfully, but these errors were encountered: