Support passing ClientConfiguration to web identity credentials provider.#3116
Support passing ClientConfiguration to web identity credentials provider.#3116teo-tsirpanis wants to merge 4 commits intoaws:mainfrom
ClientConfiguration to web identity credentials provider.#3116Conversation
fbe2fef to
ad8df6a
Compare
sbera87
left a comment
There was a problem hiding this comment.
looks ok to me otherwise. Now region needs to be passed through the config, there is no fallback
@sbera87 what do you mean? I don't understand. |
| { | ||
| public: | ||
| STSAssumeRoleWebIdentityCredentialsProvider(); | ||
| STSAssumeRoleWebIdentityCredentialsProvider(Aws::Client::ClientConfiguration config = {}); |
There was a problem hiding this comment.
I'm really sorry for a a big delay in the handling of this PR.
I've been running a CI check and just noticed that
it is actually changing the default constructor to make an IMDS call (to resolve a region, not always though, but still...), this is a significant change of existing behavior.
could you please change it to
STSAssumeRoleWebIdentityCredentialsProvider(Aws::Client::ClientConfiguration config = {Aws::Client::ClientConfigurationInitValues{true}});
so IMDS won't be auto-enabled?
We should be able to merge the PR shortly after this.
Thank you!
The client config will fallback to the us-east-1 if not set: |
|
Sorry, it has failed the build. Let me handle the update for this PR. |
Issue #, if available:
Description of changes: This PR updates the constructor of
STSAssumeRoleWebIdentityCredentialsProviderto accept an optionalClientConfigurationparameter.Also the provider no longer tries to determine itself the region to use and instead always defers to the region specified in the config. This shouldn't have any practical effect since the default constructor of
ClientConfigurationhas a similar (and slightly more extensive) logic either way.Check all that applies:
Check which platforms you have built SDK on to verify the correctness of this PR.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.