Skip to content

[Enhancement]: additional listener should inherit the configured authentication method #7531

@lburgazzoli

Description

@lburgazzoli

Module

Redpanda

Proposal

With the current redpanda.yaml template, additional listener are added as follow:

<#list kafkaApi.listeners as listener>
    - address: 0.0.0.0
      name: ${listener.address}
      port: ${listener.port}
</#list>

However if authentication is turned on, then using such listeners would fail because no authentication is configured. Ideally any new additional listener should inherit the defined authentication_method or - but that would be a little bit more convoluted - allow the user to also define the authentication method one adding a listener, i.e.

RedpandaContainer redpanda = new RedpandaContainer("docker.redpanda.com/redpandadata/redpanda:v23.1.7")
    .withListener(() -> "redpanda:19092?auth=sasl")
    .withNetwork(network);

I can provide a PR if this enhancement is accepted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions