-
Notifications
You must be signed in to change notification settings - Fork 2
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
Cannot use WebIdentityToken credentials #2
Comments
Hi ofeki-neosec@, I tried to reproduce the issue. I've made a simple modification to the tink-java-awskms example from tink-java-awskms@HEAD adding: KmsClient c = new AwsKmsClient()
.withCredentialsProvider(new WebIdentityTokenCredentialsProvider());
String ciphertext = c.getAead(masterKeyUri).encrypt(plaintext, associatedData); and modifying Building/testing with:
I get exactly the same error:
However, when I add the following:
to the example's pom file, I no longer get this error (I do get another unrelated one though due to not setting credentials correctly). How are you adding |
Hi @ofeki-neosec is this still an issue for your setting? |
We recently encountered the same issue - got the same exact error message as @ofeki-neosec did, added the 'aws-java-sdk-sts' dependency to the pom.xml file but the error didn't go away. We use the Maven Shade plugin to build a uber jar for deployment, and set the Therefore the solution to our problem is to specifically mark the |
Help us help you
We'd like to know more about
your Tink deployment.
Describe the bug:
When using WebIdentityTokens, I get the following message in debug:
This does not allow me to use Tink in EKS with IRSA enabled.
What was the expected behavior?
I want Tink to be able to use WebIdentityTokens and it needs the aws-java-sdk-sts module must be on the class path to do that.
How can we reproduce the bug?
Try to use Tink in EKS with IRSA.
Do you have any debugging information?
If applicable, include error messages, stack traces, or any other debugging information.
What version of Tink are you using?
1.6.1, but I don't see the fix was deployed in 1.7.0 either.
Can you tell us more about your development environment?
JDK 11
Is there anything else you'd like to add?
The solution is to add aws-java-sdk-sts to the list of dependencies for this module.
I tried adding it as a dependency to my program but it didn't do the trick.
The text was updated successfully, but these errors were encountered: