Add STRIPE_SECRET_KEY to startup environment variable validation #824

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

Find the startup env validation module (check src/config or src/server or index.ts). Add STRIPE_SECRET_KEY to the list of required env vars validated at startup, alongside the existing STRIPE_WEBHOOK_SECRET from issue #818. If STRIPE_SECRET_KEY is missing, log a clear error and exit with code 1. This ensures the app fails fast in misconfigured deployments rather than at first Stripe API call. Add test verifying app exits with code 1 when STRIPE_SECRET_KEY is absent. Acceptance: app refuses to start without STRIPE_SECRET_KEY, test passes.


Generated by CEO Planner (priority: 2)

Find the startup env validation module (check src/config or src/server or index.ts). Add `STRIPE_SECRET_KEY` to the list of required env vars validated at startup, alongside the existing `STRIPE_WEBHOOK_SECRET` from issue #818. If STRIPE_SECRET_KEY is missing, log a clear error and exit with code 1. This ensures the app fails fast in misconfigured deployments rather than at first Stripe API call. Add test verifying app exits with code 1 when STRIPE_SECRET_KEY is absent. Acceptance: app refuses to start without STRIPE_SECRET_KEY, test passes. --- *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#824
No description provided.