KAFKA-20419 : docker - Adding sasl_plain docker compose examples#22023
Open
muralibasani wants to merge 1 commit intoapache:trunkfrom
Open
KAFKA-20419 : docker - Adding sasl_plain docker compose examples#22023muralibasani wants to merge 1 commit intoapache:trunkfrom
muralibasani wants to merge 1 commit intoapache:trunkfrom
Conversation
Contributor
Author
|
@FrankYang0529 may I request your review pls ? |
muralibasani
commented
Apr 10, 2026
| - `KAFKA_OPTS` is set to point to the JAAS config file. | ||
| - Similar to the plaintext example, two listeners are configured: one for inter-broker communication and one for client-to-broker communication. Both use the `SASL_PLAINTEXT` security protocol. | ||
| - Two users are configured in the JAAS file: `admin` (for inter-broker) and `alice` (for clients). | ||
| - Note: SASL is currently not supported with the GraalVM based native image (`apache/kafka-native`) due to missing reflection configuration for `java.security.AccessController`. See [KAFKA-19584](https://issues.apache.org/jira/browse/KAFKA-19584) for details. |
Contributor
Author
There was a problem hiding this comment.
This is an open issue.
muralibasani
commented
Apr 10, 2026
| print(constants.FILE_INPUT_ERROR_PREFIX, str(e)) | ||
| total_errors.append(str(e)) | ||
| # SASL is not supported on native image due to missing reflection config (KAFKA-19584) | ||
| if self.MODE == "jvm": |
Contributor
Author
There was a problem hiding this comment.
since this sasl config doesn't work on native image, adding this condition to run only on jvm based image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ref : https://issues.apache.org/jira/browse/KAFKA-20419
Note : these examples work only with jvm image and not with native image. (Open issue https://issues.apache.org/jira/browse/KAFKA-19584)
Changes :