Grant the agents approle read+write on the woodpecker agent token
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful

This commit is contained in:
2026-09-12 13:18:00 +10:00
parent 94e8ac1b2a
commit afa42b960a
@@ -0,0 +1,21 @@
# Lets the agents AppRole read and maintain a dedicated Woodpecker API token.
# Agents query the Woodpecker API to inspect pipeline runs and failing steps when
# reviewing PRs; today that token is pasted into agent config by hand. Granting
# create/update as well as read lets automation seed and rotate it in place,
# mirroring the agents-approle grant on kv/kubernetes/*. delete is excluded, as
# it is there.
---
rules:
- path: "kv/data/service/woodpecker/tokens/agents"
capabilities:
- create
- read
- update
- path: "kv/metadata/service/woodpecker/tokens/agents"
capabilities:
- read
- list
auth:
approle:
- agents