zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.37k stars 980 forks source link

Sealed-secret / existing secret support #2756

Open DreamingRaven opened 2 months ago

DreamingRaven commented 2 months ago

For my clusters, I use gitops and sealed secrets to consistently represent the secrets in my cluster without exposing them or randomly generating them.

I am running v1.13.0 of the operator and a v16 postgresql db, on kubernetes 1.31.0. Notably I also have the configKubernetes.enable_owner_references=true option enabled for ArgoCD to be able to see the resources which contributes in part but wholly necessary.

My problem summary is that I cannot find a clean way to use an existing secret with a user definition for a given postgresql database:

Are there any current ways to reference an existing secret for a database user's password in particular? I do not mind the lack of secret rotation.