WebhookAdapter: HTTP server with per-route HMAC validation #808

Closed
opened 2026-10-27 13:37:50 +00:00 by sam · 0 comments
Owner

Implement WebhookAdapter as an HTTP server supporting per-route HMAC validation: GitHub X-Hub-Signature-256, GitLab X-Gitlab-Token, and a generic V2 timestamp-bound HMAC scheme.

Notes

Partially done: internal/channels/webhook/webhook.go:186-196 validateHMAC() implements GitHub-style HMAC-SHA256 (X-Hub-Signature-256/X-Signature-256, sha256= prefix). Missing: GitLab's X-Gitlab-Token (static token compare, not HMAC -- different validation path entirely) and the generic V2 timestamp-bound replay-protected scheme. Extend validateHMAC/handleWebhook to dispatch by scheme rather than assuming GitHub's format.

Close reason

Closed on GitHub; syncing bead state


Imported from beads archie-core-1786637497066-276-35fe7db3 · GitHub #297 · type task · priority P2 · created 2026-08-08 · closed 2026-09-26

Implement WebhookAdapter as an HTTP server supporting per-route HMAC validation: GitHub X-Hub-Signature-256, GitLab X-Gitlab-Token, and a generic V2 timestamp-bound HMAC scheme. ### Notes Partially done: internal/channels/webhook/webhook.go:186-196 validateHMAC() implements GitHub-style HMAC-SHA256 (X-Hub-Signature-256/X-Signature-256, sha256= prefix). Missing: GitLab's X-Gitlab-Token (static token compare, not HMAC -- different validation path entirely) and the generic V2 timestamp-bound replay-protected scheme. Extend validateHMAC/handleWebhook to dispatch by scheme rather than assuming GitHub's format. ### Close reason Closed on GitHub; syncing bead state --- _Imported from beads `archie-core-1786637497066-276-35fe7db3` · GitHub #297 · type task · priority P2 · created 2026-08-08 · closed 2026-09-26_
sam added the mediumtask labels 2026-10-27 13:37:50 +00:00
sam self-assigned this 2026-10-27 13:37:50 +00:00
sam closed this issue 2026-10-27 13:37:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#808