From: Kai Moritz Date: Sun, 25 May 2025 19:04:03 +0000 (+0200) Subject: WIP:sasl-client--broker-angepasst--separate-accounts X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=20876a10d48699b67b89beb6320a22601ae3b771;p=demos%2Fkafka%2Ftraining WIP:sasl-client--broker-angepasst--separate-accounts --- diff --git a/docker-compose.yml b/docker-compose.yml index 58191d5..0ee459d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,26 +28,26 @@ services: KAFKA_SUPER_USERS: User:broker KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "false" - KAFKA_LISTENER_NAME_BROKER_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_BROKER_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; - KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; - KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN KAFKA_SASL_ENABLED_MECHANISMS: PLAIN @@ -82,26 +82,26 @@ services: KAFKA_SUPER_USERS: User:broker KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "false" - KAFKA_LISTENER_NAME_BROKER_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_BROKER_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; - KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; - KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN KAFKA_SASL_ENABLED_MECHANISMS: PLAIN @@ -141,26 +141,26 @@ services: KAFKA_SUPER_USERS: User:broker KAFKA_AUTHORIZER_CLASS_NAME: kafka.security.authorizer.AclAuthorizer KAFKA_ALLOW_EVERYONE_IF_NO_ACL_FOUND: "false" - KAFKA_LISTENER_NAME_BROKER_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_BROKER_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; - KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_DOCKER_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; - KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: | - org.apache.kafka.common.security.plain.PlainLoginModule required \ - user_broker="brokerpw" \ - user_producer="producerpw" \ - user_consumer="consumerpw" \ - username="broker" \ + KAFKA_LISTENER_NAME_LOCALHOST_PLAIN_SASL_JAAS_CONFIG: >- + org.apache.kafka.common.security.plain.PlainLoginModule required + user_broker="brokerpw" + user_producer="producerpw" + user_consumer="consumerpw" + username="broker" password="brokerpw"; KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN KAFKA_SASL_ENABLED_MECHANISMS: PLAIN