GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Feature: Make Kafka listener name and security protocol configurable · Issue #965 · testcontainers/testcontainers-python

Feature: Make Kafka listener name and security protocol configurable #965

New issue
Copy link
New issue
Copy link
Closed
#966
Closed
Feature: Make Kafka listener name and security protocol configurable#965
#966
Copy link
Labels
🚀 enhancement

Description

@jackburridge
jackburridge
opened on Feb 4, 2026
Issue body actions

What are you trying to do?

Add optional constructor parameters to KafkaContainer to allow configuring the Kafka listener name and its security protocol, instead of hard-coding PLAINTEXT. This enables users to run Kafka containers with alternative listener names (for example SASL_PLAINTEXT or SSL) while still using the same container abstraction.

Why should it be done this way?

The current implementation always advertises PLAINTEXT as the client-facing listener and protocol, which limits test scenarios that need different listener naming or security configurations. By exposing listener_name and security_protocol as explicit parameters, the default behaviour remains unchanged, but users can opt into more realistic Kafka setups without overriding internal attributes or reimplementing container startup logic.

This approach aligns directly with Kafka’s own configuration model (KAFKA_LISTENERS and KAFKA_LISTENER_SECURITY_PROTOCOL_MAP) and keeps the change small, and backwards compatible.

Activity

  1. jackburridge
    added
    🚀 enhancement
    on Feb 4, 2026
  2. alexanderankin commented on Feb 4, 2026

    @alexanderankin
    alexanderankin
    on Feb 4, 2026 via email
    Member
    More actions
    i like small and backwards compatible PRs
    …
    On Wed, Feb 4, 2026 at 4:05 PM Jack Burridge ***@***.***> wrote: *jackburridge* created an issue (testcontainers/testcontainers-python#965) <#965> *What are you trying to do?* Add optional constructor parameters to KafkaContainer to allow configuring the Kafka listener name and its security protocol, instead of hard-coding PLAINTEXT. This enables users to run Kafka containers with alternative listener names (for example SASL_PLAINTEXT or SSL) while still using the same container abstraction. *Why should it be done this way?* The current implementation always advertises PLAINTEXT as the client-facing listener and protocol, which limits test scenarios that need different listener naming or security configurations. By exposing listener_name and security_protocol as explicit parameters, the default behaviour remains unchanged, but users can opt into more realistic Kafka setups without overriding internal attributes or reimplementing container startup logic. This approach aligns directly with Kafka’s own configuration model ( KAFKA_LISTENERS and KAFKA_LISTENER_SECURITY_PROTOCOL_MAP) and keeps the change small, and backwards compatible. — Reply to this email directly, view it on GitHub <#965>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACECGJE3DM6WRHGG6XGSSGT4KJNIDAVCNFSM6AAAAACUAJEABWVHI2DSMVQWIX3LMV43ASLTON2WKOZTHA4TQNBRGMZDCMA> . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
    Reacted by Jack Burridge
  3. jackburridge
    changed the title [-]Feature:[/-] [+]Feature: Make Kafka listener name and security protocol configurable[/+] on Feb 4, 2026
  4. jackburridge commented on Feb 4, 2026

    @jackburridge
    jackburridge
    on Feb 4, 2026
    ContributorAuthor
    More actions

    i like small and backwards compatible PRs
    …

    @alexanderankin The PR is less text than the issue description 😄

  5. alexanderankin
    added a commit that references this issue on Feb 5, 2026

    feat(kafka): allow configurable listener name and security protocol (#…

    44dd40b
  6. alexanderankin
    closed this as completedin #966on Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚀 enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.