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.

Issues with Kafka User creation #1079

@malindarathnayake-fts

Description

@malindarathnayake-fts

Description

We are trying to add a user auth with sasl-plaintext set on external listener

Following the sample configuration, we applied the following. Test-topic is created and we can send and get messages from it (tested with Plain TEXT)

apiVersion: kafka.banzaicloud.io/v1alpha1
kind: KafkaUser
metadata:
  name: example-kafkauser
  namespace: kafka-dev
spec:
  clusterRef:
    name: kafka
  secretName: example-kafkauser-secret
  topicGrants:
    - topicName: test-topic
      accessType: read
    - topicName: test-topic
      accessType: write

#664

Based on this closed issue, to confirm having SSL enabled is a prerequisite to creating a user?

Expected Behavior

Password for the user should be stored as a secret in the Namespace

Actual Behavior

We can see the user but the secret is not being generated

Affected Version

Please provide the version number where this issue was encountered.

Steps to Reproduce

Create a user

apiVersion: kafka.banzaicloud.io/v1alpha1
kind: KafkaUser
metadata:
  name: example-kafkauser
  namespace: kafka-dev
spec:
  clusterRef:
    name: kafka
  secretName: example-kafkauser-secret
  topicGrants:
    - topicName: test-topic
      accessType: read
    - topicName: test-topic
      accessType: write

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