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

add support for web identity token credentials #761

Closed
vicki-c opened this issue Dec 2, 2020 · 3 comments
Closed

add support for web identity token credentials #761

vicki-c opened this issue Dec 2, 2020 · 3 comments

Comments

@vicki-c
Copy link
Contributor

vicki-c commented Dec 2, 2020

I'm trying to run the Kinesis Python client on EKS, where the credentialing mechanism is web identity token. However, when I set the credential provider to the default chain like so:

AWSCredentialsProvider = DefaultAWSCredentialsProviderChain

the workers seem to attempt to use the instance profile to access AWS APIs instead, based on the request logs.

I have confirmed that the IAM policies are set up correctly. When I manually set the access key credentials in the environment (via AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY), the workers work correctly.

I believe a couple of things need to happen in order to support web identity tokens:

  1. The AWS Java SDK version used in multilang needs to be bumped from 1.11.477 to at least 1.11.704, based on the documentation.
  2. The aws-java-sdk-sts module needs to be added as a dependency, based on the debug log:
[DEBUG] AWSCredentialsProviderChain - Unable to load credentials from WebIdentityTokenCredentialsProvider: To use assume role profiles the aws-java-sdk-sts module must be on the class path.
@yogesh8177
Copy link

Facing the same issue. Any update on this issue?

@vicki-c
Copy link
Contributor Author

vicki-c commented Feb 17, 2021

I think we're waiting for AWS to merge the linked PRs. :(

@vicki-c
Copy link
Contributor Author

vicki-c commented Aug 19, 2021

The PRs were merged

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

2 participants