fix(ddb): add PostSync Job for database schema permissions

CNPG Database CR creates DBs but doesn't grant schema permissions properly.
Database owner is 'app' instead of specified role (authentik, temporal).

PostSync Job grants ALL on schema public to both app and named roles,
ensuring applications can create tables. Runs after Database CRs reconcile.

Fixes: authentik InsufficientPrivilege error on migration.
This commit is contained in:
Story Crater Bot
2026-07-23 08:02:44 -07:00
parent 48aac4998b
commit 9d485d1238
2 changed files with 100 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ namespace: ddb
# GitOps-managed database schemas (ArgoCD wave 6).
# These depend on ddb-cluster existing (bootstrap wave 0).
resources:
- db-permissions-job.yaml
- authentik-database.yaml
- temporal-database.yaml
- temporal-visibility-database.yaml