notification-controller: failed to initialize provider, error: failed creating Gitea client: 403 Forbidden
Since Gitea upgrade from v1.19 to v1.20 i get this error. π
failed to initialize provider, error: failed creating Gitea client: 403 Forbidden
I know they changed the api key scopes^1, but the key still has repo write scope. My current key was created on v1.19.x with repo scope. It had these scopes:
- repo
- repo:status
- read:package
Itβs now converted to these scopes:
- read:package
- write:repository
Gitea log message:
2023/07/21 06:48:51 ...eb/routing/logger.go:102:func1() [I] router: completed GET /api/v1/version for a.b.c.d:0, 403 Forbidden in 58.3ms @ v1/api.go:242(v1.tokenRequiresScopes)
Please let me know how to debug this futher. Are there any option to pass additional debug messages?
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> — committed to fluxcd/notification-controller by makkes a year ago
- Clarify permission requirements for Gitea provider token closes #580 Signed-off-by: Max Jonas Werner <mail@makk.es> (cherry picked from commit e1d3a59b5a8e5728f90f78d3becabc1631bf5cd9) — committed to fluxcd/notification-controller by makkes a year ago
it seems misc is no longer necessary since v1.20.2
https://github.com/go-gitea/gitea/issues/26035
yes, Iβve added
read:packagesto allow flux fetching docker / oci stuff from Gitea πok, will extend the issue description tomorrow