SGS portal: nginx login gate — rate-limit /api/portal/login (12r/m, burst 6) #13

Merged
sirius merged 1 commit from wt/t_eaecc2ba into master 2026-11-03 18:16:04 +00:00
Owner

Adds a one-job nginx gate in front of /api/portal/login so over-limit credential attempts are refused before uvicorn. See task t_eaecc2ba.

Adds a one-job nginx gate in front of /api/portal/login so over-limit credential attempts are refused before uvicorn. See task t_eaecc2ba.
One-job nginx pod (sirius-growth-portal-gate) sits in front of the portal
API for the login path only, so credential attempts are refused by nginx
before uvicorn. HTTPRoute gains a /api/portal/login rule above the
/api/portal catch, co-located on siriussec with the Envoy gateway.

real_ip resolves the caller through Envoy's X-Forwarded-For chain, so the
limit key is the client IP, not ingress. Over-limit answers 429 with a
JSON body and Cache-Control: no-store.
sirius merged commit 5036d853bf into master 2026-11-03 18:16:04 +00:00
sirius deleted branch wt/t_eaecc2ba 2026-11-03 18:16:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!13
No description provided.