Add M9.8f dev session route design, disabled with fail-closed policy

ADR-0087 records the maintainer's route (void.aeternalisgames.com:7400 via a
dedicated internal MetalLB VIP to the evolution-dev region pod, TLS end to end,
CIDR-limited) and operator-opened windows enforced by evo-server. The route is a
kustomize component included nowhere; the policy check encodes its shape and
refuses enabling until VIP/CIDR, the dev quota and --session-window exist, with a
20-case self-test in the CI deploy stage. The base listener stays loopback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-02 17:34:12 -04:00
co-authored by Claude Opus 5.5
parent 2a2d6fbbfe
commit 9f622cf6b3
18 changed files with 504 additions and 24 deletions
@@ -0,0 +1,26 @@
# The one LoadBalancer Service AEvolution may own (ADR-0087), evolution-dev only.
# - metallb.io/loadBalancerIPs pins the dedicated internal VIP that the internal DNS
# name void.aeternalisgames.com resolves to (never the control-plane address).
# - externalTrafficPolicy Local keeps client source addresses, so the NetworkPolicy's
# ipBlock (same CIDRs) is enforceable; new connections reach only a ready pod.
# - allocateLoadBalancerNodePorts false: no node ports (the quota forbids them).
# - loadBalancerSourceRanges duplicates the CIDR at the Service; the edge firewall is
# the third layer. TLS 1.3, the dev CA and single-use grants remain mandatory.
apiVersion: v1
kind: Service
metadata:
name: evo-region-session
annotations:
metallb.io/loadBalancerIPs: REPLACE-dev-session-vip
labels:
app.kubernetes.io/name: evo-region
spec:
type: LoadBalancer
allocateLoadBalancerNodePorts: false
externalTrafficPolicy: Local
loadBalancerSourceRanges:
- REPLACE-dev-test-client-cidr
selector:
app.kubernetes.io/name: evo-region
ports:
- {name: session, port: 7400, targetPort: session, protocol: TCP}