Pcornel
Automation · Webhooks

Authentication

Cheat sheet · https://pcornel.dk/topic.php?topic=5324

Back to the Topic

Answer

The webhook-level mechanism used by the consumer to establish that a delivery comes from an expected producer or credential context.

Remember

  • Webhook authentication success ≠ payload integrity unless the mechanism cryptographically covers the payload.
  • Shared secret present ≠ secret current; rotation overlap and producer configuration can differ.
  • Source IP allowed ≠ producer authenticated; addresses can change and network origin alone may be insufficient.
  • TLS server validation ≠ client/source authentication; ordinary HTTPS mainly authenticates the receiver to the producer.

First checks

  • Shared secret/HMAC or mTLS — auth method
  • IP allowlist (supplementary) — defence in depth
  • Token in header vs URL — no secrets in URLs

Verify in this order

request → auth check → accept/reject

Where it usually breaks

Authentication evidence proves the configured producer credential context was accepted; payload integrity and authorization can require additional checks.

Authentication webhook boundary map

BoundaryHealthy evidenceSuspicious evidence
Source / deliveryEvent, subscription, delivery ID and attempt metadata are attributableMissing source event, stale subscription, wrong callback or delivery history gap
Trust / acknowledgementAuth/signature and schema checks occur before safe acknowledgementUnverified payload, slow handler, 2xx before durable receipt or replay weakness
Processing / proofDurable dedupe/worker evidence matches downstream target stateDuplicate side effect, worker failure hidden by 2xx or no target reconciliation
TroubleshootingFirst failed boundary is preserved, changed minimally and retestedBlind retries, credential rotation, replay or payload edits before evidence is captured

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5324

Confirmation

Confirm action

Continue?