WebhookAdapter: HTTP server with per-route HMAC validation #808
Notifications
Due Date
No due date set.
Depends on
Reference: sam/archie#808
Reference in new issue
Block a user
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