Onboard keycloak + paledocs secrets to Salt pillar pipeline #44
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
forgejo_admin/pal-e-platform#44
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?
Lineage
plan-pal-e-platform→ secrets hardening (ad-hoc)Repo
forgejo_admin/pal-e-platformUser Story
As a platform operator
I want all Terraform secrets flowing through the Salt pillar pipeline
So that
make tofu-plan/make tofu-applyworks without manual-varflagsContext
Two secrets were added to Terraform variables but never onboarded to the Salt pillar → GPG → Makefile → tfvars pipeline:
keycloak_admin_password— added in PR #34 (Keycloak deploy, 2026-03-14)paledocs_db_password— added in PR #23 (pal-e-docs DB secret, gap since 2026-03-08)Currently both require manual
-varflags on everytofu plan/apply. This breaks themake tofu-plan/make tofu-applytargets.File Targets
Files to modify:
salt/pillar/secrets/platform.sls— add GPG-encrypted values for both secretsMakefile— add both toTF_SECRET_VARSlistsalt/pillar/secrets_registry.sls— add metadata entriesREADME.md— add## Secrets Architecturesection documenting the pipelineAcceptance Criteria
platform.slsTF_SECRET_VARSin Makefilesecrets_registry.slsmake tofu-secretsrenders both intosecrets.auto.tfvarsmake tofu-planworks without manual-varflagsTest Expectations
make tofu-secretscompletes without error and outputs correct var countgrep keycloak_admin_password terraform/secrets.auto.tfvarsreturns a linegrep paledocs_db_password terraform/secrets.auto.tfvarsreturns a linemake tofu-plansucceeds without any-varflagsmake tofu-secrets && grep -c '=' terraform/secrets.auto.tfvars(should be 12, up from 10)Constraints
81A03D1CF874DC90(Salt Master key, persecrets_registry.sls)sop-secrets-management"Adding a new platform secret" procedure exactly~/secrets/pal-e-services/secrets.env(keycloak) and must be sourced for paledocs from the existing k8s secret or Salt stateplatform.slsChecklist
Closes #Nmake tofu-secretstestedRelated
sop-secrets-management— the public SOP (procedures)