Open yermulnik opened 5 months ago
I am also having the same issue as @yermulnik. Is there any update as to whether this request will be implemented? Or a possible work around it in the meantime?
I am experiencing the same issue. I am trying to access the AWS MSK broker through a proxy rather than using the broker host directly, and this results in the same problem..
UPDATE)
I upgraded to version 2.2.0 and the error disappeared in version 2.2.0 🤔
Our use case is that we want to use custom MSK broker endpoint hostnames by aliasing them to original endpoints provided by MSK (sensitive info in the below code snippet is replaces with
X
s):This helps us template MSK broker endpoint hostnames for different environments to eliminate the need for an app to query client connection info from AWS API.
This works w/o issues within AWS, though this fails when using AWS MSK IAM Auth library to connect from outside AWS as 1) EC2 metadata endpoint doesn't exist there and 2) library cannot derive region from the endpoint DNS hostname.
Ref: https://github.com/aws/aws-msk-iam-auth/blob/main/src/main/java/software/amazon/msk/auth/iam/internals/AuthenticationRequestParams.java#L62-L71
I wasn't able to figure out how to override (explicitly set) AWS region with
sasl.jaas.config
and I lean to think there's no option for that at the moment.Is it possible to implement a feature to provide AWS region name (
awsRegion
) and to disable querying AWS EC2 Metadata Endpoint (awsDisableMetadata
) just like other AWS parameters (awsProfileName
,awsRoleArn
, so on) at https://github.com/aws/aws-msk-iam-auth/blob/main/src/main/java/software/amazon/msk/auth/iam/internals/MSKCredentialProvider.java#L83-L96 ?Example properties file content:
Example error output using
aws-msk-iam-auth-2.1.0-all.jar
andkafka_2.13-3.6.1
client (slightly trimmed for the sake of brevity):Thank you.