[nomad-step-2] S2-fix-G — strip trailing /* from all vault policy paths (systemic 403) #951
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#951
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?
Step 3 verification: woodpecker-server template gets
Missing: vault.read(kv/data/disinto/shared/woodpecker)even though the KV path exists and has data. Root cause: Vault policy uses trailing/*glob which doesn't match the exact path.Root cause
service-forgejo.hcl(works):service-woodpecker.hcl(broken):In Vault,
path "foo/*"matchesfoo/barbut NOTfooitself. Nomad template readskv/data/disinto/shared/woodpecker(exact path, no sub-key) → policy doesn't match → 403 → template blocks forever.Scope — affects ALL 17 policies except service-forgejo
Every
.hclinvault/policies/exceptservice-forgejo.hclhas trailing/*:Fix
Strip
/*from everypathdirective. One-liner:Then re-run
tools/vault-apply-policies.shto sync the updated policies to Vault.Verify:
vault policy read service-woodpecker | grep pathshows no trailing/*.Acceptance criteria
grep -r '/\*"' vault/policies/returns zero matches.disinto init --backend=nomad --import-env --with forgejo,woodpecker: WP server deploys healthy (template renders from Vault without 403).vault policy fmtclean on all policy files.Labels / meta
backlog+bug-report. One sed command + policy re-apply.