Restore Git webhooks end to end (issue a secret, route deliveries) #305

Open
opened 2026-09-21 16:04:55 +00:00 by sharang · 0 comments
Owner

Webhooks are switched off by #260:

  • New targets get no webhook secret, and the receivers reject any target without one (#302).
  • The broken dashboard proxy is removed (#260 part 2).

To bring them back:

  • Issue a secret: generate one per target, stored sealed, and show it exactly once when issued. Jev picked "shown once" over a rotate endpoint, 0.70 vs 0.29. Also offer a rotate action that re-issues it.
  • Route deliveries: /webhook/{tenant_id}/{platform}/{repo_id} goes to the agent's webhook listener (WEBHOOK_PORT), either through an ingress route or a dashboard proxy with a configurable internal URL. The old proxy dropped the tenant id and pointed at the API port.
  • Target page: show the webhook URL and a "generate secret" action.
  • Docs: rewrite docs/guide/webhooks.md (currently marked "not available yet").

Acceptance: a signed push from GitHub, GitLab and Gitea reaches a staging target and triggers a scan; an unsigned or wrongly signed one gets 401.

Webhooks are switched off by #260: - New targets get no webhook secret, and the receivers reject any target without one (#302). - The broken dashboard proxy is removed (#260 part 2). **To bring them back:** - **Issue a secret:** generate one per target, stored sealed, and show it exactly once when issued. Jev picked "shown once" over a rotate endpoint, 0.70 vs 0.29. Also offer a rotate action that re-issues it. - **Route deliveries:** `/webhook/{tenant_id}/{platform}/{repo_id}` goes to the agent's webhook listener (`WEBHOOK_PORT`), either through an ingress route or a dashboard proxy with a configurable internal URL. The old proxy dropped the tenant id and pointed at the API port. - **Target page:** show the webhook URL and a "generate secret" action. - **Docs:** rewrite `docs/guide/webhooks.md` (currently marked "not available yet"). **Acceptance:** a signed push from GitHub, GitLab and Gitea reaches a staging target and triggers a scan; an unsigned or wrongly signed one gets 401.
sharang added this to the R1 · Dynamic & OT depth milestone 2026-09-21 16:04:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#305