For the below auth mode for a given kafka connector config
"kafka.auth.mode". : "SERVICE_ACCOUNT",
"kafka.service.account.id" : sa-******",
how would the docker-compose file look like for the connect, producer and consumer environment variables when it comes to authentication configuration?
Currently, with the “kafka.auth.mode”: “KAFKA_API_KEY” way of authenticating, the environment variables in docker-compose.yaml file looks like below for those sections
# Connect worker
CONNECT_SECURITY_PROTOCOL: SASL_SSL
CONNECT_SASL_JAAS_CONFIG: org.apache.kafka.common.security.plain.PlainLoginModule required username="[redacted]" password="[redacted]";
CONNECT_SASL_MECHANISM: PLAIN
CONNECT_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: "HTTPS"
# Connect producer
CONNECT_PRODUCER_SECURITY_PROTOCOL: SASL_SSL
CONNECT_PRODUCER_SASL_JAAS_CONFIG: org.apache.kafka.common.security.plain.PlainLoginModule required username="[redacted]" password="[redacted]";
CONNECT_PRODUCER_SASL_MECHANISM: PLAIN
# Connect consumer
CONNECT_CONSUMER_SECURITY_PROTOCOL: SASL_SSL
CONNECT_CONSUMER_SASL_JAAS_CONFIG: org.apache.kafka.common.security.plain.PlainLoginModule required username="[redacted]" password="[redacted]";
CONNECT_CONSUMER_SASL_MECHANISM: PLAIN
I am looking for the equivalent for the above for “kafka.auth.mode” : “SERVICE_ACCOUNT” for the docker-compose.yaml file.
Much appreciated