Skip to content

Rate limit users write endpoints#1347

Open
brentthomas248 wants to merge 1 commit into
MyFanss:mainfrom
brentthomas248:codex/grantfox-1077
Open

Rate limit users write endpoints#1347
brentthomas248 wants to merge 1 commit into
MyFanss:mainfrom
brentthomas248:codex/grantfox-1077

Conversation

@brentthomas248

@brentthomas248 brentthomas248 commented Jul 5, 2026

Copy link
Copy Markdown

Closes #1077

Summary

  • add ThrottlerGuard coverage to UsersController
  • throttle create, update, and delete user write endpoints to 5 requests per minute
  • document 429 responses for throttled write endpoints
  • add focused metadata coverage to keep read endpoints unthrottled

Tests

  • npm test --prefix backend -- users.throttle.spec.ts --runInBand
  • npm test --prefix backend -- users.controller.spec.ts users.throttle.spec.ts --runInBand
  • npm test --prefix backend -- users-module --runInBand
  • cd backend && npx --no-install eslint src/users-module/users.controller.ts src/users-module/users.controller.spec.ts src/users-module/users.throttle.spec.ts
  • git diff --check -- backend/src/users-module/users.controller.ts backend/src/users-module/users.controller.spec.ts backend/src/users-module/users.throttle.spec.ts

Notes

  • TypeScript compile is still blocked by pre-existing syntax errors in src/social-link/social-links.controller.spec.ts:293, unrelated to this users change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backend Users: Add rate limiting on write endpoints

1 participant