-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Credential caching #1052
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
@itamarwe The logic that decides whether to use the cache compares the This looks related to #1020. The risk of your example happening in a real application should be extremely low since access keys consist of a pair of |
@chrisradek The probability of this happening is not extremely low. It is 100% in any application that asks users to enter their AWS credentials. This is a very strange behavior with a very unexpected side-effect and I'm greatful for our automatic testing that discovered it. It should be made very clear that this caching exists. Anyway, it seems that I managed to solve the issues by instantiating the service as follows:
Thanks. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
I'm using the AWS-SDK with several sets of credentials. I use this code to test if the credentials are correct and if they have the right permissions. I see a strange caching of the credentials when switching between the different credentials.
Here's an example code:
On version 2.3.19 of the SDK I get no error on the correct credentials and an error on the wrong credentials, while with version 2.4.6 I get no errors on both.
It seems that while I don't change the
awsAccessKeyId
, the SDK caches theawsSecretAccessKey
.The text was updated successfully, but these errors were encountered: