-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Update aws java sdk to support ecs task roles #25552
Changes from 9 commits
1fabfae
2f275f3
6e5482a
caa98d6
85ce750
fb79f62
907f0ac
f2eb80e
fd0d664
5c547fb
d5ad7d4
008edf6
7190de2
5c32ae8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6f47fcd3c2917bef69dc36aba203c5ea4af9bf24 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f2f4e9afe15bd6a718ad64716042e52f406e668b |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2647df2408c435289293260dc27f0762ce259c30 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
import com.amazonaws.auth.AWSCredentials; | ||
import com.amazonaws.auth.AWSCredentialsProvider; | ||
import com.amazonaws.auth.BasicAWSCredentials; | ||
import com.amazonaws.auth.InstanceProfileCredentialsProvider; | ||
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; | ||
import com.amazonaws.http.IdleConnectionReaper; | ||
import com.amazonaws.internal.StaticCredentialsProvider; | ||
import com.amazonaws.services.s3.AmazonS3; | ||
|
@@ -166,10 +166,10 @@ protected void doClose() throws ElasticsearchException { | |
} | ||
|
||
static class PrivilegedInstanceProfileCredentialsProvider implements AWSCredentialsProvider { | ||
private final InstanceProfileCredentialsProvider credentials; | ||
private final DefaultAWSCredentialsProviderChain credentials; | ||
|
||
private PrivilegedInstanceProfileCredentialsProvider() { | ||
this.credentials = new InstanceProfileCredentialsProvider(); | ||
this.credentials = new DefaultAWSCredentialsProviderChain(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is incorrect. This needs to be turned into a chain over InstanceProfile provider and container credentials provider as I described in #23039 (comment). We will not use the default chain because it exposes insecure methods of passing credentials. |
||
} | ||
|
||
@Override | ||
|
Large diffs are not rendered by default.
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.
AWS SDK v2.0 is in beta, but is there a reason that we don't update to the latest version (1.11.211, maybe 1.11.212)?
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.
We wanted for this PR to use the same version that we have been using for ec2. Not mandatory though that we keep that consistent.
I'm all +1 to move to latest and also move S3 to latest version.