Skip to content

Reject blank webhook secrets 🪿✨ - #2885

Merged
zacchua-stripe merged 5 commits into
masterfrom
zacchua/stripe-node-webhooks-blank
Oct 19, 2026
Merged

zacchua-stripe merged 5 commits into
masterfrom
zacchua/stripe-node-webhooks-blank

Conversation

@zacchua-stripe

Copy link
Copy Markdown
Contributor

Why?

Reject webhook secrets made entirely of ASCII whitespace so invalid configuration fails with the existing missing-secret errors instead of reaching HMAC verification.

What?

  • Webhook signature verification and StripeEventNotificationHandler now treat space, tab, CR, LF, form feed, and vertical tab-only values as blank while preserving nonblank secrets.

See Also

http://go/j/RUN_DEVSDK-3378

Configuration

  • skip-changefile: This PR is not a user-facing change, so there's no changefile.

Committed-By-Agent: goose
Orbit-Session-Id: f03ac338-1738-453e-b3e0-2f4caa11df0d
@zacchua-stripe
zacchua-stripe requested a review from a team as a code owner October 2, 2026 23:28
@zacchua-stripe
zacchua-stripe requested review from kidus-stripe and removed request for a team October 2, 2026 23:28
@zacchua-stripe
zacchua-stripe marked this pull request as draft October 2, 2026 23:29
Committed-By-Agent: codex
Co-authored-by: codex <noreply@openai.com>
@zacchua-stripe
zacchua-stripe marked this pull request as ready for review October 6, 2026 22:12
Comment thread src/StripeEventNotificationHandler.ts Outdated
zacchua-stripe and others added 2 commits October 19, 2026 12:22
@zacchua-stripe
zacchua-stripe enabled auto-merge (squash) October 19, 2026 19:37
@zacchua-stripe
zacchua-stripe merged commit 308c948 into master Oct 19, 2026
14 checks passed
@zacchua-stripe
zacchua-stripe deleted the zacchua/stripe-node-webhooks-blank branch October 19, 2026 19:38
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.

2 participants