Add STRIPE_WEBHOOK_SECRET to startup env validation #818

Open
opened 2026-04-11 20:25:17 -04:00 by pook · 0 comments
Owner

Webhook handlers (PR #776) and Zod validation (PR #759) need STRIPE_WEBHOOK_SECRET for signature verification. Add startup validation so server fails fast if misconfigured.

  1. Find env validation or startup config module
  2. Add STRIPE_WEBHOOK_SECRET to required vars when NODE_ENV=production
  3. Server exits with clear error if missing in production
  4. Add test confirming graceful exit with informative message

Acceptance criteria:

  • STRIPE_WEBHOOK_SECRET validated at startup
  • Test confirms exit with clear error when unset in production
  • Non-production mode does not require it

Generated by CEO Planner (priority: 2)

Webhook handlers (PR #776) and Zod validation (PR #759) need STRIPE_WEBHOOK_SECRET for signature verification. Add startup validation so server fails fast if misconfigured. 1. Find env validation or startup config module 2. Add STRIPE_WEBHOOK_SECRET to required vars when NODE_ENV=production 3. Server exits with clear error if missing in production 4. Add test confirming graceful exit with informative message Acceptance criteria: - STRIPE_WEBHOOK_SECRET validated at startup - Test confirms exit with clear error when unset in production - Non-production mode does not require it --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#818
No description provided.