Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(ci): wire the single-writer rollout validator + guard its empty-overlay fail-open [R3-H5]
Alfredo Lopez49341079a106
diff --git a/.github/workflows/ci-public.yml b/.github/workflows/ci-public.ymlindex 17ed93582..7162b0e4f 100644--- a/.github/workflows/ci-public.yml+++ b/.github/workflows/ci-public.yml@@ -349,6 +349,18 @@ jobs:- name: Test minikube detect-k8s-api-ip template renderingrun: bash scripts/tests/test-minikube-detect-k8s-api-ip.sh+ - name: Validate single-writer rollout invariant on rendered overlays+ run: |+ # The k8s-api-ip patch is rendered from a gitignored template at setup+ # time; render it with a dummy IP so `kubectl kustomize` can build the+ # minikube overlay here. The gcp-* overlays live in evenfire-infra, so+ # this repo validates only the minikube overlay it actually ships.+ sed 's#__K8S_API_IP__#10.96.0.1#g' \+ deploy/overlays/minikube/patches/k8s-api-ip.yaml.template \+ > deploy/overlays/minikube/patches/k8s-api-ip.yaml+ SINGLE_WRITER_OVERLAYS="deploy/overlays/minikube" \+ bash deploy/scripts/validate-postgres-single-writer-strategy.sh+# ─── Platform NGINX image guard (CVE baseline) ────────────────────────────nginx-image-guard:name: Validate platform NGINX imagesdiff --git a/deploy/scripts/validate-postgres-single-writer-strategy.sh b/deploy/scripts/validate-postgres-single-writer-strategy.shindex 3a989705f..a23129b9a 100755--- a/deploy/scripts/validate-postgres-single-writer-strategy.sh+++ b/deploy/scripts/validate-postgres-single-writer-strategy.sh@@ -29,6 +29,12 @@ fail() {command -v kubectl >/dev/null 2>&1 || fail "kubectl is required"command -v jq >/dev/null 2>&1 || fail "jq is required"+# Zero overlays means the loop below runs zero iterations and the script exits 0+# having validated nothing — a fail-open. An empty or whitespace-only+# SINGLE_WRITER_OVERLAYS must fail loudly, not pass vacuously.+[ "${#OVERLAYS[@]}" -gt 0 ] ||+ fail "SINGLE_WRITER_OVERLAYS resolved to zero overlays — refusing to pass vacuously"+for overlay in "${OVERLAYS[@]}"; dorendered_json="$(cd "${ROOT_DIR}" &&