Skip to content

Add Kafka security.protocol key to SpringBoot autoconfig #19220

Closed
@Woodz

Description

@Woodz

Having some Kafka properties defined in SpringBoot autoconfig vs some Kafka properties having to be set in a separate "properties" map is not intuitive and is therefore confusing to junior devs. I propose that "security.protocol" is added to SpringBoot auto-configuration to avoid the separate "properties" key.

Spring Boot version: 2.1.9.RELEASE
Kafka version: 2.0.1

Example application.yml:

kafka:
  consumer:
    bootstrap-servers: <server>
    key-serializer: org.apache.kafka.common.serialization.StringSerializer
    value-serializer: org.apache.kafka.common.serialization.StringSerializer
    ssl:
      truststore-location: <trust store location>
      truststore-password: <password>
    properties:
      security.protocol: SSL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions