resend_forgejo_webhooks doesn't repair the hooks: Forgejo's edit-hook ignores the secret #33
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thierryade/backend#33
Loading…
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?
Follow-up of #31 (#32). After deploying and running
resend_forgejo_webhooks, a Forgejo test delivery to Filao/backend is still refused (invalid signature).Forgejo's edit-hook API (
routers/api/v1/utils/hook.go,editHook) only appliesurlandcontent_typefromconfig: it never readsconfig["secret"](onlyaddHookdoes). So the PATCH changed nothing.Fix: the command recreates each hook instead (create with a fresh secret inside
config, update the row, then delete the old hook).