Let the agents AppRole mint unkin-agent Gitea tokens #114

Merged
benvin merged 1 commits from benvin/agents-gitea-creds into master 2026-08-08 23:41:54 +10:00

1 Commits

Author SHA1 Message Date
unkinben 9cabc178f3 Let the agents AppRole mint unkin-agent Gitea tokens
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Why: AI coding agents authenticate to Gitea as Ben using Ben's token. With
the unkin-agent identity now in place, the agents AppRole should issue that
account's tokens directly so agent commits and PRs are attributable and
carry only least-privilege scopes.

How:
- add a gitea secrets-engine role that mints ephemeral tokens for unkin-agent
  scoped to write:repository, write:issue, read:user -- push branches and open
  PRs, never merge or administer
- add a policy granting read on gitea/creds/unkin-agent and bind it to the
  agents AppRole, mirroring the agent-* Kubernetes creds bindings
2026-08-08 22:49:30 +10:00