gitea roles: add read:user scope for API login validation #105

Merged
benvin merged 1 commits from benvin/teabot-read-user into master 2026-07-28 18:07:29 +10:00
Owner

End-to-end verification of the freshly-applied gitea engine (mint → API call → revoke) surfaced that tokens without read:user get 403 from GET /api/v1/user — the endpoint tea and most Gitea API clients use to validate a login. teabot's personalities would fail their auth check with the current scope sets, while in-scope calls (repo/issue) already work and lease revocation correctly kills tokens (verified 401 after revoke).

  • add read:user to the teabot-implementer role scopes
  • add read:user to the teabot-reviewer role scopes
End-to-end verification of the freshly-applied gitea engine (mint → API call → revoke) surfaced that tokens without read:user get 403 from GET /api/v1/user — the endpoint tea and most Gitea API clients use to validate a login. teabot's personalities would fail their auth check with the current scope sets, while in-scope calls (repo/issue) already work and lease revocation correctly kills tokens (verified 401 after revoke). - add read:user to the teabot-implementer role scopes - add read:user to the teabot-reviewer role scopes
unkinben added 1 commit 2026-07-28 17:42:15 +10:00
gitea roles: add read:user scope for API login validation
ci/woodpecker/pr/plan Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
1cf91c7e37
Claude-Session: https://claude.ai/code/session_015ur3i7D2azsMAWTSVABApv
unkinben force-pushed benvin/teabot-read-user from 0af44d9e5c to 1cf91c7e37 2026-07-28 17:42:15 +10:00 Compare
benvin merged commit 31f32aba0f into master 2026-07-28 18:07:29 +10:00
benvin deleted branch benvin/teabot-read-user 2026-07-28 18:07:29 +10:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-vault#105