Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security examples missing KRaft setup #307

Open
pneff93 opened this issue Jun 21, 2024 · 2 comments
Open

Security examples missing KRaft setup #307

pneff93 opened this issue Jun 21, 2024 · 2 comments

Comments

@pneff93
Copy link
Member

pneff93 commented Jun 21, 2024

The examples in https://github.com/confluentinc/confluent-kubernetes-examples/tree/master/security are a great way to point to a concrete setup. However, all examples are still using ZK.

We should also have them with KRaft Controllers.

@pkleindl
Copy link

pkleindl commented Jul 22, 2024

We are just working on a setup with KRaft for a customer project based on security/production-secure-deploy-ldap-rbac-all

It only took the following changes:
Replace ZK with KRaft controller

apiVersion: platform.confluent.io/v1beta1
kind: KRaftController
metadata:
  name: kraftcontroller
  namespace: confluent
spec:
  replicas: 3
  image:
    application: confluentinc/cp-server:7.6.0
    init: confluentinc/confluent-init-container:2.8.0
  listeners:
    controller:
      tls:
        enabled: true
      authentication:
        type: plain
        jaasConfig:
          secretRef: credential
  tls:
    secretRef: tls-group1
  dataVolumeCapacity: 10G
---

Replace dependency in Kafka resource with KRaft controller

    kRaftController:
      controllerListener:
        tls:
          enabled: true
        authentication:
          type: ldap
          jaasConfig:
            secretRef: credential
      clusterRef:
        name: kraftcontroller
        namespace: confluent

What would be nice to know is, why is the authentication type "plain" in KRaft controller definition, but "ldap" in the dependency? Because with plain in both locations it did not work for us.

@pkleindl
Copy link

Correction: we seem to be missing the MDS configuration for KRaft, but trying anything from the documentation under https://docs.confluent.io/operator/current/co-rbac.html#enable-rbac-for-kraft-controller leads to crash loops of the operator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants