aws-maven icon indicating copy to clipboard operation
aws-maven copied to clipboard

Order or priority for credentials seems incorrect

Open luispollo opened this issue 7 years ago • 1 comments

Despite the name of the class, the current order of priority in the chain defined in AuthenticationInfoAWSCredentialsProviderChain puts the AuthenticationInfoAWSCredentialsProvider last in the chain: https://github.com/spring-projects/aws-maven/blob/ce6a4ffbd8a59029ebe147124ac2d7ff1a7afd18/src/main/java/org/springframework/build/aws/maven/AuthenticationInfoAWSCredentialsProviderChain.java#L31

This causes explicit credentials to be ignored if any of the other types of credentials are found first. In my case, credentials are being picked up from the instance profile, which are not the ones I want to use. This should be a common case when connecting with an S3 repository in another AWS account, for example.

luispollo avatar Nov 15 '17 08:11 luispollo

Hi @luispollo It's fixed in our fork. Try it.

<dependency>
    <groupId>com.github.platform-team</groupId>
    <artifactId>aws-maven</artifactId>
    <version>6.0.0</version>
</dependency>

moleksyuk avatar Feb 19 '18 12:02 moleksyuk