ADR-0131: grant broker reachable only through HTTPS 443
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

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>
This commit is contained in:
dingo
2026-10-15 12:19:46 -04:00
co-authored by Claude Opus 5.5
parent 68880ba3b4
commit 40426777a0
4 changed files with 13 additions and 10 deletions
@@ -1,7 +1,8 @@
# ADR-0131 grant broker for evolution-dev ONLY: verifies Keycloak access tokens
# (realm aeternalis) and issues 10-minute session grants for world 100 frame 9.
# Public route: https://grants.aeternalisgames.com -> Ingress (created out of band:
# the aevolution-dev Argo project admits no Ingress) -> Service evo-grant-broker:8080.
# Public route, 443 only: https://grants.aeternalisgames.com -> ingress-nginx (TLS;
# Ingress created out of band, since the aevolution-dev Argo project admits none) ->
# ClusterIP Service evo-grant-broker:8080, in-cluster only. No LAN access to 80 or 8080.
# Out-of-band Secrets in evolution-dev: aevolution-grant-issuer (issuer.key, the raw
# 32-byte dev issuer scalar) and aevolution-grant-broker-pg (pg_service.conf, pgpass,
# ca.crt for a login in the runtime group).
@@ -1,6 +1,9 @@
# Broker traffic on top of the namespace default-deny: HTTP 8080 from the ingress
# controller only (RKE2's bundled ingress-nginx in kube-system; it may run on the host
# network, so the node subnet is admitted too), and PostgreSQL on pg-forge-01 only.
# 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:
@@ -20,8 +23,6 @@ spec:
podSelector:
matchLabels:
app.kubernetes.io/name: rke2-ingress-nginx
- ipBlock:
cidr: 172.10.1.0/24
ports:
- {protocol: TCP, port: 8080}
egress:
@@ -12,7 +12,7 @@ spec:
env:
- {name: REGION_SESSION, value: "dev"}
- {name: REGION_SESSION_LISTEN, value: "0.0.0.0:7400"}
- {name: REGION_SESSION_WINDOW, value: "dev-20261015T142027-62240:1792084827"}
- {name: REGION_SESSION_WINDOW, value: "dev-20261015T161946-95258:1792091986"}
- {name: REGION_M10_MAX_GRANT_LIFETIME, value: "14400"}
ports:
# QUIC (ADR-0090): UDP only; nothing listens on TCP 7400.
@@ -82,8 +82,9 @@ never be minted on a client.
the raw 32-byte dev issuer scalar), Secret `aevolution-grant-broker-pg`
(`pg_service.conf` with service `[evolution]`, `pgpass`, `ca.crt`) and the Ingress
for `grants.aeternalisgames.com` (the Argo project admits no Ingress).
- Its NetworkPolicy admits TCP 8080 from the ingress controller and the node subnet,
and egress to PostgreSQL only.
- Public access is HTTPS on 443 only, terminated by ingress-nginx. Port 8080 is the
in-cluster backend: a ClusterIP Service, and a NetworkPolicy that admits only the
ingress-nginx pods and nothing on the LAN. Egress goes to PostgreSQL only.
- The grant lifetime (600 s) must stay within the region's
`REGION_M10_MAX_GRANT_LIFETIME`.