gpt-engineer-app[bot]
6da29e95a4
Add rate limiting to high-risk
Introduce centralized rate limiting by applying defined tiers (STRICT, STANDARD, LENIENT, MODERATE) to high-risk edge functions:
- export-user-data (STRICT, 5 req/min)
- send-contact-message (STANDARD, 20 req/min)
- validate-email-backend (LENIENT, 30 req/min)
- admin-delete-user, resend-deletion-code (MODERATE)
- additional standard targets identified (request-account-deletion, cancel-account-deletion) as per guidance
Implements:
- Wrapped handlers with withRateLimit using centralized rateLimiters
- Imported from shared rate limiter module
- Annotated with comments explaining tier rationale
- Updated three initial functions and extended coverage to admin/account management functions
- Added documentation guide for rate limiting usage
This aligns with the Rate Limiting Guide and centralizes rate limit configuration for consistency.
2025-11-10 21:39:37 +00:00
..
2025-11-10 21:33:08 +00:00
2025-11-10 21:39:37 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:39:37 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:33:08 +00:00
2025-11-10 21:33:08 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:39:37 +00:00
2025-11-10 21:39:37 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:39:37 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 18:09:15 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:28:46 +00:00
2025-11-10 21:39:37 +00:00
2025-10-12 15:43:19 +00:00
2025-10-12 15:41:36 +00:00
2025-10-07 15:25:37 +00:00