fix: harden IP and bound in-memory rate limiters (#1435)#1685
fix: harden IP and bound in-memory rate limiters (#1435)#1685ionfwsrijan wants to merge 13 commits into
Conversation
|
@ionfwsrijan is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
This PR has merge conflicts with |
081eaa2 to
1a14c66
Compare
02bb058 to
a9d8707
Compare
|
@Priyanshu-byte-coder You may review and merge |
|
This PR has developed merge conflicts after recent merges to |
|
@Priyanshu-byte-coder You may review and merge this now |
Summary
Hardens IP-based rate limiting to prevent unbounded memory growth by adding TTL eviction and bounding in-memory limiter storage.
Closes #1435
Type of Change
Changes Made
src/lib/rate-limit.test.ts).How to Test
.\node_modules\.bin\vitest.cmd runScreenshots (if UI change)
N/A
Checklist
npm run lintpasses locallynpm run type-check)Accessibility Checklist
Additional Notes
No UI changes; focused on server-side rate limiter correctness and safety.