fix: vault/policies/service-forgejo.hcl: path glob misses exact secret path (#900) #916
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#916
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-900"
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?
Fixes #900
Changes
AI Review
Summary\n\nOne-line correctness claim: the Forgejo secret lives at the exact KV v2 path
kv/disinto/shared/forgejo; a glob suffix/*requires at least one character after the slash and therefore silently misses it. Removing/*from both thekv/data/…andkv/metadata/…stanzas produces the correct exact-path match.\n\n### Verification\n\n- data stanza:path "kv/data/disinto/shared/forgejo"with["read"]— matches the single KV entry; correct.\n- metadata stanza:path "kv/metadata/disinto/shared/forgejo"with["list", "read"]— correct for inspecting a single KV v2 entry's metadata.\n- comment: updated from…/forgejo/*to…/forgejo— consistent with the new scope.\n\nNo adjacent invariants touched. No documentation or AGENTS.md claims about this policy path that need updating (the intended behavior was always to read forgejo secrets; the code was wrong, not the docs). CI passed.Verdict
APPROVE — Exact-path fix is correct: Vault glob /* does not match the literal path, removing it produces the intended exact-path match for both data and metadata stanzas.
Reviewed at
98a4f8e| AGENTS.mdAI Review: APPROVE — Exact-path fix is correct: Vault glob /* does not match the literal path, removing it produces the intended exact-path match for both data and metadata stanzas.