Skip to content

Instantly share code, notes, and snippets.

@j-tim
Created January 17, 2020 13:24
Show Gist options
  • Save j-tim/1497c64a1a1e679141039d2c9b9d5e48 to your computer and use it in GitHub Desktop.
Save j-tim/1497c64a1a1e679141039d2c9b9d5e48 to your computer and use it in GitHub Desktop.
Spring Boot / Spring Kafka Confluent Cloud consumer configuration
spring:
kafka:
bootstrap-servers: ${CLUSTER_BOOTSTRAP_SERVERS}
properties:
ssl.endpoint.identification.algorithm: https
sasl.mechanism: PLAIN
request.timeout.ms: 20000
security.protocol: SASL_SSL
retry.backoff.ms: 500
sasl.jaas.config: org.apache.kafka.common.security.plain.PlainLoginModule required username='${CLUSTER_API_KEY}' password='${CLUSTER_API_SECRET}';
# Schema Registry specific settings
schema.registry.url: ${SR_URL}
basic.auth.credentials.source: USER_INFO
schema.registry.basic.auth.user.info: ${SR_API_KEY}:${SR_API_SECRET}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment