Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Order or priority for credentials seems incorrect #58

Open
luispollo opened this issue Nov 15, 2017 · 1 comment
Open

Order or priority for credentials seems incorrect #58

luispollo opened this issue Nov 15, 2017 · 1 comment

Comments

@luispollo
Copy link

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.

@moleksyuk
Copy link

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>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants