Skip to content
This repository was archived by the owner on Nov 1, 2026. It is now read-only.

fix(webhook): gate leave endpoints on a valid API key, not cronjobs.execute - #809

Merged
tieubao merged 1 commit into
mainfrom
fix/leave-auth-any-key
Jul 22, 2026
Merged

tieubao merged 1 commit into
mainfrom
fix/leave-auth-any-key

Conversation

@tieubao

@tieubao tieubao commented Jul 22, 2026

Copy link
Copy Markdown
Member

The self-service key is a valid fortress API key without cronjobs.execute, so the leave endpoints 401'd. Real authz is the AM/DL check in the handler; the key just proves a fortress-integrated caller. Gate on conditionalAuthMW alone (like /assets/upload). Follows #808.

…xecute

The self-service key the Neko Bot gateway holds is a valid fortress API key
but does not carry cronjobs.execute, so the leave endpoints 401'd. The real
authorization is the AM/DL check inside the handler; the key only proves a
fortress-integrated caller. Gate on conditionalAuthMW alone (same pattern as
/assets/upload).
@tieubao
tieubao merged commit 181a825 into main Jul 22, 2026
@tieubao
tieubao deleted the fix/leave-auth-any-key branch July 22, 2026 05:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant