Skip to content

[COMMEX-2359] Answer direct-call webhook failures with the middleware's status and body in the README - #1545

Open
jolinger-godaddy wants to merge 2 commits into
godaddy:mainfrom
jolinger-godaddy:COMMEX-2359-readme-failure-helpers
Open

jolinger-godaddy wants to merge 2 commits into
godaddy:mainfrom
jolinger-godaddy:COMMEX-2359-readme-failure-helpers

Conversation

@jolinger-godaddy

Copy link
Copy Markdown

Jira

https://godaddy-corp.atlassian.net/browse/COMMEX-2359

Small README follow-up to #1544, stacked on it. Both branches live on a fork, so this PR targets main and also shows #1544's commit; the only new change is the last commit (ad67471). Merge it after #1544.

The direct-call webhook example returned the raw verification error, so a handler copied from it would send setup-failure detail (no raw body, no secret) to an unsigned caller. It now answers with webhookFailureStatus and webhookFailureBody, the same way the middleware and the Next.js example do, and keeps the detail in the app's own logs.

Docs only. No changeset, since it ships in the same app-connect release as #1544.

verifyWebhookSubscription now compares in constant time, signs the exact
body bytes, accepts a space-separated list of v1 signatures, and gains a
strictRawBody option and an optional toleranceSeconds (off by default).
The Express and TanStack webhook middleware turn strictRawBody on; Express
reads req.rawBody when kept. Setup problems (raw body lost, no secret) are
answered with 500 instead of 401.
…'s status and body in the README

The direct-call webhook example returned the raw verification error, so a handler copied from it would send setup-failure detail to an unsigned caller. It now answers with webhookFailureStatus and webhookFailureBody, as the middleware and the Next.js example do, and keeps the detail in the app's own logs.
@jolinger-godaddy
jolinger-godaddy requested a review from a team as a code owner November 23, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

⌂ Proxy