TODO: Add paledocs_db_password to Salt pillar and Makefile
TODO: Add paledocs_db_password to Salt pillar and Makefile
Problem
paledocs_db_password is a required Terraform variable (added in PR #23, Phase 3) but was never added to the Salt pillar or the Makefile's TF_SECRET_VARS list. This means make tofu-plan and make tofu-apply always fail — every tofu operation requires a manual -var="paledocs_db_password=..." flag.The password currently lives only in
~/secrets/pal-e-docs/database.env as plaintext. It should be GPG-encrypted in the Salt pillar like every other platform secret.Work Required
- Encrypt the password into Salt pillar — Add
paledocs_db_passwordtosalt/pillar/secrets/platform.slsusing the same GPG encryption pattern as the other secrets. - Add to Makefile
TF_SECRET_VARS— Appendpaledocs_db_passwordto the variable list in the Makefile (line ~46-50) somake tofu-secretsrenders it intosecrets.auto.tfvars. - Verify —
make tofu-planshould succeed without any manual-varflags.
Context
Discovered during Phase 3 (2026-03-02). Confirmed still broken 2026-03-13 when running
tofu plan for PR #31 (Litestream removal). Every TF operation since Phase 3 has required the manual workaround.GPG Encryption Command
Paste the output block into
salt/pillar/secrets/platform.sls under secrets.platform.paledocs_db_password.Related
sop-secrets-management— secrets strategy for platform credentialsphase-postgres-3-migrate-pal-e-docs— the phase that introduced this variableplan-2026-02-26-tf-modularize-postgres— parent plan