Replies: 1 comment
-
Hello @cfurst , Thank you very much for your feedback. This is the repository for the AWS Java SDK v1. Are you referring to AWS Java SDK v2? In the AWS Java SDK v2 :
If you are referring to the AWS Java SDK v1's DefaultAWSCredentialsProviderChain, the behavior is similar: Where you able to retrieve this information? You can find documentation on logging in the v1 and v2 Developer guide. Is there anything else that could improve your experience? We really appreciate your feedback! Sincerely, Yasmine |
Beta Was this translation helpful? Give feedback.
-
It would be nice, since the
DefaultCredentialsProvider
is a big black box, to have the class publish warnings when it cannot actually authenticate completely; even if the elements for authentication are there. Currently the provider just fails silently and moves on in the chain.For example, and this has cost me much time, let's say
AWS_SHARED_CREDENTIALS_FILE
environment variable is set but the file is not found, instead of just moving on to the next credential provider in the chain, a warning should be printed. Another example, and this is one that really got me, was theAWS_WEB_IDENTITY_TOKEN_FILE
variable was set, but the sts module was not on the classspath so it didn't use the provider. There are many examples I can think of. A simple warning to let the user know there is probably something mis-configured or unintentionally configured will help developers keep their applications clean and tidy.Everything helps! As you code, think of the users and not just the algorithm.
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions