Fix: Salt pillar fails to decrypt slack_webhook_url (empty string GPG block) #46
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#46
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 pipeline hotfixRepo
forgejo_admin/pal-e-platformUser Story
As a platform operator
I want
make tofu-secretsto render all 15 secretsSo that
tofu plan/applyworks without errorsContext
PR #45 encrypted an empty string for
slack_webhook_url(dormant — Slack not in use). Salt GPG renderer treatsPLAINTEXT_LENGTH 0as a decryption failure, causing the entiresecrets:platformpillar to return empty. This breaksmake tofu-secrets(returns 0 vars instead of 15).File Targets
salt/pillar/secrets/platform.sls— replace empty-string GPG block with'unused'placeholderAcceptance Criteria
sudo salt-call pillar.get secrets:platform --out=jsonreturns 16 secretsmake tofu-secretsrenders 15 TF varsTest Expectations
sudo salt-call pillar.get secrets:platform --out=json | python3 -c "import sys,json; d=json.load(sys.stdin)['local']; print(len(d))"Constraints
'unused'81A03D1CF874DC90Checklist
Closes #NRelated
sop-secrets-management— needs update: document empty-string gotcha