-
Notifications
You must be signed in to change notification settings - Fork 69
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
Re-authentication fails with OAUTHBEARER when awsRoleArn is specified #143
Comments
I enabled DEBUG logging, and I see the application re-authenticates successfully but with a decreasing session timeout each time, until it's too short:
|
Thank you for raising this. Great details! We will deep dive on this asap and get back. |
I updated our application to leave off
|
I was able to repro the issue locally, and I have a suspicion it might only be isolated to cases where you provide an awsRoleArn to the jaas config. My hypothesis is that since @jamielwhite were you able to get results for your last run (without passing awsRoleArn) ? If not, I will try to run a similar consumer app and observe results tomorrow. |
Yes, the same issue eventually happened without passing awsRoleArn. |
@jamielwhite we are trying a couple of things for this. Will share an update soon. |
@jamielwhite can you share the setup which led to this issue without using awsRoleArn? Would be helpful to know the client properties you used in that case, and what credentials you ended up using at that point? Also, can you also share the session expiration in those cases? |
The setup was the same with
|
Hi @jamielwhite, I just pushed a fix for this issue. Would you be able to build a jar locally and verify if this works for you? We will have a release for this in the next few days. |
Thanks @sankalpbhatia! We've made it a few minutes past the 15 minute mark where it initially failed, so it looks like this is working. I also have a consumer running without |
This is unrelated to the issue, but does AWS have any plans to release a SASL signer library in Ruby now that it's supported in other languages like Python and Go? |
There are no plans to release a signer library in Ruby right now. |
|
@sankalpbhatia someone wrote the ruby signer library: https://github.com/bruce-szalwinski-he/aws-msk-iam-sasl-signer-ruby. Please consider moving this to aws org. More details are present in aws/aws-sdk-ruby#2985 |
I have a Kafka consumer which is failing to re-authenticate. The consumer works for the first 15 minutes, but it fails once the credentials expire despite the logs indicating it has refreshed the credentials. I've replicated this issue with a Java application as well as the
kafka-console-consumer
.Here are the logs indicating the login is refreshed at the 10 minute mark, but the consumer fails to re-authenticate at 15 minutes:
This issue does not occur if I remove
awsRoleArn
fromsasl.jaas.config
, but the re-authentication fails if I include it. Here's what the properties file looks like:Kafka version: 3.6.0
aws-msk-iam-auth version: 2.0.0
The text was updated successfully, but these errors were encountered: