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.