-
Notifications
You must be signed in to change notification settings - Fork 910
Ability to customize stsClient in StsWebIdentityCredentialsProvider
#1881
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
Comments
It's a reasonable ask, marking as a feature request. |
It also prevents using a non-AWS STS endpoint, we are trying to override it for local testing (calling localstack) and the current approach makes that hard. |
We have the same problem when using IAM RDS authentication. We use WebIdentityTokenFileCredentialsProvider to get the credentials but we now and then see problems when calling the STS API (connect timed out). This has a tremendous impact as our application is not able to communicate with the database anymore. The AWS support says:
Well, yes... I would like to that. My plan was to modify the timeout value, the number of retries and the wait time between retries but as TO says WebIdentityTokenFileCredentialsProvider does not provide a possibility to modify the configuration. For now I'll have to copy-paste some classes of the SDK, modify them and see if that works :-( |
As I see, there is an ongoing PR regarding this. Is there any further news about it? |
Update sdk-default-configuration.json
Just checking. Is there any update on this request ? |
|
At the moment if using client for any AWS service with
WebIdentityTokenFileCredentialsProvider
as credentials provider it forces to use sync HTTP client. Additionally, STS client instead always assumes region based on theDefaultAwsRegionProviderChain
without the ability to override it via the code. In majority cases it's fine as it can be controlled at some extent via system properties or env variables. However, the use case I haveWebIdentityTokenFileCredentialsProvider
as credentials providerStsWebIdentityCredentialsProviderFactory
uses sync client only.Describe the Feature
Ability to specify STS client built in my code or STS client builder in the
WebIdentityTokenFileCredentialsProvider.Builder
Is your Feature Request related to a problem?
Explained at the top
Proposed Solution
WebIdentityTokenFileCredentialsProvider.Builder
to accept stsClient built somewhere else or stsClient builder instead, so I can build either sync or async client.Describe alternatives you've considered
N/A
Additional Context
I was implementing Quarkus extensions to support AWS SDK v2 client and the web identity token file credentials provider causes troubles to make it easily configurable. And since
StsWebIdentityCredentialsProviderFactory
is final with private methods it's hard to override it's logic to control how stsClient is being created.Your Environment
The text was updated successfully, but these errors were encountered: