Add rate limiting to Stripe webhook endpoint #760

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

Add rate limiting middleware to POST /api/billing/webhook to prevent replay and abuse attacks. Use express-rate-limit (or existing rate limiter) set to 100 requests per minute per IP. Apply the rate limiter BEFORE Stripe signature verification so abusive requests are rejected early. Add a test confirming 429 is returned after exceeding the limit.


Generated by CEO Planner (priority: 3)

Add rate limiting middleware to POST /api/billing/webhook to prevent replay and abuse attacks. Use express-rate-limit (or existing rate limiter) set to 100 requests per minute per IP. Apply the rate limiter BEFORE Stripe signature verification so abusive requests are rejected early. Add a test confirming 429 is returned after exceeding the limit. --- *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#760
No description provided.