Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Adding a new SSL listener with hostnameOverride does not regenerate certificates #1062

@david-simon

Description

@david-simon

Description

When a new SSL listener is added where the "hostnameOverride" field contains a new value, the auto-generated certificates are not updated.
As a workaround new certificates can be issued and specified in the 'serverSSLCertSecret'.

Expected Behavior

Certificates are re-issued with the new hostname added as a Subject Alternative Name

Actual Behavior

Certificates are not updated and clients connecting to the new hostname get an SSL exception.

Affected Version

0.25.1

Steps to Reproduce

  1. kubectl create -f config/samples/simplekafkacluster_ssl.yaml
  2. Add external listener to config/samples/simplekafkacluster_ssl.yaml:
spec:
  listenersConfig:
    externalListeners:
      - type: "ssl"
        name: "external"
        externalStartingPort: 19090
        containerPort: 9094
        accessMethod: LoadBalancer
        hostnameOverride: kafka.local
  1. kubectl apply config/samples/simplekafkacluster_ssl.yaml
  2. Observe that the certificates generated at step 1 are not updated with the new hostname 'kafka.local'

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions