refactor(cnpg): unify all apps on 'app' database user/credentials pattern

This commit is contained in:
Story Crater Bot
2026-08-18 15:08:03 -07:00
parent 562ffcfc10
commit 766555453e
8 changed files with 51 additions and 147 deletions
+4 -16
View File
@@ -27,22 +27,10 @@ spec:
- CREATE EXTENSION IF NOT EXISTS pgcrypto;
- CREATE EXTENSION IF NOT EXISTS pg_trgm;
# Per-app login roles, passwords sourced from secrets (CNPG reconciles the
# role password to match the secret). Their databases are separate Database
# CRs (see authentik-database.yaml / temporal-database.yaml) owned by these
# roles. Replaces the old helmfile post-sync user-creation hook.
managed:
roles:
- name: authentik
ensure: present
login: true
passwordSecret:
name: authentik-db-role
- name: temporal
ensure: present
login: true
passwordSecret:
name: temporal-db-role
# Simple ownership model: all apps use 'app' bootstrap user.
# Isolation via separate database names, not separate roles.
# Aligns with CNPG design (single cluster, multiple databases).
# managed.roles removed - no per-app roles needed.
# Disable superuser (security)
enableSuperuserAccess: false