Skip to content

Implement Rate Limiting for API Endpoints #11

@caleb-vanlue

Description

@caleb-vanlue

The API has no rate limiting on any endpoints, making it vulnerable to abuse and DoS attacks. A single client can overwhelm the server with requests, exhaust database connections, and degrade service for all users. This security vulnerability could lead to service outages and unfair resource consumption.

Integrate @nestjs/throttler with different limits for different endpoint types. Set general endpoints to 100 requests/minute and resource-intensive operations like sync to 10 requests/minute. Return proper 429 status codes with retry-after headers. Implement IP-based and API key-based rate limiting with backend for distributed deployments.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions