Paste an incoming signature header to run constant-time verification.
Replay-Window & Clock-Skew Gate
15s age vs 60s max
PASS: WITHIN REPLAY WINDOW
Event age 15s is within <=60s tolerance window (45s remaining). Pair with Idempotency/Delivery ID cache. (121 UTF-8 bytes · Linear signs raw body bytes with hex HMAC-SHA256 and includes `webhookTimestamp` (ms) for 60s replay protection.)
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].
Verify `Linear-Signature` against raw request bytes with constant-time hex comparison first.
Parse JSON ONLY after signature validation succeeds, then inspect `payload.webhookTimestamp` (milliseconds).
Reject events older than 60,000 ms (or >30,000 ms in the future) to close replay windows.
Store `Linear-Delivery` UUIDs so repeated issue-update webhooks stay idempotent.
Linear encodes `webhookTimestamp` in **milliseconds** (`13` digits) rather than seconds (`10` digits) — failing to divide by `1000` causes every event to look centuries in the future!
Cluster 14's Replay-Window Verifier automatically detects 13-digit millisecond timestamps and normalizes them to seconds cleanly.
Never parse untrusted JSON before validating the HMAC signature, protecting against oversized JSON DoS payloads.
Common Production Pitfalls
Comparing `Date.now() / 1000` (seconds) directly against `payload.webhookTimestamp` (milliseconds).
Parsing JSON before authenticating `Linear-Signature`.
Forgetting `Linear-Delivery` deduplication on bi-directional Jira/GitHub sync workers.
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.