🔌Webhook Signature
Also known as Webhook Verification, HMAC Signature, Signed Webhook, X-Hub-Signature-256
A code sent with a webhook that proves who sent it and that nothing changed.
Think of it like
Think of it like a wax seal on a letter. If the seal matches, you know who sent it and nobody opened it.
Example
GitHub puts its signature in a header called X-Hub-Signature-256. It starts with sha256=. Lucy's server checks it before it trusts the event.
Why it matters
Definition
Common mistake
Key takeaways
- 1Shared secret. Only you and the sender know it.
- 2Make your own. Compute it and compare.
- 3Drop bad ones. No match means not trusted.