@@ -39,13 +39,15 @@ pub enum KafkaListenerName {
3939 /// The purpose of this listener is to handle client/broker communications.
4040 /// It can be configured to use the SSL or SASL_SSL (Kerberos) protocols
4141 /// if the brokers use TLS for communication (and possible authentication).
42- /// The PLAINTEXT protocol is never really used since `spec.clusterConfig.tls`
43- /// uses `tls` as default value.
42+ /// The PLAINTEXT protocol is used when `spec.clusterConfig.tls.serverSecretClass: null`
4443 /// The advertised listener hosts are derived from the pod (broker) listener volume.
4544 #[ strum( serialize = "CLIENT" ) ]
4645 Client ,
4746 /// The purpose if this listener is to handle broker internal communications.
48- /// The only protocol used here is SSL.
47+ /// Unlike the client listener, the only protocol used here is SSL even when
48+ /// `spec.clusterConfig.tls.internalSecretClass: null`.
49+ /// The advertised listener hosts are the same as the client (broker listener host)
50+ /// but with a different port.
4951 #[ strum( serialize = "INTERNAL" ) ]
5052 Internal ,
5153 /// This is almost identical with the `Client` listener with the following exceptions:
@@ -202,7 +204,7 @@ pub fn get_kafka_listener_config(
202204
203205 // CLIENT
204206 if kafka_security. has_kerberos_enabled ( ) {
205- // 2 ) Kerberos and TLS authentication classes are mutually exclusive
207+ // 1 ) Kerberos and TLS authentication classes are mutually exclusive
206208 listeners. push ( KafkaListener {
207209 name : KafkaListenerName :: Client ,
208210 host : LISTENER_LOCAL_ADDRESS . to_string ( ) ,
@@ -221,7 +223,7 @@ pub fn get_kafka_listener_config(
221223 } else if kafka_security. tls_client_authentication_class ( ) . is_some ( )
222224 || kafka_security. tls_server_secret_class ( ) . is_some ( )
223225 {
224- // 1 ) Client listener uses TLS (possibly with authentication)
226+ // 2 ) Client listener uses TLS (possibly with authentication)
225227 listeners. push ( KafkaListener {
226228 name : KafkaListenerName :: Client ,
227229 host : LISTENER_LOCAL_ADDRESS . to_string ( ) ,
@@ -239,7 +241,6 @@ pub fn get_kafka_listener_config(
239241 . insert ( KafkaListenerName :: Client , KafkaListenerProtocol :: Ssl ) ;
240242 } else {
241243 // 3) If no client auth or tls is required we expose CLIENT with PLAINTEXT
242- // This is actually never the case because
243244 listeners. push ( KafkaListener {
244245 name : KafkaListenerName :: Client ,
245246 host : LISTENER_LOCAL_ADDRESS . to_string ( ) ,
0 commit comments