Reference Spec · v2 (Backend & Fintech Infrastructure)2 REQ -> 2 TC · 0 Orphans
Idempotent Webhook Capture & HMAC Replay Debugger
Capture signed inbound webhooks, inspect headers/payloads, and deterministically replay events with idempotency keys and 10s timeout caps.
Actor: Backend EngineerActor: Webhook Senderv1 Non-Goals: Multi-region active-active queue fanout · Custom Lua payload transforms
Locked Scope Assumptions
ASM-001Verify HMAC-SHA256 timestamp tolerances within 300 seconds and cap ingest at 120 req/min.
ASM-002Abort stalled downstream replay targets at 10 seconds and log HTTP status.
US-001 · Slice #1FEAT-01
Ingest & Verify Signed Webhook Payload
As a Backend Engineer, I want inbound webhooks verified via HMAC-SHA256 and persisted raw so that I can inspect exact headers and signature validity.
Entry SurfacePOST /api/webhooks/ingest + Live Stream Table
Domain LogicHmacSignatureVerifier
Persistence / ExternalPostgreSQL webhook_events table
US-002 · Slice #2FEAT-01
Replay Captured Event with Idempotency Guard
As a Backend Engineer, I want to replay a captured webhook to staging or localhost with a 10s timeout so that I can reproduce handler bugs without duplicate side effects.
Entry SurfaceReplay Drawer & POST /api/webhooks/[id]/replay
Domain LogicIdempotentReplayDispatcher
Persistence / ExternalPostgreSQL replay_attempts table + Target HTTP Endpoint