Automation · Webhooks
Authentication
Cheat sheet · https://pcornel.dk/topic.php?topic=5324
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
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Source / delivery | Event, subscription, delivery ID and attempt metadata are attributable | Missing source event, stale subscription, wrong callback or delivery history gap |
| Trust / acknowledgement | Auth/signature and schema checks occur before safe acknowledgement | Unverified payload, slow handler, 2xx before durable receipt or replay weakness |
| Processing / proof | Durable dedupe/worker evidence matches downstream target state | Duplicate side effect, worker failure hidden by 2xx or no target reconciliation |
| Troubleshooting | First failed boundary is preserved, changed minimally and retested | Blind 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