You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/docs/gateway
Harald Buerbaumer 30b6eccae5
feat(gateway): add auth rate-limiting & brute-force protection (#15035)
* feat(gateway): add auth rate-limiting & brute-force protection

Add a per-IP sliding-window rate limiter to Gateway authentication
endpoints (HTTP, WebSocket upgrade, and WS message-level auth).

When gateway.auth.rateLimit is configured, failed auth attempts are
tracked per client IP. Once the threshold is exceeded within the
sliding window, further attempts are blocked with HTTP 429 + Retry-After
until the lockout period expires. Loopback addresses are exempt by
default so local CLI sessions are never locked out.

The limiter is only created when explicitly configured (undefined
otherwise), keeping the feature fully opt-in and backward-compatible.

* fix(gateway): isolate auth rate-limit scopes and normalize 429 responses

---------

Co-authored-by: buerbaumer <buerbaumer@users.noreply.github.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
9 months ago
..
security fix(docs): remove hardcoded Mermaid init blocks that break dark mode (#15157) 9 months ago
authentication.md revert(docs): undo markdownlint autofix churn 10 months ago
background-process.md Docs: add nav titles across docs (#5689) 10 months ago
bonjour.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
bridge-protocol.md Docs: add nav titles across docs (#5689) 10 months ago
cli-backends.md chore: apply local workspace updates (#9911) 10 months ago
configuration-examples.md docs: modernize gateway configuration page (Phase 1) (#14111) 9 months ago
configuration-reference.md feat(gateway): add auth rate-limiting & brute-force protection (#15035) 9 months ago
configuration.md fix: harden hook session key routing defaults 9 months ago
discovery.md Docs: add nav titles across docs (#5689) 10 months ago
doctor.md Docs: add nav titles across docs (#5689) 10 months ago
gateway-lock.md Docs: add nav titles across docs (#5689) 10 months ago
health.md Docs: add nav titles across docs (#5689) 10 months ago
heartbeat.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
index.md docs: modernize gateway configuration page (Phase 1) (#14111) 9 months ago
local-models.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
logging.md Docs: add nav titles across docs (#5689) 10 months ago
multiple-gateways.md Docs: add nav titles across docs (#5689) 10 months ago
network-model.md Docs: landing page revamp (#8885) 10 months ago
openai-http-api.md feat(gateway): add auth rate-limiting & brute-force protection (#15035) 9 months ago
openresponses-http-api.md feat(gateway): add auth rate-limiting & brute-force protection (#15035) 9 months ago
pairing.md Docs: add nav titles across docs (#5689) 10 months ago
protocol.md Docs: add nav titles across docs (#5689) 10 months ago
remote-gateway-readme.md fix(docs): remove hardcoded Mermaid init blocks that break dark mode (#15157) 9 months ago
remote.md docs: restructure Get Started tab and improve onboarding flow (#9950) 10 months ago
sandbox-vs-tool-policy-vs-elevated.md chore: Run `pnpm format:fix`. 10 months ago
sandboxing.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago
tailscale.md Docs: enable markdownlint autofixables except list numbering (#10476) 10 months ago
tools-invoke-http-api.md feat(gateway): add auth rate-limiting & brute-force protection (#15035) 9 months ago
troubleshooting.md docs: canonicalize docs paths and align zh navigation (#11428) 10 months ago