Files
ServerKit/backend/tests
Juan Denis 7c6800a946 Verify webhook signatures before deduplicating
event_id is unique and the duplicate check ran before the signature
check, so an unsigned request claiming the next event's id was stored
under it and the real delivery was then dropped as a duplicate. Rejected
requests are now logged under a fresh id.

The id header was also never read over HTTP: Werkzeug presents it as
X-Webhook-Event-Id, which neither exact spelling matched, so every
request got a random id and deduplication never happened.
2026-10-10 09:25:22 -04:00
..