Files
plane/apps/api
Manish Gupta 3257ee9305 [SECUR-236] fix: address CodeRabbit — composite account throttle key + rate guard
- AuthenticationAccountThrottle keyed on (email + client IP) instead of email
  alone. An email-only key let anyone lock a victim out of their own account by
  spamming their address from other IPs (self-inflicted lockout DoS). Combining
  with the client IP prevents that while still capping single-source guessing.
- Guard the AUTHENTICATION_ACCOUNT_RATE_LIMIT env value: a malformed rate would
  raise in DRF parse_rate() on every auth POST (throttle is instantiated per
  request), taking authentication down instance-wide. Falls back to the default.
- Add regression tests for both.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-28 15:12:13 +05:30
..