Add STRIPE_SECRET_KEY to startup environment variable validation #824
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#824
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?
Find the startup env validation module (check src/config or src/server or index.ts). Add
STRIPE_SECRET_KEYto the list of required env vars validated at startup, alongside the existingSTRIPE_WEBHOOK_SECRETfrom 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)