Add admin_app_db_password to Salt pillar (gates pal-e-platform#302 apply) #306
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform#306
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Chore
Lineage
Discovered scope from Track D (#302 admin_app k8s Job, PR #304 merged 2026-04-25) of westside-admin bootstrap. Operator step required before
make tofu-applysucceeds.Repo
forgejo_admin/pal-e-platform (pillar lives in this repo at
salt/pillar/secrets/platform.sls)User Story
story:admin-row-crud — As the operator running
make tofu-applyon pal-e-platform after PR #304 merged, I needadmin_app_db_passwordrendered intosecrets.auto.tfvarsso the newkubernetes_job_v1.admin_app_user_provisionandkubernetes_secret_v1.admin_app_db_urlresources can plan/apply, otherwise the apply fails on the missing variable.Architecture
arch:salt
Context
PR #304 added a new terraform variable
admin_app_db_password(declared interraform/variables.tfand consumed interraform/modules/database/variables.tf). The Makefile diff already adds it toTF_SECRET_VARSsomake tofu-validate-secretswill block apply until this lands. The operator workflow renderssecrets.auto.tfvarsfrom the Salt pillar viamake tofu-apply(existing convention).The actual sibling password to mirror is
paledocs_db_password(lines 281-298 ofsalt/pillar/secrets/platform.sls) — same#!yaml|gpgrenderer, samesecrets.platform.<key>: |schema, same multi-line PGP MESSAGE block. Single source:make tofu-secretscallssalt-call pillar.get secrets:platform, no environment overlays to coordinate.File Targets
~/pal-e-platform/salt/pillar/secrets/platform.sls— add GPG-encrypted entry foradmin_app_db_passwordmirroring thepaledocs_db_passwordblock at lines 281-298Acceptance Criteria
admin_app_db_passwordexists insalt/pillar/secrets/platform.sls, GPG-encrypted, with a strong generated value (openssl rand -base64 32or equivalent)make tofu-secrets(ormake tofu-validate-secrets) reports the variable presentmake tofu-apply(after PR #304 merged) runs without prompting for the variableTest Expectations
make tofu-applyend-to-end without manual intervention for this variablekubernetes_secret_v1.admin_app_db_urlcontains the same password as the Job uses to CREATE ROLEConstraints
paledocs_db_passwordpattern)make tofu-applyrunsChecklist
make tofu-applyruns cleanRelated
paledocs_db_passwordatsalt/pillar/secrets/platform.sls:281-298feedback_discovered_scope_always_tracked