Check rendered kustomize output in the deploy policy (M9.8f review)

The policy check now renders every overlay with pinned, checksum-verified
kustomize v5.8.1 (ADR-0088) and validates effective namespaces, session/input/
listener environment and arguments, ports, Services, quotas, policies, Ingresses
and Secrets, so inline/JSON patches and namespace changes cannot bypass it.
Route enabling is gated on an ADR-0087 amendment with tested server windows, route
addresses must be RFC 1918 or explicitly approved, and the Local health-check node
port is documented with its enabling evidence. Self-test grows to 33 cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dingo
2026-10-02 18:02:57 -04:00
co-authored by Claude Opus 5.5
parent 9f622cf6b3
commit 8a1e5ef53d
12 changed files with 386 additions and 32 deletions
+4 -1
View File
@@ -86,9 +86,12 @@ RUN cmake --preset analysis -B build/ecs-analysis -DCMAKE_CXX_COMPILER=clang++-1
FROM ${UBUNTU_IMAGE} AS ci-deploy
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-yaml \
&& apt-get install -y --no-install-recommends python3 python3-yaml curl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /source
# Pinned, checksum-verified kustomize for the rendered-output checks (ADR-0088).
COPY tools/ci/prepare-kustomize.sh tools/ci/
RUN bash tools/ci/prepare-kustomize.sh /usr/local/bin
COPY deploy/ deploy/
COPY tools/ci/deploy-policy-check.py tools/ci/deploy-policy-selftest.py tools/ci/
COPY tools/ops/ tools/ops/
@@ -3,7 +3,10 @@
# 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).
# - allocateLoadBalancerNodePorts false: no node port for the session data. Local
# still makes Kubernetes allocate spec.healthCheckNodePort, an HTTP endpoint kube-proxy
# serves on every node; it carries no session traffic and must stay closed at the edge
# firewall. Its allocation and quota accounting are verified before enabling (ADR-0087).
# - 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