apps(sirius-growth): nginx login gate - rate-limit /api/portal/login at 12r/m burst 6
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.
This commit is contained in:
parent
c77b5a6e80
commit
0037a70385
5 changed files with 146 additions and 0 deletions
|
|
@ -18,6 +18,13 @@ spec:
|
|||
backendRefs:
|
||||
- name: sirius-growth-contact
|
||||
port: 8090
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /api/portal/login
|
||||
backendRefs:
|
||||
- name: sirius-growth-portal-gate
|
||||
port: 8080
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
|
|
|
|||
Loading…
Reference in a new issue