Add STRIPE_WEBHOOK_SECRET env var validation at server startup #597
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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)