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

[S4734612] :- Custom IAM Auth Lib Implementation to support STS Regio… #197

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

khotvishwajeet
Copy link

Issue #, if available:

Description of changes:
Currently AWS IAM Auth library doesn't support STS Regional based custom endpoints and it is taking always public endpoints. So this is difficulty to connect from External Non EC2 instance where it is using assume role credentials to communicate to public endpoints due to firewall / company internal policies. So this custom IAM Auth Lib Implementation help to support STS Regional based endpoints and credentials refresh by addition of below config in the sasl.jaas.config with custom STSAssumeRoleIAMClientCallbackHandler class in the callback handler

sasl.jaas.config = software.amazon.msk.auth.iam.IAMLoginModule required awsRoleArn='awsRoleArn' awsRoleSessionName='awsRoleSessionName' awsStsRegion='awsStsRegion' awsStsRegionalEndpoint='awsStsRegionalEndpoint';

sasl.login.callback.handler.class=software.amazon.msk.auth.iam.STSAssumeRoleIAMClientCallbackHandler

This is used during client authentication and reauthentication

sasl.client.callback.handler.class=software.amazon.msk.auth.iam.STSAssumeRoleIAMClientCallbackHandler

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…nal based endpoints and credentials refresh
@khotvishwajeet khotvishwajeet requested a review from a team as a code owner January 21, 2025 09:10
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

Successfully merging this pull request may close these issues.

1 participant