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.
14 lines
257 B
YAML
14 lines
257 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: sirius-growth-portal-gate
|
|
namespace: sirius-growth
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: sirius-growth-portal-gate
|
|
ports:
|
|
- name: http
|
|
port: 8080
|
|
targetPort: 8080
|
|
protocol: TCP
|