From 914fb743aa4e007769256c072d2243c558bdb018 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 13 Oct 2023 14:23:45 +0200 Subject: [PATCH] =?utf8?q?Connect=20greift=20=C3=BCber=20abgesicherte=20Ad?= =?utf8?q?resse=20zu?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- docker/docker-compose.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index d925990..6a09187 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -183,7 +183,7 @@ services: connect: image: confluentinc/cp-kafka-connect:7.5.1 environment: - CONNECT_BOOTSTRAP_SERVERS: kafka-1:9091,kafka-2:9091,kafka-3:9091 + CONNECT_BOOTSTRAP_SERVERS: kafka-1:9092,kafka-2:9092,kafka-3:9092 CONNECT_REST_PORT: 8083 CONNECT_REST_LISTENERS: http://0.0.0.0:8083 CONNECT_REST_ADVERTISED_HOST_NAME: connect @@ -203,6 +203,29 @@ services: CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1 CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1 CONNECT_PLUGIN_PATH: /usr/share/java/ + # Configure the Connect workers to use SASL/PLAIN. + CONNECT_SASL_MECHANISM: PLAIN + CONNECT_SECURITY_PROTOCOL: SASL_PLAINTEXT + # JAAS + CONNECT_SASL_JAAS_CONFIG: > + org.apache.kafka.common.security.plain.PlainLoginModule required + username="connect" + password="connect-secret"; + # producer + CONNECT_PRODUCER_SASL_MECHANISM: PLAIN + CONNECT_PRODUCER_SECURITY_PROTOCOL: SASL_PLAINTEXT + CONNECT_PRODUCER_SASL_JAAS_CONFIG: > + org.apache.kafka.common.security.plain.PlainLoginModule required + username="connect" + password="connect-secret"; + # consumer + CONNECT_CONSUMER_SASL_MECHANISM: PLAIN + CONNECT_CONSUMER_SECURITY_PROTOCOL: SASL_PLAINTEXT + CONNECT_CONSUMER_SASL_JAAS_CONFIG: > + org.apache.kafka.common.security.plain.PlainLoginModule required + username="connect" + password="connect-secret"; + ports: - 8083:8083 depends_on: -- 2.20.1