Paste an incoming signature header to run constant-time verification.
Replay-Window & Clock-Skew Gate
42s age vs 300s max
PASS: WITHIN REPLAY WINDOW
Event age 42s is within <=300s tolerance window (258s remaining). Pair with Idempotency/Delivery ID cache. (75 UTF-8 bytes · Use HTTPS + constant-time signature validation and cache `I-Twilio-Idempotency-Token` against replay.)
Run a live webhook endpoint & SLA audit on WebhookSLA Guard (webhook.runglab.dev), grab the turnkey $29 WebhookSLA Guard Kit (WebCrypto HMAC verifiers, replay-window store, RFC RateLimit-* middleware & DLQ runbooks) on Creem, or audit webhook OpenAPI specs on SpecDiff (spec.runglab.dev). Need a PayPal invoice? Email [email protected].
Run a live webhook endpoint & SLA audit on WebhookSLA Guard (webhook.runglab.dev), grab the turnkey $29 WebhookSLA Guard Kit (WebCrypto HMAC verifiers, replay-window store, RFC RateLimit-* middleware & DLQ runbooks) on Creem, or audit webhook OpenAPI specs on SpecDiff (spec.runglab.dev). Need a PayPal invoice? Email [email protected].
Run a live webhook endpoint & SLA audit on WebhookSLA Guard (webhook.runglab.dev), grab the turnkey $29 WebhookSLA Guard Kit (WebCrypto HMAC verifiers, replay-window store, RFC RateLimit-* middleware & DLQ runbooks) on Creem, or audit webhook OpenAPI specs on SpecDiff (spec.runglab.dev). Need a PayPal invoice? Email [email protected].
Configure a lightweight static/edge Fallback URL and shed overload traffic cleanly using `429` + `Retry-After`.
When running behind Cloudflare, Nginx, or AWS ALB, reconstructed request URLs often show `http://` instead of `https://` — causing `X-Twilio-Signature` checks to fail unless you reconstruct using the canonical external origin.
JSON-based Twilio webhooks append `?bodySHA256=<hex>` to the URL before computing the signature, making raw-body SHA-256 verification mandatory.
Separate synchronous TwiML/200 responses from slow database analytics writes using a worker queue + DLQ.
Common Production Pitfalls
Trusting `request.url` behind TLS-terminating proxies without enforcing `https://` canonical scheme.
Sending SMS/email alerts twice when Twilio retries a timed-out delivery receipt.
Returning `500` without `Retry-After` during database maintenance instead of controlled `503`/`429` backpressure.
Validate GitHub Apps & repository webhooks with `X-Hub-Signature-256`, deduplicate using `X-GitHub-Delivery`, and obey GitHub's 10-second response SLA and rate-limit headers.
Why does `X-Twilio-Signature` fail behind reverse proxies?
Classic Twilio signatures include the full request URL; if your app server sees `http://` behind a TLS proxy instead of `https://`, signature validation fails.
How do I validate JSON Twilio webhooks?
Verify the SHA-256 hex digest of the exact raw request body matches the `bodySHA256` query parameter, then validate the signature over the full URL.
Does WebhookSLA Guard test 429 Retry-After compliance?
Yes — visit https://webhook.runglab.dev to run live webhook ingestion, signature, and SLA header checks.