Files
aevolution/deploy/kubernetes/grant-broker-dev/networkpolicy.yaml
T
dingoandClaude Opus 5.5 40426777a0
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 3m47s
Foundation / image (push) Successful in 5s
Foundation / postgres-tools (push) Successful in 5s
Foundation / server-image (push) Successful in 5s
ADR-0131: grant broker reachable only through HTTPS 443
The broker NetworkPolicy no longer admits the node subnet. Port 8080 is the
in-cluster backend for ingress-nginx pods only; players use
https://grants.aeternalisgames.com on 443.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 12:19:46 -04:00

34 lines
1.2 KiB
YAML

# Broker traffic on top of the namespace default-deny. Players reach the broker only at
# https://grants.aeternalisgames.com on 443, where ingress-nginx terminates TLS. The pod's
# HTTP port 8080 is admitted from the ingress-nginx pods inside the cluster and from
# nothing on the LAN. No address block is admitted: if the controller runs on the host
# network, this selector does not match it and the route fails closed (502) until the
# exact node addresses are added. Egress goes to PostgreSQL on pg-forge-01 only.
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: evo-grant-broker
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: evo-grant-broker
policyTypes: [Ingress, Egress]
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: kube-system
podSelector:
matchLabels:
app.kubernetes.io/name: rke2-ingress-nginx
ports:
- {protocol: TCP, port: 8080}
egress:
- to:
- ipBlock:
cidr: 172.10.1.127/32
ports:
- {protocol: TCP, port: 5432}