{
  "id": 22785261,
  "title": "Is That Webhook Really From Your Review Tool? Signatures, Replays and Retries",
  "url": "https://urgent.news/2026/11/30/is-that-webhook-really-from-your-review-tool-signatures-replays-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-30T13:46:17.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/obligra/is-that-webhook-really-from-your-review-tool-signatures-replays-and-retries-2ma6"
  },
  "original_language": null,
  "account": "When a reviewer acts on a draft, the review tool sends a webhook to a public endpoint, which can be accessed by anyone. The delivery arrives more than once, as senders retry when they don't receive a quick 2xx response. The receiver must verify that the sender holds a shared secret, refuse old deliveries that have been recorded and replayed, and handle repeated deliveries harmlessly. To validate the webhook, the sender computes an HMAC-SHA256 of the payload with a shared secret and includes it in a header. The receiver should also compute the same value and compare it to the received signature, using a constant-time function instead of plain equality comparison. The webhook should only sign the message ID, timestamp, and body together, and the receiver should check the timestamp against a tolerance and use the message ID as an idempotency key. Several signatures can be included in the signature header for secret rotation without downtime. The receiver should accept the data, store it, and return a 2xx response, allowing a separate worker to apply the review decision later.",
  "summary": "Here's an illustrative setup. Your app drafts replies with a model, and a separate review tool lets a person approve, edit or reject each draft. When the reviewer acts, the tool sends a webhook to /hooks/review and your app updates the case. That endpoint is public. Anyone who finds the URL can post {\"action\": \"approved\"} to it. And even honest deliveries arrive more than once, because senders…",
  "summary_source": "publisher",
  "key_points": [
    "Webhook delivered by review tool to public endpoint",
    "Receiver verifies shared secret and prevents replay attacks",
    "HMAC-SHA256 signature validates webhook authenticity"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}