Description: Ensure unauthenticated endpoints and critical endpoints have rate limiting protections; verify rate-limiter-flexible is applied consistently.
- Scope:
packages/backend middleware and routes.
- Expected behavior: Rate-limits applied with sensible defaults and whitelisting for internal services.
- Current behavior: Rate-limiter library present but audit required.
- Steps to reproduce: Inspect middleware and test endpoints.
- Acceptance criteria: All public endpoints have rate-limits and tests validate throttling behavior.
- Priority: high
- Files/components affected:
packages/backend/src/middleware
- Recommended implementation steps:
- Add centralized rate-limiter middleware and unit tests.
- Configure per-route limits and exemptions.
Description: Ensure unauthenticated endpoints and critical endpoints have rate limiting protections; verify
rate-limiter-flexibleis applied consistently.packages/backendmiddleware and routes.packages/backend/src/middleware