Skip to content

Commit e3d5829

Browse files
authored
Merge pull request #14539 from Security-Onion-Solutions/reyesj2-patch-1
fix kafka delayed initial connection with remote clients on multi-broker deployments
2 parents 240484d + df31c34 commit e3d5829

3 files changed

Lines changed: 29 additions & 3 deletions

File tree

salt/kafka/config.map.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
{% do KAFKAMERGED.config.broker.update({'listeners': KAFKAMERGED.config.broker.listeners + ',' + KAFKAMERGED.config.external_access.listeners }) %}
3535
{% do KAFKAMERGED.config.broker.update({'listener_x_security_x_protocol_x_map': KAFKAMERGED.config.broker.listener_x_security_x_protocol_x_map + ',' + KAFKAMERGED.config.external_access.listener_x_security_x_protocol_x_map }) %}
3636
{% do KAFKAMERGED.config.broker.update({'sasl_x_enabled_x_mechanisms': KAFKAMERGED.config.external_access.sasl_x_enabled_x_mechanisms }) %}
37-
{% do KAFKAMERGED.config.broker.update({'sasl_x_mechanism_x_broker_x_protocol': KAFKAMERGED.config.external_access.sasl_x_mechanism_x_broker_x_protocol }) %}
37+
{% do KAFKAMERGED.config.broker.update({'sasl_x_mechanism_x_inter_x_broker_x_protocol': KAFKAMERGED.config.external_access.sasl_x_mechanism_x_inter_x_broker_x_protocol }) %}
3838
{% else %}
3939
{% do KAFKAMERGED.config.broker.update({'advertised_x_listeners': 'BROKER://'+ GLOBALS.node_ip +':9092' }) %}
4040
{% endif %}
@@ -65,7 +65,7 @@
6565
{% do KAFKAMERGED.config.broker.update({'listeners': KAFKAMERGED.config.broker.listeners + ',' + KAFKAMERGED.config.external_access.listeners }) %}
6666
{% do KAFKAMERGED.config.broker.update({'listener_x_security_x_protocol_x_map': KAFKAMERGED.config.broker.listener_x_security_x_protocol_x_map + ',' + KAFKAMERGED.config.external_access.listener_x_security_x_protocol_x_map }) %}
6767
{% do KAFKAMERGED.config.broker.update({'sasl_x_enabled_x_mechanisms': KAFKAMERGED.config.external_access.sasl_x_enabled_x_mechanisms }) %}
68-
{% do KAFKAMERGED.config.broker.update({'sasl_x_mechanism_x_broker_x_protocol': KAFKAMERGED.config.external_access.sasl_x_mechanism_x_broker_x_protocol }) %}
68+
{% do KAFKAMERGED.config.broker.update({'sasl_x_mechanism_x_inter_x_broker_x_protocol': KAFKAMERGED.config.external_access.sasl_x_mechanism_x_inter_x_broker_x_protocol }) %}
6969
{% else %}
7070
{% do KAFKAMERGED.config.broker.update({'advertised_x_listeners': 'BROKER://'+ GLOBALS.node_ip +':9092' + ',' + 'CONTROLLER://'+ GLOBALS.node_ip +':9093' }) %}
7171
{% endif %}

salt/kafka/defaults.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ kafka:
6868
listeners: EXTERNAL_ACCESS://0.0.0.0:29092
6969
listener_x_security_x_protocol_x_map: EXTERNAL_ACCESS:SASL_SSL
7070
sasl_x_enabled_x_mechanisms: PLAIN
71-
sasl_x_mechanism_x_broker_x_protocol: SSL
71+
sasl_x_mechanism_x_inter_x_broker_x_protocol: SSL

salt/kafka/soc_kafka.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,14 +228,40 @@ kafka:
228228
description: Enables or disables access to Kafka topics using user/password authentication. Used for producing / consuming messages via an external client.
229229
forcedType: bool
230230
helpLink: kafka.html
231+
listeners:
232+
description: Set of URIs that is listened on and the listener names in a comma-seperated list.
233+
title: listeners
234+
readonly: True
235+
advanced: True
236+
helpLink: kafka.html
237+
listener_x_security_x_protocol_x_map:
238+
description: External listener name and mapped security protocol.
239+
title: listener.security.protocol.map
240+
readonly: True
241+
advanced: True
242+
helpLink: kafka.html
243+
sasl_x_enabled_x_mechanisms:
244+
description: SASL/PLAIN is a simple username/password authentication mechanism, used with TLS to implement secure authentication.
245+
title: sasl.enabled.mechanisms
246+
readonly: True
247+
advanced: True
248+
helpLink: kafka.html
249+
sasl_x_mechanism_x_inter_x_broker_x_protocol:
250+
description: SASL mechanism used for inter-broker communication
251+
title: sasl.mechanism.inter.broker.protocol
252+
readonly: True
253+
advanced: True
254+
helpLink: kafka.html
231255
remote_users:
232256
user01: &remote_user
233257
username:
234258
description: Username to be used for custom account
235259
forcedType: string
260+
global: True
236261
password:
237262
description: Password to be used for custom account
238263
forcedType: string
264+
global: True
239265
sensitive: True
240266
user02: *remote_user
241267
user03: *remote_user

0 commit comments

Comments
 (0)