homepage: ntfy widget 401/403 -- token is not the one ntfy knows #56
Labels
No labels
Monitoring
automation
bug
duplicate
feature
forgejo
help wanted
homepage
invalid
k3s
keycloak
ldap
paperclip
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/homelab#56
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The ntfy widget has never worked. Homepage logs 401/403 on every long-poll.
Root cause
It is not just "use a read token" -- two separate things are wrong.
ntfyruns withauth-default-access: deny-allandrequire-login: true.Probing from inside the pod with the current token:
Authorization: Bearer <token>401 unauthorizedAuthorization: token <token>403 forbidden403 forbiddenThe token in
homepage-secrets(HOMEPAGE_VAR_NTFY_TOKEN) is a useraccess token created in the ntfy web UI. It is a different value from the
static token ntfy actually has configured -- the
ntfy-authsecret definesa static token named
lab, and the two do not match.Because
auth-default-access: deny-all, a user access token grants nothingon its own. The user behind it needs read access to the
homelab-deploystopic. Until that grant exists every read 403s,regardless of the token's own permission scope.
Steps
Pick an owner for the topic:
homelab-deploys, then issue anaccess token for it, or
labtoken's topic grant to coverhomelab-deploysand use that value.
Patch the live secret -- never
secret.yaml, it holds placeholders only:Verify history renders. The deploy workflow publishes to
homelab-deploys, so a working token shows messages immediately.