You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are only using an StsAssumeRoleCredentialsProvider to assume a role and not the StsWebIdentityTokenFileCredentialsProvider. So there is no need to provide an webIdentityTokenFile or other StsProperties.
Now the CredentialsProviderAutoConfiguration#createCredentialsProvider will log this warning because it founds the StsWebIdentityTokenFileCredentialsProvider dependency but no proper config for it:
Skipping creating `StsCredentialsProvider`. `software.amazon.awssdk:sts` is on the classpath, but neither `spring.cloud.aws.credentials.sts` properties are configured nor `AWS_WEB_IDENTITY_TOKEN_FILE` or the javaproperty `aws.webIdentityTokenFile` is set
But this config issue is only important for the case you want to use this StsWebIdentityTokenFileCredentialsProvider. So assuming we want to do the StsWebIdentityTokenFileCredentialsProvider based login only because this class is inside the class-path is not correct.
Seen in Spring AWS Cloud 3.0.1
Sample
Just put this dependency in your project and the log message will be shown:
Type: Bug
Component:
STS/Autoconfiguration
Describe the bug
We are only using an
StsAssumeRoleCredentialsProvider
to assume a role and not theStsWebIdentityTokenFileCredentialsProvider
. So there is no need to provide anwebIdentityTokenFile
or otherStsProperties
.Now the
CredentialsProviderAutoConfiguration#createCredentialsProvider
will log this warning because it founds theStsWebIdentityTokenFileCredentialsProvider
dependency but no proper config for it:But this config issue is only important for the case you want to use this
StsWebIdentityTokenFileCredentialsProvider
. So assuming we want to do theStsWebIdentityTokenFileCredentialsProvider
based login only because this class is inside the class-path is not correct.Seen in Spring AWS Cloud 3.0.1
Sample
Just put this dependency in your project and the log message will be shown:
I would suggest to only log this warning if the
StsProperties
are not null and an error happens.The text was updated successfully, but these errors were encountered: