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

Correcting default credentials when using assumed roles #46

Merged
merged 3 commits into from
Nov 18, 2018

Conversation

jglick
Copy link
Member

@jglick jglick commented Oct 16, 2018

InstanceProfileCredentialsProvider only works under limited conditions. It is simpler and better to use the default provider chain from the AWS SDK.

May fix #29. Amends #20. Subsumes #41.

Who is the maintainer these days? CC @carlossg

jglick added a commit to jglick/pipeline-cloudwatch-logs-plugin that referenced this pull request Oct 16, 2018
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, not sure who is the current maintainer.
@andresrc are you still interested in it?

@@ -156,7 +161,7 @@ public String getDisplayName() {
return accessKey + ":" + iamRoleArn;
}

private static AssumeRoleRequest createAssumeRoleRequest(@QueryParameter("iamRoleArn") String iamRoleArn) {
private static AssumeRoleRequest createAssumeRoleRequest(String iamRoleArn) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-pasta, I believe

@andresrc
Copy link
Contributor

andresrc commented Nov 9, 2018 via email

jglick added a commit to jglick/pipeline-cloudwatch-logs-plugin that referenced this pull request Nov 16, 2018
@andresrc andresrc merged commit 4e94b9c into jenkinsci:master Nov 18, 2018
@andresrc
Copy link
Contributor

Released as 1.24

@jglick jglick deleted the AWSCredentialsImpl branch November 19, 2018 16:13
jglick added a commit to jglick/pipeline-cloudwatch-logs-plugin that referenced this pull request Nov 19, 2018
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

Successfully merging this pull request may close these issues.

Unable to use EC2 instance profile
4 participants