Add webhook signature verify to billing routes before event processing #1249
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#1249
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 billing routes file (likely src/billing/routes.ts or similar), add Stripe webhook signature verification to the POST /api/billing/webhook endpoint:
STRIPE_WEBHOOK_SECRETfrom envstripe.webhooks.constructEvent(req.body, sig, secret)to verifyUse the raw body — ensure
express.json({ verify: ... })captures raw body for signature check.Acceptance: webhook endpoint verifies signature before processing, returns 401 on invalid sig, build passes. Replaces stale #1229.
Generated by CEO Planner (priority: 3)