aws / aws-msk-iam-auth

Enables developers to use AWS Identity and Access Management (IAM) to connect to their Amazon Managed Streaming for Apache Kafka (Amazon MSK) clusters.
Apache License 2.0
142 stars 65 forks source link

#127 add awsRegion to jaas configurations #130

Closed nihalpot closed 1 year ago

nihalpot commented 1 year ago

Issue #, if available: fixes #127 Auth failure when connecting from cross-region to MSK and cross-cloud

Description of changes: Add a new jass-config field awsRegion, set this in the callback, and then read it from the IAM Sasl Client to set the aws region when creating the signature

For testing, I have validated these with the unit tests and by creating a custom jar, then confirming that it solves the issue described in the issue