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

Does not work in AWS Gov Cloud #89

Open
acrane1 opened this issue Jun 16, 2021 · 3 comments
Open

Does not work in AWS Gov Cloud #89

acrane1 opened this issue Jun 16, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@acrane1
Copy link

acrane1 commented Jun 16, 2021

Version report

Jenkins and plugins versions report:
Jenkins Version: 2.263.4
Plugin Version 1.29

  • What Operating System are you using (both controller, and any agents involved in the problem)?
    Host EC2 is RedHat
    Running on Docker container
    Docker version 19.03.8

Reproduction steps

When I place access key and secret access key into add credentials > Kind AWS Credentials I get Auth Failure. This happens regardless of the keys and I've validated the keys are correct.

Issue looks to be in https://github.com/jenkinsci/aws-credentials-plugin/blob/master/src/main/java/com/cloudbees/jenkins/plugins/awscredentials/AWSCredentialsImpl.java

AmazonEC2 ec2 = new AmazonEC2Client(awsCredentials, getClientConfiguration());
        // TODO better/smarter validation of the credentials instead of verifying the permission on EC2.READ in us-east-1            String region = "us-east-1";<!--EndFragment-->

Region is hard coded to us-east-1 for validation.

Results

Expected result:

Authentication successful

Actual result:

These credentials are NOT valid: "AWS was not able to validate the provided access credentials (Service: AmazonEC2; Status Code: 401; Error Code: AuthFailure; Request ID: 54876057-08bf-4ef7-85b1-7b8fb516f5bd; Proxy: null)"

@acrane1 acrane1 added the bug Something isn't working label Jun 16, 2021
@hectoralicea
Copy link

having the same problem. any chance this will be fixed soon?

@JoshMcCullough
Copy link

Yes, please.

@DaisyGuti
Copy link

Same issue still. Is there a fix planned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants