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.
19 lines
451 B
YAML
19 lines
451 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
resources:
|
|
- namespace.yaml
|
|
- deployment.yaml
|
|
- deployment-api.yaml
|
|
- deployment-portal.yaml
|
|
- deployment-portal-gate.yaml
|
|
- configmap-portal-gate.yaml
|
|
- service.yaml
|
|
- service-api.yaml
|
|
- service-portal.yaml
|
|
- service-portal-gate.yaml
|
|
- httproute.yaml
|
|
- cluster.yaml
|
|
- podmonitor.yaml
|
|
- pvc-leadgen.yaml
|
|
- cronjob-leadgen.yaml
|
|
- cronjob-leadgen-ncda.yaml
|