Skip to content

webhooks: update existing hooks to sync secret on reload#558

Draft
Mic92 wants to merge 1 commit intomainfrom
webhook-reload
Draft

webhooks: update existing hooks to sync secret on reload#558
Mic92 wants to merge 1 commit intomainfrom
webhook-reload

Conversation

@Mic92
Copy link
Member

@Mic92 Mic92 commented Jan 20, 2026

GitHub and Gitea do not expose webhook secrets via their APIs, making it impossible to detect when the local webhookSecretFile has been rotated. Previously, buildbot-nix would skip hook creation if a hook with matching URL already existed, leaving stale secrets in place and causing webhook signature verification failures.

Use PATCH to update existing hooks instead of returning early. This ensures the webhook configuration (including the secret) stays in sync whenever the reload builder runs.

GitHub and Gitea do not expose webhook secrets via their APIs, making
it impossible to detect when the local webhookSecretFile has been
rotated. Previously, buildbot-nix would skip hook creation if a hook
with matching URL already existed, leaving stale secrets in place and
causing webhook signature verification failures.

Use PATCH to update existing hooks instead of returning early. This
ensures the webhook configuration (including the secret) stays in sync
whenever the reload builder runs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant