You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Allow overriding the client certificate Secret name in the clientCertificate stanza on DatabaseRole #11313
Is there an existing issue already for this feature request/idea?
I have searched for an existing issue, and could not find anything. I believe this is a new feature request to be evaluated.
What problem is this feature going to solve? Why should it be added?
Since #10809, the Secret holding a DatabaseRole's operator-managed TLS client certificate is always named <databaserole-name>-client-cert (GetClientCertSecretName()). There is no way to point at a differently named Secret, whether that's an operator-issued one that needs to avoid a naming collision, or an existing, externally managed client certificate Secret to use when clientCertificate.enabled is false.
Describe the solution you'd like
Add an optional secret field to the clientCertificate stanza on DatabaseRole, typed as a LocalObjectReference (same convention as passwordSecret on RoleConfiguration):
clientCertificate:
enabled: truesecret:
name: my-role-client-cert # defaults to <databaserole-name>-client-cert when unset
enabled: true (default) with secret set: the operator issues/renews the certificate as today, but stores it under the given Secret name instead of the fixed default.
enabled: false with secret set: the operator does not manage certificate issuance at all and does not touch the referenced Secret's lifecycle (no ownership, no cleanup on role deletion); it's purely informational for the user's own bring-your-own-cert Secret. status.clientCertificate should reflect that the certificate is externally managed rather than being left empty.
enabled: false with secret unset: current behaviour, unchanged.
Describe alternatives you've considered
Leave the Secret name fixed: acceptable until the first naming collision or bring-your-own-cert requirement surfaces, hence the low priority rather than "won't do".
Activity
github-actions commentedon Nov 14, 2026
This issue is stale because it has been open for 60 days with no activity.