Skip to content

Preserve ownership during KafkaUser ACL and generated TLS cleanup #391

Open
4 of 4 issues completed
Open

Description

@amuraru

Two cleanup gaps remain:

  • KafkaUser ACLs. Remove the exact access rules Koperator applied. Use the actual Kafka principal and recorded bindings when available. Handle partial writes, edits to topicGrants, and users created before that data was recorded. Preserve unrelated grants. If the controller cannot establish ownership, report the gap instead of deleting broadly.
  • Generated TLS. Delete only Certificates and Secrets owned by the KafkaCluster or KafkaUser being finalized. Cover partial provisioning, clusters with the same name in different namespaces, and legacy or shared Secrets. Preserve external resources. If the optional Certificate API is absent, allow safe cleanup to continue without treating permission failures as absence.

Add focused regressions for both paths. Verify deletion and Kubernetes garbage collection in Kind where API-only tests cannot cover them. Run make check.

Kafka client migration and safe topic deletion are tracked separately in #409 and #410.

Sub-issues

Sub-issues

4 of 4 Issues completed
Loading 4 sub-issues

Activity

  1. added theissue type on Nov 16, 2026
  2. changed the title [-]Workstream: controller lifecycle and external-operation safety[/-] [+]Lifecycle safety: cleanup ownership, bounded deletion, and result persistence[/+] on Nov 17, 2026
  3. 4 remaining items

  4. changed the title [-]Lifecycle safety: cleanup ownership, bounded deletion, and result persistence[/-] [+]Preserve ownership during KafkaUser ACL and generated TLS cleanup[/+] on Nov 27, 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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions