Skip to content
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

Allow configuring enablev4 system property #40

Open
duaraghav8 opened this issue Aug 22, 2018 · 3 comments
Open

Allow configuring enablev4 system property #40

duaraghav8 opened this issue Aug 22, 2018 · 3 comments

Comments

@duaraghav8
Copy link

Hi,
The wagon fails to authenticate successfully when the S3 bucket is present in a region that doesn't support AWS authentication v2 (since AWS java SDK uses v2 by default).
However, it is possible to provide the system property com.amazonaws.services.s3.enableV4 to the sdk to make it switch to v4 authentication protocol. See https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/constant-values.html

For context, the auth failure message is:

Could not connect to repository: Status Code: 400, AWS Service: Amazon S3, AWS Request ID: XXXXXXXXXXX, AWS Error Code: InvalidRequest, AWS Error Message: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

Is it currently possible to configure this system property in the wagon.

If not, I'd be happy to dig deeper and make a PR. I'm pretty new to the Java ecosystem so hopefully you'll bear with me :)

@digitalkaoz
Copy link

we are struggeling with something similar when trying to deploy into an KMS encrypted bucket:

AWS Error Message: Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4

@jhallen978
Copy link

According to AWS signature V2 is going to be deprecated in 21 days. On June 24, 2019 this plugin will be unsupported.

@jhallen978
Copy link

Currently, only regions launched before 2014 support signature V2. So you may get that error if you are in an unsupported region.

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

No branches or pull requests

3 participants