-
Notifications
You must be signed in to change notification settings - Fork 18
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
Refactor AWS auth across plugins and upgrade SDK #53
Conversation
@ashwanthkumar Let me know if this is inline with what you had in mind in #41 |
@@ -187,4 +199,13 @@ public RevisionStatus getLatest(AmazonS3Client client, Artifact artifact) { | |||
} | |||
return null; | |||
} | |||
|
|||
public static AmazonS3 getS3client(GoEnvironment env) { | |||
AmazonS3ClientBuilder amazonS3ClientBuilder = AmazonS3ClientBuilder.standard(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manojlds I'm not aware of the latest client authentication chain. But does it cover all the things as specified here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The below in the code you referenced:
new EnvironmentVariableCredentialsProvider()
- Present
new SystemPropertiesCredentialsProvider()
- Present
new ProfileCredentialsProvider()
- Present
new InstanceProfileCredentialsProvider()
- Present
new BasicAWSCredentialsProvider(accessKey, secretKey)
- Not needed. Note that the code gets the creds from env vars and then passes as params.
new AnonAWSCredentialsProvider()
- Present
Also adds ECS support :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 merge away!
No description provided.