-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Docker-compose for Kafka: Unable to set JAAS Config #63505
Comments
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Hi @stammaja, Let me shed some light here.
Now, considering the above, I have noticed several issues:
To fix this issue, I will release an image with the following changes:
Therefore, you should be able to address this issue by either setting |
I will let you know once a new version of bitnami/kafka is released including those changes. |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
Name and Version
bitnami/kafka:3.6
What architecture are you using?
amd64
What steps will reproduce the bug?
When starting docker-compose.yaml with any of the options noted below:
1.
This version breaks with
KAFKA_CFG_OPTS
instead ofKAFKA_OPTS
KafkaServer
instead oflistenersaslexternal.KafkaServer
- KAFKA_LISTENER_NAME_LISTENERSASLEXTERNAL_PLAIN_SASL_JAAS_CONFIG=org.apache.kafka.common.security.plain.PlainLoginModule required serviceName="kafka" username="admin" password="adminsecret123" user_local="local_kafka_pw";
instead of using
kafka_jaas.config
Options 2,3,4 behave like there was no variable set, cat /opt/bitnami/kafka/config/server.properties
gives result
`listener.name.listenersaslexternal.plain.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required user_user="bitnami";
What is the expected behavior?
There is a way to set the listener's jaas config without mounting the whole
server.properties
fileWhat do you see instead?
In any of the tested scenarios, cat /opt/bitnami/kafka/config/server.properties
gives result
listener.name.listenersaslexternal.plain.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required user_user="bitnami";
The application gets 'Authentication failed: Invalid username or password'
Additional information
Only option which works is:
with
listener.name.listenersaslexternal.plain.sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required serviceName="kafka" username="admin" password="adminsecret123" user_local="local_kafka_pw";
The text was updated successfully, but these errors were encountered: