ACL secret gets deleted automatically when we deleted the ValkeySentinel object
search cancel

ACL secret gets deleted automatically when we deleted the ValkeySentinel object

book

Article ID: 437177

calendar_today

Updated On:

Products

VMware Tanzu Data Intelligence VMware Tanzu Gemfire VMware Tanzu Greenplum VMware Tanzu Data Suite VMware Tanzu Data VMware Tanzu RabbitMQ RabbitMQ VMware Tanzu for MySQL VMware Tanzu for Postgres VMware Tanzu for Valkey

Issue/Introduction

Users may observe that the ACL secret (e.g., <instance-name>-acl-secret) is automatically deleted when the ValkeySentinel resource is deleted, even if the secret was originally created manually.

Typical behavior observed:

  • User creates a custom ACL secret.
  • Deploys ValkeySentinel referencing that secret.
  • Operator attaches metadata (ownerReferences) to the secret.
  • Upon deletion of ValkeySentinel, the ACL secret is also deleted automatically.

Cause

This behavior is by design.

The Valkey Operator:

  • Attaches ownerReferences to the ACL secret.
  • Treats the secret as part of the Valkey resource lifecycle.

As a result:

  • Kubernetes garbage collection deletes the secret when the parent resource (ValkeySentinel) is removed.
  • Even user-created secrets become operator-owned once associated.

This design ensures:

  • No orphaned secrets remain after resource deletion.
  • Clear association between Valkey instances and their ACL configurations.

Resolution

R&D is considering improvements to address this limitation:

  • Ability to define ACL users directly in spec.acl.
  • Provide an option to not include the owner reference on the secret.

These enhancements have been made in v3.4.0.