Skip to content

Instantly share code, notes, and snippets.

@wpik
Created September 12, 2019 11:39
Show Gist options
  • Select an option

  • Save wpik/3e3c62a6877b47f6673b842307e2a051 to your computer and use it in GitHub Desktop.

Select an option

Save wpik/3e3c62a6877b47f6673b842307e2a051 to your computer and use it in GitHub Desktop.
Kafka SASL config with spring-cloud-stream kafka-binder
spring:
cloud:
stream:
kafka:
binder:
brokers: kafka-host:9092
configuration:
sasl:
mechanism: PLAIN
security:
protocol: SASL_PLAINTEXT
jaas:
loginModule: org.apache.kafka.common.security.plain.PlainLoginModule
kafka:
properties:
sasl:
jaas:
config: org.apache.kafka.common.security.plain.PlainLoginModule required username="kafka-user" password="kafka-password";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment