Labels: backend, enhancement, auth, security
Problem
Rate limiting is uniform, so cheap read endpoints and expensive write endpoints share the same budget, either over-restricting reads or under-protecting writes.
Requirements
- Support configurable rate-limit tiers assignable per route.
- Apply distinct limits per authenticated user/API key and tier.
- Return standard rate-limit headers on responses.
- Make tier limits configurable via env/config.
Acceptance Criteria
- Different routes enforce their assigned tier limits.
- Rate-limit headers reflect remaining quota.
- Limits are configurable without code changes.
- Tests cover under-limit, at-limit, and over-limit behavior.
Files
backend/src/auth/rate-limit.service.ts, backend/src/common/guards, backend/src/config
Labels: backend, enhancement, auth, security
Problem
Rate limiting is uniform, so cheap read endpoints and expensive write endpoints share the same budget, either over-restricting reads or under-protecting writes.
Requirements
Acceptance Criteria
Files
backend/src/auth/rate-limit.service.ts,backend/src/common/guards,backend/src/config