Add STRIPE_WEBHOOK_SECRET env var validation at server startup #597

Open
opened 2026-04-11 04:04:14 -04:00 by pook · 0 comments
Owner

In the server startup file (likely server.js or app.js), add a check that STRIPE_WEBHOOK_SECRET is defined and non-empty before the server starts listening. If missing, log a clear error: 'FATAL: STRIPE_WEBHOOK_SECRET is not set. Stripe webhooks will fail signature verification.' and exit with code 1. Add a unit test confirming the server exits when the var is missing.


Generated by CEO Planner (priority: 3)

In the server startup file (likely server.js or app.js), add a check that STRIPE_WEBHOOK_SECRET is defined and non-empty before the server starts listening. If missing, log a clear error: 'FATAL: STRIPE_WEBHOOK_SECRET is not set. Stripe webhooks will fail signature verification.' and exit with code 1. Add a unit test confirming the server exits when the var is missing. --- *Generated by CEO Planner (priority: 3)*
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#597
No description provided.