Description
Implement a security module that applies rate limiting, request throttling, and HTTP security headers across the API. LogiQuest's on-chain integrations and scoring system make it a target for abuse — bots farming rewards, brute-forcing logins, or spamming puzzle submissions. This module enforces limits globally and per-route to keep the API fair and resilient.
Acceptance Criteria
Description
Implement a
securitymodule that applies rate limiting, request throttling, and HTTP security headers across the API. LogiQuest's on-chain integrations and scoring system make it a target for abuse — bots farming rewards, brute-forcing logins, or spamming puzzle submissions. This module enforces limits globally and per-route to keep the API fair and resilient.Acceptance Criteria
securitymodule is scaffolded atsrc/security/@nestjs/throttleris configured with global rate limits (e.g. 100 req/min per IP)/auth/login,/auth/register) have stricter limits (e.g. 10 req/min)helmetis applied globally to set secure HTTP headersRetry-Afterheader