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

Auth error - while application hosted in Openshift Rosa POD trying to access AWS MSK #159

Open
rajarshp opened this issue Mar 27, 2024 · 0 comments

Comments

@rajarshp
Copy link

rajarshp commented Mar 27, 2024

Hi Team,

We were doing some POC to see kafka-UI (https://github.com/provectus/kafka-ui) which is deployed in Openshift Rosa POD can connect MSK or not.

We have configured IAM role and attached the required policies in both Rosa Node and MSK. Now we have used the below config for this connection :-

security.protocol = SASL_SSL sasl.mechanism = AWS_MSK_IAM sasl.jaas.config = software.amazon.msk.auth.iam.IAMLoginModule required; sasl.client.callback.handler.class = software.amazon.msk.auth.iam.IAMClientCallbackHandler

We have done all the configuration but this application is failing with below error :-

Caused by: com.amazonaws.SdkClientException: Unable to load AWS credentials from any provider in the chain: [com.amazonaws.auth.AWSCredentialsProviderChain@663b8b0b: Unable to load AWS credentials from any provider in the chain: [EnvironmentVariableCredentialsProvider: Unable to load AWS credentials from environment variables (AWS_ACCESS_KEY_ID (or AWS_ACCESS_KEY) and AWS_SECRET_KEY (or AWS_SECRET_ACCESS_KEY)), SystemPropertiesCredentialsProvider: Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), WebIdentityTokenCredentialsProvider: You must specify a value for roleArn and roleSessionName, software.amazon.msk.auth.iam.internals.EnhancedProfileCredentialsProvider@4210c4cc: Profile file contained no credentials for profile 'default': ProfileFile(profilesAndSectionsMap=[]), com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@69e7ea6: Failed to connect to service endpoint: ]]

But when we are installing kafka-client on the node and trying to create a topic with same config/role it is able to do it.

Could you please let me know what is the issue ? is it impacted by the POD identity issue which is not supported by SDK v1 ?

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

No branches or pull requests

1 participant