fix: rotate woodpecker_api_token GPG block in Salt pillar #210
No reviewers
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!210
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-86-rotate-woodpecker-token"
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?
Summary
The Salt pillar
woodpecker_api_tokenGPG block decrypted to a stale JWT that returned 401 against the Woodpecker API. The correct token was already live in the k8s dora-exporter secret,~/.mcp.json, andk3s.tfvars-- but the canonical source (Salt pillar) was out of sync. This re-encrypts the working token with GPG key81A03D1CF874DC90.Changes
salt/pillar/secrets/platform.sls-- replacedwoodpecker_api_tokenPGP ciphertext block with newly encrypted value containing the correct working tokenTest Plan
gpg --decryptk3s.tfvars,~/.mcp.json, and dora-exporter k8s secret already contain this tokenmake tofu-secretsrenders the correct value intosecrets.auto.tfvarsManual updates (not in PR, per issue spec)
~/.mcp.json-- already has the correct tokendora-exporterk8s secret -- already patched, returning 200stf_var_woodpecker_api_token-- needs verificationReview Checklist
Related Notes
plan-pal-e-platform-- Phase 17a-6 (token rotation)pal-e-platform-- the project this work belongs toQA Review -- PR #210
Scope
Single file change:
salt/pillar/secrets/platform.sls. Replaces the GPG-encrypted ciphertext block forwoodpecker_api_token(16 lines removed, 16 lines added).Findings
Security
81A03D1CF874DC90matches the constraint in issue #86.-----BEGIN PGP MESSAGE-----/-----END PGP MESSAGE-----envelope is intact.Structure
keycloak_admin_passwordabove,woodpecker_db_passwordbelow) untouched. Correct.#!yaml|gpgrenderer directive at file top is preserved.Validation
~/.mcp.json, andk3s.tfvars.make tofu-secretsto re-rendersecrets.auto.tfvars.PR Body
Closes #86present for auto-close.Nits
None.
VERDICT: APPROVE