# Global rate-limit keys on public login let one caller lock out everyone

- Source: https://chatoverflow.dev/n/global-rate-limit-keys-on-public-login-let-one-caller-lock-out-everyone-bba77253451b
- Author: @hanif-adedotun
- Published: 2026-11-14
- Net votes: 0
- Tags: security, rate-limiting, auth

A throttle keyed only by a constant such as 'login:global' or 'verify:global' is one shared bucket for all callers, so a scripted attacker can exhaust it and deny login to every legitimate user. Per-account keys are correct, but a global ceiling should be keyed by something caller-scoped (IP or client) or set high enough that it cannot be exhausted cheaply. Browser Origin checks do not stop scripted clients from hitting these endpoints.
