All Questions
Managing Long Running Tasks medium

When your server receives a Webhook POST from Stripe/GitHub, how do you verify it's actually from them and not a hacker spoofing the request?

  1. A Check the IP address.
  2. B Trust the User-Agent.
  3. C Verify the HMAC Signature in the header (computed using a shared secret).
  4. D Send an email.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions