showuon commented on code in PR #23835: URL: https://github.com/apache/kafka/pull/23835#discussion_r4595977655
########## docs/security/listener-configuration.md: ########## @@ -80,7 +80,7 @@ controller.listener.names=CONTROLLER listener.security.protocol.map=BROKER:SASL_SSL,CONTROLLER:SASL_SSL ``` -The controller listener is still configured in this example to use the `SASL_SSL` security protocol, but it is not included in `listeners` since the broker does not expose the controller listener itself. The port that will be used in this case comes from the `controller.quorum.voters` configuration, which defines the complete list of controllers. +The controller listener is still configured in this example to use the `SASL_SSL` security protocol, but it is not included in `listeners` since the broker does not expose the controller listener itself. The controller endpoints used by the broker come from the `controller.quorum.bootstrap.servers` configuration. Review Comment: Nice catch for the `controller.quorum.voters` change! ########## docs/security/listener-configuration.md: ########## @@ -95,6 +95,34 @@ listener.security.protocol.map=BROKER:SASL_SSL,CONTROLLER:SASL_SSL It is a requirement that the host and port defined in `controller.quorum.bootstrap.servers` is routed to the exposed controller listeners. For example, here the `CONTROLLER` listener is bound to localhost:9093. The connection string defined by `controller.quorum.bootstrap.servers` must then also use localhost:9093, as it does here. +When a controller listener uses SASL, `sasl.mechanism.controller.protocol` selects the mechanism used for connections to the controllers. The mechanism must be enabled, and each SASL listener must have a JAAS configuration for that mechanism. For example, the following listener-related settings configure a combined broker and controller to use SASL/PLAIN for both broker and controller traffic: Review Comment: This chapter is to talk about `Listener Configuration`, and we have another chapter for `Authentication using SASL`. I don't think we need the detailed example here to guide users how to setup whole SASL in kafka. I think we don't need the example below, and just add one more paragraph in L98 saying something like: `When a controller listener uses SASL, `sasl.mechanism.controller.protocol` selects the mechanism used for connections to the controllers. The mechanism must be enabled, and each SASL listener must have a JAAS configuration for that mechanism. See [Authentication using SASL](../authentication-using-sasl) for mechanism-specific configuration and production recommendations.` That should be able to notify users about the SASL configuration. WDYT? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
