Force Refresh of credentials inside of STSCredentialProvider cache #5545
Labels
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
include a public method for STSCredentialProvider that will forcefully refresh the sessionCache when called
Use Case
Credentials inside of session cache can become invalid due to a role being deleted and recreated causing
InvalidClientTokenId
, this will continue till new creds are fetched which can take up to 12 hours depending on configuration and in the mean time the client using the provider will be in-operational. Calling the new method will allow for an almost immediate recovery time after catching the errorloose example of recovery
Proposed Solution
StsCredentialsProvider
CachedSupplier
Other Information
No response
Acknowledgements
AWS Java SDK version used
2.0
JDK version used
openjdk version "1.8.0_422"
Operating System and version
Amazon Linux 2 x86_64 5.10 Kernel
The text was updated successfully, but these errors were encountered: