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
137 stars 65 forks source link

I'm having trouble with 'Cannot change principals during re-authentication from A: B' #104

Open ksundong opened 1 year ago

ksundong commented 1 year ago

Environment

Log

server 2023-01-31 14:05:26.312 ERROR 7 --- [container-0-C-1] o.s.k.l.KafkaMessageListenerContainer   :149 : Authentication/Authorization Exception, retrying in 10000 ms
server
server org.apache.kafka.common.errors.SaslAuthenticationException: Cannot change principals during re-authentication from A: B
amplexus commented 3 months ago

Set AWS_ROLE_SESSION_NAME. See https://github.com/jmaver-plume/kafkajs-msk-iam-authentication-mechanism/issues/20 for more info.

ksundong commented 2 months ago

@amplexus I'll try it, thanks.