You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring Apache Kafka in KRaft mode with OAuth authentication, Kafka fails to recognize the JAAS configuration, resulting in the following error:
java.lang.IllegalArgumentException: Login module not specified in JAAS config
Kafka running in a Bitnami Docker image (bitnami/kafka:latest)
KAFKA_OPTS correctly set: -Djava.security.auth.login.config=/bitnami/kafka/config/kafka_server_jaas.conf
The kafka_server_jaas.conf file is correctly mounted and contains a valid JAAS configuration.
KAFKA_CFG_SASL_JAAS_CONFIG is also set as an environment variable.
Steps to Reproduce:
Deploy Kafka in KRaft mode using Bitnami’s Docker image.
Configure OAuth SASL authentication using JAAS (kafka_server_jaas.conf).
Start Kafka and check logs.
Kafka fails with the error "Login module not specified in JAAS config" despite the JAAS file being present.
Expected Behavior:
****Kafka should properly recognize the kafka_server_jaas.conf file and authenticate using OAuth.
Actual Behavior:
Kafka fails at startup, indicating that the login module is missing, even though the JAAS configuration is correctly provided via KAFKA_OPTS.
Possible Causes:
Bitnami image may not be properly recognizing KAFKA_OPTS for JAAS configuration.
Kafka might be prioritizing KAFKA_CFG_SASL_JAAS_CONFIG over java.security.auth.login.config.
Multi-line YAML handling in docker-compose.yml may be causing issues with JAAS parsing. Workarounds Attempted:
Explicitly setting KAFKA_OPTS in Dockerfile instead of docker-compose.yml.
Using different Kafka versions (3.4.0, latest).
Confirmed that the JAAS file is correctly mounted inside the container.
The text was updated successfully, but these errors were encountered:
Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.
Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.
Name and Version
bitnami/kafka:latest
What architecture are you using?
None
What steps will reproduce the bug?
What do you see instead?
Additional information
When configuring Apache Kafka in KRaft mode with OAuth authentication, Kafka fails to recognize the JAAS configuration, resulting in the following error:
java.lang.IllegalArgumentException: Login module not specified in JAAS config
Kafka running in a Bitnami Docker image (bitnami/kafka:latest)
KAFKA_OPTS correctly set:
-Djava.security.auth.login.config=/bitnami/kafka/config/kafka_server_jaas.conf
The kafka_server_jaas.conf file is correctly mounted and contains a valid JAAS configuration.
KAFKA_CFG_SASL_JAAS_CONFIG is also set as an environment variable.
Steps to Reproduce:
Deploy Kafka in KRaft mode using Bitnami’s Docker image.
Configure OAuth SASL authentication using JAAS (kafka_server_jaas.conf).
Start Kafka and check logs.
Kafka fails with the error "Login module not specified in JAAS config" despite the JAAS file being present.
Expected Behavior:
****Kafka should properly recognize the kafka_server_jaas.conf file and authenticate using OAuth.
Actual Behavior:
Kafka fails at startup, indicating that the login module is missing, even though the JAAS configuration is correctly provided via KAFKA_OPTS.
Possible Causes:
Bitnami image may not be properly recognizing KAFKA_OPTS for JAAS configuration.
Kafka might be prioritizing KAFKA_CFG_SASL_JAAS_CONFIG over java.security.auth.login.config.
Multi-line YAML handling in docker-compose.yml may be causing issues with JAAS parsing.
Workarounds Attempted:
Explicitly setting KAFKA_OPTS in Dockerfile instead of docker-compose.yml.
Using different Kafka versions (3.4.0, latest).
Confirmed that the JAAS file is correctly mounted inside the container.
The text was updated successfully, but these errors were encountered: