-
Notifications
You must be signed in to change notification settings - Fork 83
Description
What’s missing?
We have recurring problems with some event payloads where the code returns a "signature does not match" error, mostly reported by Probot users who are probably the biggest share of users of @octokit/webhooks.
I think we should stop making assumptions about how a JSON payload is stringified by GitHub and only accept the raw request string, as all other webhooks SDKs do that I know of, e.g. stripe
I'd consider passing the raw request body string as a best practice today, and we enforce best practices in the @octokit modules.
The challenge that this will bring is that the raw request body is not always easily accessible by server frameworks or serverless environments, so we should document how to do it with e.g. express, AWS Lambda, Vercel, Begin, Azure Functions, Google Cloud Functions, Cloudflare Workers, and invite users to add examples for other platforms.
Alternatives you tried
n/a
Metadata
Metadata
Assignees
Labels
Type
Projects
Status