Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(nginx): upgrade platform NGINX images to 1.30.6 for October 2026 advisories
Alfredo Lopez76919a596202
diff --git a/.github/workflows/ci-public.yml b/.github/workflows/ci-public.ymlindex 5be8cc649..1d5e7e446 100644--- a/.github/workflows/ci-public.yml+++ b/.github/workflows/ci-public.yml@@ -930,6 +930,29 @@ jobs:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4- name: Run NGINX image guardrun: bash scripts/validate-nginx-images.sh+ - name: Test NGINX image guard+ run: bash scripts/tests/test-validate-nginx-images.sh++ # ─── Remote MCP egress proxy TLS contract (native amd64 + arm64) ──────────+ nginx-egress-proxy-tls:+ name: Egress proxy TLS (${{ matrix.arch }})+ runs-on: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}+ strategy:+ fail-fast: false+ matrix:+ arch: [amd64, arm64]+ steps:+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4+ with:+ node-version: '24'+ cache: npm+ cache-dependency-path: host-context-controller/package-lock.json+ - name: Install host-context-controller dependencies+ working-directory: host-context-controller+ run: npm ci+ - name: Run egress proxy TLS contract+ run: bash scripts/tests/test-nginx-egress-proxy-tls.sh# ─── Cf-Access header-read guard ──────────────────────────────────────────cf-access-header-guard:diff --git a/control-api/package-lock.json b/control-api/package-lock.jsonindex a45491636..a9d59615e 100644--- a/control-api/package-lock.json+++ b/control-api/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-api",- "version": "0.1.786",+ "version": "0.1.787","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-api",- "version": "0.1.786",+ "version": "0.1.787","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/grok-provider-attempt-contract": "file:../packages/grok-provider-attempt-contract",diff --git a/control-api/package.json b/control-api/package.jsonindex 8b27b361e..1c8f9ca9d 100644--- a/control-api/package.json+++ b/control-api/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-api",- "version": "0.1.786",+ "version": "0.1.787","description": "Internal Clerum control plane REST API + UI for managing CRDs and secrets","main": "dist/main.js","engines": {diff --git a/control-api/test/services.workflowRecipeLimits.test.ts b/control-api/test/services.workflowRecipeLimits.test.tsindex 1ca46d139..6f0d9b97b 100644--- a/control-api/test/services.workflowRecipeLimits.test.ts+++ b/control-api/test/services.workflowRecipeLimits.test.ts@@ -62,7 +62,7 @@ describe('validateWorkflowRecipeLimits', () => {workloads: Array.from({ length: 26 }, (_, index) => ({id: `service-${index}`,type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',})),},[{ field: 'spec.workloads', message: 'must contain at most 25 items' }],diff --git a/control-ui/e2e/qa-recorder-recipe-scope-copy.spec.ts b/control-ui/e2e/qa-recorder-recipe-scope-copy.spec.tsindex 4a513fedf..0bb63b81a 100644--- a/control-ui/e2e/qa-recorder-recipe-scope-copy.spec.ts+++ b/control-ui/e2e/qa-recorder-recipe-scope-copy.spec.ts@@ -42,7 +42,7 @@ function agenticManifestWithoutOptIn(recipeName: string, contextName: string): sspec: {contextRef: contextName,triggers: { onDemand: true },- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],steps: [{id: 'run',@@ -134,7 +134,7 @@ test.describe('optional QA recorder: Control UI recipe connector-scope copy', ()spec: {contextRef: contextName,security: { allowContextRef: true },- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],steps: [{id: 'run',diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 15c63a871..c8e6c55d0 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.735",+ "version": "0.1.736","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.735",+ "version": "0.1.736","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/frontend-components": "file:../packages/frontend-components",diff --git a/control-ui/package.json b/control-ui/package.jsonindex aedbdfe14..e0dec5632 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.735",+ "version": "0.1.736","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",diff --git a/deploy/base/control-plane/control-api-rpc-gateway.yaml b/deploy/base/control-plane/control-api-rpc-gateway.yamlindex 0378a792f..3410ec4ea 100644--- a/deploy/base/control-plane/control-api-rpc-gateway.yaml+++ b/deploy/base/control-plane/control-api-rpc-gateway.yaml@@ -25,7 +25,7 @@ spec:type: RuntimeDefaultcontainers:- name: nginx- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineimagePullPolicy: IfNotPresentports:- containerPort: 8090diff --git a/deploy/base/control-plane/host-context-controller-api-gateway.yaml b/deploy/base/control-plane/host-context-controller-api-gateway.yamlindex 1c30ccfbc..66c6893bd 100644--- a/deploy/base/control-plane/host-context-controller-api-gateway.yaml+++ b/deploy/base/control-plane/host-context-controller-api-gateway.yaml@@ -25,7 +25,7 @@ spec:type: RuntimeDefaultcontainers:- name: nginx- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineimagePullPolicy: IfNotPresentports:- containerPort: 8081diff --git a/deploy/base/control-plane/nginx-workflow-approval-gateway.yaml b/deploy/base/control-plane/nginx-workflow-approval-gateway.yamlindex 5c194f9d4..885f00b70 100644--- a/deploy/base/control-plane/nginx-workflow-approval-gateway.yaml+++ b/deploy/base/control-plane/nginx-workflow-approval-gateway.yaml@@ -25,7 +25,7 @@ spec:type: RuntimeDefaultcontainers:- name: nginx- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineimagePullPolicy: IfNotPresentports:- containerPort: 8092diff --git a/deploy/base/profiles/profile-control-funnel.yaml b/deploy/base/profiles/profile-control-funnel.yamlindex d16e0ef8c..f154ab55b 100644--- a/deploy/base/profiles/profile-control-funnel.yaml+++ b/deploy/base/profiles/profile-control-funnel.yaml@@ -23,7 +23,7 @@ spec:spec:automountServiceAccountToken: falsecontainers:- - image: nginx:1.30.1-alpine+ - image: nginx:1.30.6-alpineimagePullPolicy: IfNotPresentlivenessProbe:failureThreshold: 3diff --git a/desktop-app/test/e2e-playwright/sandbox-ui-apps-catalog-authz.test.ts b/desktop-app/test/e2e-playwright/sandbox-ui-apps-catalog-authz.test.tsindex 15bef5229..536eadef4 100644--- a/desktop-app/test/e2e-playwright/sandbox-ui-apps-catalog-authz.test.ts+++ b/desktop-app/test/e2e-playwright/sandbox-ui-apps-catalog-authz.test.ts@@ -189,7 +189,7 @@ spec:workloads:- id: ${args.workloadId}type: deployment- image: nginxinc/nginx-unprivileged:1.27-alpine+ image: nginxinc/nginx-unprivileged:1.30.6-alpineport: 8080healthCheck:type: httpdiff --git a/docs/agents/CLERUM_WORKFLOW_RECIPE_GUIDE.md b/docs/agents/CLERUM_WORKFLOW_RECIPE_GUIDE.mdindex 90e1d7c23..3e214b4b6 100644--- a/docs/agents/CLERUM_WORKFLOW_RECIPE_GUIDE.md+++ b/docs/agents/CLERUM_WORKFLOW_RECIPE_GUIDE.md@@ -133,7 +133,7 @@ spec:workloads:- id: webtype: deployment- image: nginxinc/nginx-unprivileged:1.27-alpine # MUST run non-root, listen on 8080+ image: nginxinc/nginx-unprivileged:1.30.6-alpine # MUST run non-root, listen on 8080port: 8080healthCheck: { type: http, path: /, port: 8080 }resources:@@ -576,7 +576,7 @@ If your recipe currently has one credentialed workload doubling as the UI, splitThe `sandbox-ui` namespace runs the K8s PodSecurity `restricted` profile. Your image MUST:-- Run as non-root (UID > 0). `nginxinc/nginx-unprivileged:1.27-alpine` (UID 101, port 8080) is the canonical example.+- Run as non-root (UID > 0). `nginxinc/nginx-unprivileged:1.30.6-alpine` (UID 101, port 8080) is the canonical example.- Drop all capabilities (enforced; do not request them back).- Listen on `0.0.0.0:8080` (not `127.0.0.1`, not any other port).- Return 2xx on `/` (or your `healthCheck.path`) so K8s marks the pod Ready.@@ -1532,7 +1532,7 @@ The canonical sandbox-UI shape is "thin static-asset UI pod + sibling credential| Before | After ||---|---|-| `Dockerfile` builds Node app, copies bundled UI assets into `public/`, serves both. | `api/Dockerfile` (Node + Fastify, no statics) and `ui/Dockerfile` (multi-stage: build the bundle in Node, copy `public/` into `nginxinc/nginx-unprivileged:1.27-alpine`). |+| `Dockerfile` builds Node app, copies bundled UI assets into `public/`, serves both. | `api/Dockerfile` (Node + Fastify, no statics) and `ui/Dockerfile` (multi-stage: build the bundle in Node, copy `public/` into `nginxinc/nginx-unprivileged:1.30.6-alpine`). || Server registers `@fastify/static` and a `/` route. | Server keeps only `/api/*`, `/webhook/*`, `/healthz`. Drop the static plugin entirely. || One image, one repo tag. | Two repos: `<org>/<name>-api:<tag>` and `<org>/<name>-ui:<tag>`. Both must satisfy §14.2 / §17.2 separately. || UI assets reference `/static/app.js`, `/static/styles.css`. | nginx config in the UI image serves `/static/` from `/usr/share/nginx/html/` AND reverse-proxies `/api/` to `http://${API_HOST}:${API_PORT}` (use `envsubst` templates so the FQDN is recipe-injected). |@@ -2226,7 +2226,7 @@ Steps 4 and 6 are the only operator-action steps; the rest is platform automatio### 14.9 Worked example — publishing `sandbox-ui-oauth-hello`-**Step 1 — image is ready.** This recipe uses `nginxinc/nginx-unprivileged:1.27-alpine`, already public, multi-arch, non-root — so build/push is a no-op. For a custom image, run through §14.2 first (`docker buildx build --platform linux/amd64,linux/arm64 ... --push`).+**Step 1 — image is ready.** This recipe uses `nginxinc/nginx-unprivileged:1.30.6-alpine`, already public, multi-arch, non-root — so build/push is a no-op. For a custom image, run through §14.2 first (`docker buildx build --platform linux/amd64,linux/arm64 ... --push`).**Step 2 — `spec.description` spells out every prerequisite.** The Slack OAuth app, the redirect URI to register (`http://<control-api-host>/api/v1/oauth-callback/slack-bot`), and the `kubectl create secret generic slack-oauth-creds ...` command.diff --git a/docs/deploy/workflow-recipes-guide.md b/docs/deploy/workflow-recipes-guide.mdindex 1467ed345..82d2cb1c2 100644--- a/docs/deploy/workflow-recipes-guide.md+++ b/docs/deploy/workflow-recipes-guide.md@@ -22,7 +22,7 @@ spec:workloads:- id: webtype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpine```**Namespace contract**:@@ -186,8 +186,8 @@ The tab is activated from the main dashboard. Implemented in:- Workloads with no `resources` get default CPU/memoryrequests+limits- A bare image name (no `/`) gets the registry prefix- prepended — e.g. `nginx:1.30.1-alpine` becomes- `us-central1-docker.pkg.dev/${GCP_PROJECT}/clerum/nginx:1.30.1-alpine`+ prepended — e.g. `nginx:1.30.6-alpine` becomes+ `us-central1-docker.pkg.dev/${GCP_PROJECT}/clerum/nginx:1.30.6-alpine`- `volumeClaimTemplates` with no `storageClass` get thedefault storage classIt does NOT set a namespace and does NOT add imagePullSecrets.@@ -229,7 +229,7 @@ make minikube-pf-all # all port-forwards"kind": "WorkflowRecipe","metadata": { "name": "my-nginx" },"spec": {- "workloads": [{ "id": "web", "type": "deployment", "image": "nginx:1.30.1-alpine" }]+ "workloads": [{ "id": "web", "type": "deployment", "image": "nginx:1.30.6-alpine" }]}}```@@ -239,8 +239,8 @@ make minikube-pf-all # all port-forwards7. The editor closes and the recipe appears in the table> **Do not click "Apply Operator Defaults" on this example in minikube.**-> `nginx:1.30.1-alpine` has no `/`, so the registry rule rewrites it to-> `us-central1-docker.pkg.dev/${GCP_PROJECT}/clerum/nginx:1.30.1-alpine`, which+> `nginx:1.30.6-alpine` has no `/`, so the registry rule rewrites it to+> `us-central1-docker.pkg.dev/${GCP_PROJECT}/clerum/nginx:1.30.6-alpine`, which> minikube cannot pull (`ImagePullBackOff`). The button is safe for images that> already carry a registry/repo path.@@ -259,7 +259,7 @@ curl -s -b /tmp/clerum-admin.jar -X POST http://localhost:8090/api/v1/admin/reci-d '{"metadata": {"name": "my-nginx"},"spec": {- "workloads": [{"id": "web", "type": "deployment", "image": "nginx:1.30.1-alpine"}]+ "workloads": [{"id": "web", "type": "deployment", "image": "nginx:1.30.6-alpine"}]}}' | jq .```diff --git a/nginx-egress-proxy/Dockerfile b/nginx-egress-proxy/Dockerfileindex d7a095437..7d78af054 100644--- a/nginx-egress-proxy/Dockerfile+++ b/nginx-egress-proxy/Dockerfile@@ -1,4 +1,4 @@-FROM nginx:1.30.1-alpine+FROM nginx:1.30.6-alpine@sha256:c59d1f8b1e0e42da75be973424cd72e23f7f8adfb54e982f4d1cd0216a5a5576# Clerum remote MCP egress proxy image.# The upstream nginx image provides the /etc/nginx/templates envsubst entrypointdiff --git a/nginx-egress-proxy/README.md b/nginx-egress-proxy/README.mdindex 372f8e5aa..f86fec69a 100644--- a/nginx-egress-proxy/README.md+++ b/nginx-egress-proxy/README.md@@ -9,9 +9,12 @@ lives in [host-context-controller](../host-context-controller/) (`src/reconciler## The image-- Base: `nginx:1.30.1-alpine` — kept because its entrypoint runs `envsubst` on- `/etc/nginx/templates/*.template` at startup, which HCC relies on for- credential injection.+- Base: `nginx:1.30.6-alpine`, pinned by multi-arch index digest — kept because+ its entrypoint runs `envsubst` on `/etc/nginx/templates/*.template` at+ startup, which HCC relies on for credential injection. 1.30.6 is the stable+ release that fixes CVE-2026-15176, CVE-2026-93479, CVE-2026-95101,+ CVE-2026-97629 and CVE-2026-97205; `scripts/validate-nginx-images.sh`+ rejects older platform references.- Hardened to run as non-root (`USER 101:101`): the `user` directive is removedfrom `nginx.conf`, the PID file moves to `/tmp/nginx.pid`, the shipped`default.conf` is removed, and nginx dirs plus `/tmp` temp dirs are chowned@@ -78,6 +81,12 @@ comes from `spec.transport.port` (default 3000); `/health` answers on it.The generated config, sanitization rules, and deployment shape are asserted in[host-context-controller/src/\_\_tests\_\_/reconciler.remote.test.ts](../host-context-controller/src/__tests__/reconciler.remote.test.ts).+[scripts/tests/test-nginx-egress-proxy-tls.sh](../scripts/tests/test-nginx-egress-proxy-tls.sh)+builds this image, renders the template through the HCC reconciler, and runs it+against a local TLS upstream: a trusted chain (direct and with two+intermediates) is accepted; an untrusted CA, an expired certificate, a hostname+mismatch, and the test CA without the mounted trust store are rejected.+## Build & deployCI builds and publishes the image viadiff --git a/scripts/bootstrap-cluster.sh b/scripts/bootstrap-cluster.shindex c575c5178..dbf5be699 100755--- a/scripts/bootstrap-cluster.sh+++ b/scripts/bootstrap-cluster.sh@@ -116,7 +116,7 @@ fi# Public images needed by E2E recipeslog "Loading public images..."PUBLIC_IMAGES=(- "nginx:1.30.1-alpine"+ "nginx:1.30.6-alpine""postgres:16-alpine""redis:7-alpine""curlimages/curl:8.7.1"diff --git a/scripts/e2e/e2e-637-secret-ownership-bypass.sh b/scripts/e2e/e2e-637-secret-ownership-bypass.shindex 01b093d53..91dfec127 100755--- a/scripts/e2e/e2e-637-secret-ownership-bypass.sh+++ b/scripts/e2e/e2e-637-secret-ownership-bypass.sh@@ -174,7 +174,7 @@ spec:workloads:- id: apptype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 8080envSecret:name: ${2}@@ -233,7 +233,7 @@ spec:keys: [{ secretKey: api-key, envVar: TOKEN }]- id: apptype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 8080envSecret:name: ${2}@@ -262,7 +262,7 @@ spec:workloads:- id: apptype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 8080envSecret:name: ${2}diff --git a/scripts/e2e/e2e-vap-namespace-allowlist.sh b/scripts/e2e/e2e-vap-namespace-allowlist.shindex 62b0d556b..830cbad96 100755--- a/scripts/e2e/e2e-vap-namespace-allowlist.sh+++ b/scripts/e2e/e2e-vap-namespace-allowlist.sh@@ -62,7 +62,7 @@ spec:workloads:- id: eviltype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineYAMLcat > "$TMP_POS" <<YAMLdiff --git a/scripts/e2e/e2e-workflow-runtime-limits-sandbox-ui.sh b/scripts/e2e/e2e-workflow-runtime-limits-sandbox-ui.shindex b601dd1e8..4a9dfd0d8 100755--- a/scripts/e2e/e2e-workflow-runtime-limits-sandbox-ui.sh+++ b/scripts/e2e/e2e-workflow-runtime-limits-sandbox-ui.sh@@ -151,7 +151,7 @@ derive_cleanup_limit_inputs() {print_workload() {local id=$1- printf ' - id: %s\n type: deployment\n image: nginxinc/nginx-unprivileged:1.27-alpine\n port: 8080\n' "$id"+ printf ' - id: %s\n type: deployment\n image: nginxinc/nginx-unprivileged:1.30.6-alpine\n port: 8080\n' "$id"}print_internal_ref() {diff --git a/scripts/minikube/build-images.sh b/scripts/minikube/build-images.shindex af75fb00c..fb18df47e 100755--- a/scripts/minikube/build-images.sh+++ b/scripts/minikube/build-images.sh@@ -594,7 +594,7 @@ BUILD_BASE_IMAGES=("node:24-alpine""node:24""node:24-slim"- "nginx:1.30.1-alpine"+ "nginx:1.30.6-alpine")normalize_minikube_image_tag() {@@ -1373,7 +1373,7 @@ if [ "$SKIP_PUBLIC" = false ]; thenPUBLIC_IMAGES=("postgres:16-alpine""redis:7-alpine"- "nginx:1.30.1-alpine"+ "nginx:1.30.6-alpine"# MinIO is not pulled here: nothing in this distribution consumes the# image; the optional sibling evenfire-registry deployment pulls its own."axllent/mailpit:latest"diff --git a/scripts/tests/test-lint-workload-hardening.sh b/scripts/tests/test-lint-workload-hardening.shindex dba7e3624..8a7ae0742 100755--- a/scripts/tests/test-lint-workload-hardening.sh+++ b/scripts/tests/test-lint-workload-hardening.sh@@ -96,7 +96,7 @@ spec:type: RuntimeDefaultcontainers:- name: nginx- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpinesecurityContext:allowPrivilegeEscalation: falsecapabilities:diff --git a/scripts/tests/test-nginx-egress-proxy-tls.sh b/scripts/tests/test-nginx-egress-proxy-tls.shnew file mode 100755index 000000000..1f37986eb--- /dev/null+++ b/scripts/tests/test-nginx-egress-proxy-tls.sh@@ -0,0 +1,417 @@+#!/usr/bin/env bash+# Runtime TLS contract for the remote MCP egress proxy.+#+# Builds nginx-egress-proxy/Dockerfile, renders the per-server+# default.conf.template with the real HCC McpServerReconciler, and starts the+# image through its own entrypoint (so the /etc/nginx/templates envsubst step+# runs) as uid/gid 101 with every capability dropped, as HCC deploys it. A local+# TLS upstream presents one certificate per port:+#+# valid leaf issued by test CA A -> 200+# chain2 leaf under two CA A intermediates -> 200 (proxy_ssl_verify_depth 3)+# untrusted leaf issued by test CA B -> 502, (21:unable to verify the first certificate)+# expired expired leaf issued by CA A -> 502, certificate has expired+# wrongsan CA A leaf for other.test -> 502, does not match "upstream.test"+# nobundle valid leaf, image's own CA bundle -> 502, (21:unable to verify the first certificate)+#+# CA A is mounted over /etc/ssl/certs/ca-certificates.crt in every case except+# nobundle. That proves the proxy's verification settings, not the contents of+# the production bundle. Each 502 case first completes a direct handshake with+# the upstream port and then checks that its request token never reached the+# upstream.+#+# The upstream sends only the leaf, so OpenSSL reports a missing issuer of the+# leaf as error 21, not 20 (which needs an intermediate with a missing issuer).+#+# Requires docker, curl, openssl, node and `npm ci` in host-context-controller.+# NGINX_TLS_TEST_MUTATION=verify-off|depth-1 rewrites the rendered template to+# check that the cases detect a disabled verification or a lower depth; a+# mutated run is expected to fail.+set -euo pipefail++REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"+HCC_DIR="$REPO_ROOT/host-context-controller"+DOCKERFILE_DIR="$REPO_ROOT/nginx-egress-proxy"+MUTATION="${NGINX_TLS_TEST_MUTATION:-}"+PREFIX="nginx-tls-test"+RUN_ID="$(date +%s)-$$"+NAME="$PREFIX-$RUN_ID"+NETWORK="$NAME-net"+PROXY_IMAGE="$NAME-proxy:local"+UPSTREAM="$NAME-upstream"+WORK="$(mktemp -d)"+failures=0+cases=0++for tool in docker curl openssl node; do+ command -v "$tool" >/dev/null 2>&1 || { echo "FAIL: $tool is required" >&2; exit 1; }+done+if [ ! -f "$HCC_DIR/node_modules/ts-node/dist/bin.js" ]; then+ echo "FAIL: run npm ci in host-context-controller first (ts-node is missing)" >&2+ exit 1+fi+case "$MUTATION" in+ "" | verify-off | depth-1) ;;+ *) echo "FAIL: unknown NGINX_TLS_TEST_MUTATION '$MUTATION'" >&2; exit 1 ;;+esac++leftovers="$(docker ps -a --filter "name=^$PREFIX-" --format '{{.Names}}')"+if [ -n "$leftovers" ]; then+ echo "FAIL: containers from an earlier run still exist; remove them first:" >&2+ echo "$leftovers" >&2+ exit 1+fi++cleanup() {+ docker ps -a --filter "name=^$NAME-" --format '{{.Names}}' | xargs -r docker rm -f >/dev/null 2>&1 || true+ docker network rm "$NETWORK" >/dev/null 2>&1 || true+ docker image rm "$PROXY_IMAGE" >/dev/null 2>&1 || true+ rm -rf "$WORK"+}+trap cleanup EXIT++fail() {+ echo "FAIL: $*" >&2+ failures=$((failures + 1))+}++# ─── Images ──────────────────────────────────────────────────────────────────++BASE_IMAGE="$(sed -n 's/^FROM[[:space:]]\{1,\}\([^[:space:]]*\).*/\1/p' "$DOCKERFILE_DIR/Dockerfile")"+[ -n "$BASE_IMAGE" ] || { echo "FAIL: no FROM line in $DOCKERFILE_DIR/Dockerfile" >&2; exit 1; }+docker build -q -t "$PROXY_IMAGE" "$DOCKERFILE_DIR" >/dev/null+echo "arch: $(docker version --format '{{.Server.Arch}}')"+echo "base image: $BASE_IMAGE"+echo "proxy image: $(docker run --rm --entrypoint nginx "$PROXY_IMAGE" -v 2>&1)"+echo "proxy user: $(docker run --rm --entrypoint id "$PROXY_IMAGE")"++# ─── Certificates ────────────────────────────────────────────────────────────++PKI="$WORK/pki"+mkdir -p "$PKI/newcerts"+: >"$PKI/index.txt"+echo 1000 >"$PKI/serial"+cat >"$PKI/openssl.cnf" <<EOF+[ ca ]+default_ca = test_ca+[ test_ca ]+database = $PKI/index.txt+new_certs_dir = $PKI/newcerts+serial = $PKI/serial+default_md = sha256+policy = policy_any+unique_subject = no+copy_extensions = none+[ policy_any ]+commonName = supplied+[ req ]+distinguished_name = dn+[ dn ]+[ v3_root ]+basicConstraints = critical,CA:TRUE+keyUsage = critical,keyCertSign,cRLSign+subjectKeyIdentifier = hash+[ v3_int ]+basicConstraints = critical,CA:TRUE+keyUsage = critical,keyCertSign,cRLSign+subjectKeyIdentifier = hash+authorityKeyIdentifier = keyid:always+[ v3_leaf ]+basicConstraints = critical,CA:FALSE+keyUsage = critical,digitalSignature+extendedKeyUsage = serverAuth+subjectAltName = DNS:upstream.test+subjectKeyIdentifier = hash+authorityKeyIdentifier = keyid:always+[ v3_leaf_wrongsan ]+basicConstraints = critical,CA:FALSE+keyUsage = critical,digitalSignature+extendedKeyUsage = serverAuth+subjectAltName = DNS:other.test+subjectKeyIdentifier = hash+authorityKeyIdentifier = keyid:always+EOF++# Fixed dates keep the result independent of clock skew between host and+# container. Only the expired leaf ends in the past.+VALID_FROM=20250101000000Z+VALID_TO=20400101000000Z++new_key_csr() {+ local name="$1" cn="$2"+ openssl req -new -newkey ec -pkeyopt ec_paramgen_curve:P-256 -nodes \+ -config "$PKI/openssl.cnf" -subj "/CN=$cn" \+ -keyout "$PKI/$name.key" -out "$PKI/$name.csr" 2>/dev/null+}++sign() {+ local name="$1" issuer="$2" ext="$3" from="$4" to="$5"+ openssl ca -batch -notext -config "$PKI/openssl.cnf" \+ -cert "$PKI/$issuer.pem" -keyfile "$PKI/$issuer.key" \+ -extensions "$ext" -startdate "$from" -enddate "$to" \+ -in "$PKI/$name.csr" -out "$PKI/$name.pem" 2>/dev/null+}++root() {+ local name="$1" cn="$2"+ new_key_csr "$name" "$cn"+ openssl ca -batch -notext -selfsign -config "$PKI/openssl.cnf" \+ -keyfile "$PKI/$name.key" -extensions v3_root \+ -startdate "$VALID_FROM" -enddate "$VALID_TO" \+ -in "$PKI/$name.csr" -out "$PKI/$name.pem" 2>/dev/null+}++root ca-a "TLS Test CA A"+root ca-b "TLS Test CA B"+new_key_csr int1 "TLS Test CA A Intermediate 1"+sign int1 ca-a v3_int "$VALID_FROM" "$VALID_TO"+new_key_csr int2 "TLS Test CA A Intermediate 2"+sign int2 int1 v3_int "$VALID_FROM" "$VALID_TO"++new_key_csr valid upstream.test+sign valid ca-a v3_leaf "$VALID_FROM" "$VALID_TO"+new_key_csr chain2 upstream.test+sign chain2 int2 v3_leaf "$VALID_FROM" "$VALID_TO"+new_key_csr untrusted upstream.test+sign untrusted ca-b v3_leaf "$VALID_FROM" "$VALID_TO"+new_key_csr expired upstream.test+sign expired ca-a v3_leaf 20250101000000Z 20250201000000Z+new_key_csr wrongsan other.test+sign wrongsan ca-a v3_leaf_wrongsan "$VALID_FROM" "$VALID_TO"++cp "$PKI/valid.pem" "$PKI/valid.chain.pem"+cat "$PKI/chain2.pem" "$PKI/int2.pem" "$PKI/int1.pem" >"$PKI/chain2.chain.pem"+cp "$PKI/untrusted.pem" "$PKI/untrusted.chain.pem"+cp "$PKI/expired.pem" "$PKI/expired.chain.pem"+cp "$PKI/wrongsan.pem" "$PKI/wrongsan.chain.pem"+cp "$PKI/ca-a.pem" "$WORK/trust-ca-a.pem"+chmod 644 "$PKI"/*.pem "$PKI"/*.key "$WORK/trust-ca-a.pem"++# ─── Upstream ────────────────────────────────────────────────────────────────++port_of() {+ case "$1" in+ valid | nobundle) echo 8441 ;;+ chain2) echo 8442 ;;+ untrusted) echo 8443 ;;+ expired) echo 8444 ;;+ wrongsan) echo 8445 ;;+ esac+}++{+ echo "log_format tlstest 'TLSTEST port=\$server_port uri=\$request_uri token=\$http_x_test_token sni=\$ssl_server_name auth=\"\$http_authorization\"';"+ for cert in valid chain2 untrusted expired wrongsan; do+ cat <<EOF+server {+ listen $(port_of "$cert") ssl;+ server_name upstream.test;+ ssl_certificate /fixtures/$cert.chain.pem;+ ssl_certificate_key /fixtures/$cert.key;+ access_log /var/log/nginx/access.log tlstest;+ location / {+ default_type text/plain;+ return 200 "echo token=\$http_x_test_token\n";+ }+}+EOF+ done+} >"$WORK/upstream.conf"+chmod 644 "$WORK/upstream.conf"++docker network create "$NETWORK" >/dev/null+docker run -d --name "$UPSTREAM" --network "$NETWORK" --network-alias upstream.test \+ -v "$PKI:/fixtures:ro" -v "$WORK/upstream.conf:/etc/nginx/conf.d/default.conf:ro" \+ -p 127.0.0.1::8441 -p 127.0.0.1::8442 -p 127.0.0.1::8443 -p 127.0.0.1::8444 -p 127.0.0.1::8445 \+ "$BASE_IMAGE" >/dev/null++host_port() {+ docker port "$1" "$2/tcp" | head -n1 | sed 's/.*://'+}++# Direct handshake to an upstream port from the host. -k because the point is+# that the server is up and speaking TLS, not that the host trusts CA A.+upstream_handshake() {+ local port="$1" token="$2" hp+ hp="$(host_port "$UPSTREAM" "$port")"+ curl -sk -o /dev/null -w '%{http_code}' --max-time 5 \+ --resolve "upstream.test:$hp:127.0.0.1" -H "X-Test-Token: $token" \+ "https://upstream.test:$hp/liveness"+}++wait_for() {+ local what="$1" container="$2"+ shift 2+ local _+ for _ in $(seq 1 60); do+ if [ "$("$@" 2>/dev/null || true)" = "200" ]; then+ return 0+ fi+ sleep 0.5+ done+ echo "FAIL: $what did not become ready within 30s" >&2+ docker logs "$container" >&2 2>&1 || true+ exit 1+}++for cert in valid chain2 untrusted expired wrongsan; do+ wait_for "upstream port $(port_of "$cert")" "$UPSTREAM" upstream_handshake "$(port_of "$cert")" "ready-$cert"+done++# ─── Rendered proxy template ─────────────────────────────────────────────────++AUTH_SECRET="secret-$RUN_ID"+mkdir -p "$WORK/templates"+(+ cd "$HCC_DIR"+ # shellcheck disable=SC2016 # TypeScript source; ${...} is a JS template literal.+ TEMPLATE_DIR="$WORK/templates" node node_modules/ts-node/dist/bin.js --transpile-only -e '+import * as fs from "fs"+import * as path from "path"+import * as k8s from "@kubernetes/client-node"+import { McpServerReconciler } from "./src/reconciler"++const reconciler = new McpServerReconciler({} as k8s.KubeConfig, {+ assumeInventoryAuthorityWhenUnconfigured: true,+ appsApi: {} as never,+ coreApi: {} as never,+ customApi: {} as never,+})+for (const port of [8441, 8442, 8443, 8444, 8445]) {+ const cm = (reconciler as any).buildNginxConfigMap({+ name: `tls-test-${port}`,+ namespace: "mcp-server",+ spec: {+ contextRef: "tls-test",+ image: "clerum/nginx-egress-proxy:0.1.0",+ transport: { type: "streamableHttp", port: 3000 },+ managed: true,+ enabled: true,+ remote: {+ baseUrl: `https://upstream.test:${port}/mcp`,+ authHeaders: [{ header: "Authorization", valueTemplate: "Bearer ${UPSTREAM_TOKEN}" }],+ },+ },+ })+ const dir = path.join(process.env.TEMPLATE_DIR as string, String(port))+ fs.mkdirSync(dir)+ fs.writeFileSync(path.join(dir, "default.conf.template"), cm.data["default.conf.template"])+}+'+)++mutate() {+ local file="$1" from="$2" to="$3" count+ count="$(grep -cF -- "$from" "$file" || true)"+ if [ "$count" != "1" ]; then+ echo "FAIL: mutation expected one '$from' in $file, found $count" >&2+ exit 1+ fi+ sed "s/$from/$to/" "$file" >"$file.new" && mv "$file.new" "$file"+}++for port in 8441 8442 8443 8444 8445; do+ t="$WORK/templates/$port/default.conf.template"+ grep -q "proxy_pass https://upstream.test:$port/mcp;" "$t" || { echo "FAIL: rendered template for $port has no proxy_pass" >&2; exit 1; }+ case "$MUTATION" in+ verify-off) mutate "$t" "proxy_ssl_verify on;" "proxy_ssl_verify off;" ;;+ depth-1) mutate "$t" "proxy_ssl_verify_depth 3;" "proxy_ssl_verify_depth 1;" ;;+ esac+ chmod 755 "$WORK/templates/$port"+ chmod 644 "$t"+done+[ -n "$MUTATION" ] && echo "mutation: $MUTATION"++# ─── Cases ───────────────────────────────────────────────────────────────────++start_proxy() {+ local case_name="$1" port="$2" mount_ca="$3" container="$NAME-proxy-$1"+ local args=(+ -d --name "$container" --network "$NETWORK"+ --user 101:101 --cap-drop ALL --security-opt no-new-privileges+ -e "UPSTREAM_TOKEN=$AUTH_SECRET"+ -v "$WORK/templates/$port:/etc/nginx/templates:ro"+ -p 127.0.0.1::3000+ )+ if [ "$mount_ca" = "yes" ]; then+ args+=(-v "$WORK/trust-ca-a.pem:/etc/ssl/certs/ca-certificates.crt:ro")+ fi+ docker run "${args[@]}" "$PROXY_IMAGE" >/dev/null+ wait_for "proxy for $case_name" "$container" \+ curl -s -o /dev/null -w '%{http_code}' --max-time 5 "http://127.0.0.1:$(host_port "$container" 3000)/health"+}++proxy_request() {+ local container="$1" token="$2"+ curl -s -o "$WORK/body" -w '%{http_code}' --max-time 15 -H "X-Test-Token: $token" \+ "http://127.0.0.1:$(host_port "$container" 3000)/mcp"+}++upstream_log_line() {+ docker logs "$UPSTREAM" 2>&1 | grep -F "token=$1 " || true+}++expect_accept() {+ local case_name="$1" port container token code line+ port="$(port_of "$case_name")"+ container="$NAME-proxy-$case_name"+ token="tok-$case_name-$RUN_ID"+ cases=$((cases + 1))+ start_proxy "$case_name" "$port" yes+ code="$(proxy_request "$container" "$token")"+ line="$(upstream_log_line "$token")"+ if [ "$code" != "200" ]; then+ fail "$case_name: expected 200, got $code; proxy log: $(docker logs "$container" 2>&1 | tail -n 5)"+ elif ! grep -qF "echo token=$token" "$WORK/body"; then+ fail "$case_name: response body does not carry the token: $(cat "$WORK/body")"+ elif [ -z "$line" ]; then+ fail "$case_name: upstream never logged token $token"+ elif ! printf '%s' "$line" | grep -qF "port=$port uri=/mcp token=$token sni=upstream.test auth=\"Bearer $AUTH_SECRET\""; then+ fail "$case_name: upstream saw the wrong port, path, SNI or Authorization: $line"+ else+ echo "PASS: $case_name -> 200, token, path, SNI and envsubst Authorization reached port $port"+ fi+ docker rm -f "$container" >/dev/null+}++expect_reject() {+ local case_name="$1" mount_ca="$2" reason="$3" port container token code live+ port="$(port_of "$case_name")"+ container="$NAME-proxy-$case_name"+ token="tok-$case_name-$RUN_ID"+ cases=$((cases + 1))+ live="$(upstream_handshake "$port" "live-$case_name-$RUN_ID")"+ if [ "$live" != "200" ]; then+ fail "$case_name: direct handshake to upstream port $port returned $live"+ return+ fi+ start_proxy "$case_name" "$port" "$mount_ca"+ code="$(proxy_request "$container" "$token")"+ if [ "$code" != "502" ]; then+ fail "$case_name: expected 502, got $code"+ elif ! docker logs "$container" 2>&1 | grep -qF -- "$reason"; then+ fail "$case_name: proxy log has no '$reason': $(docker logs "$container" 2>&1 | tail -n 5)"+ elif [ -n "$(upstream_log_line "$token")" ]; then+ fail "$case_name: request token reached the upstream"+ else+ echo "PASS: $case_name -> 502 ($reason), upstream live, token not forwarded"+ fi+ docker rm -f "$container" >/dev/null+}++expect_accept valid+expect_accept chain2+expect_reject untrusted yes "(21:unable to verify the first certificate)"+expect_reject expired yes "(10:certificate has expired)"+expect_reject wrongsan yes 'upstream SSL certificate does not match "upstream.test"'+expect_reject nobundle no "(21:unable to verify the first certificate)"++echo "cases=$cases failures=$failures"+if [ "$cases" -eq 0 ]; then+ echo "FAIL: no cases ran" >&2+ exit 1+fi+if [ "$failures" -ne 0 ]; then+ exit 1+fi+echo "OK -- nginx egress proxy TLS contract ($cases cases)"diff --git a/scripts/tests/test-validate-nginx-images.sh b/scripts/tests/test-validate-nginx-images.shnew file mode 100755index 000000000..3a53bfdfc--- /dev/null+++ b/scripts/tests/test-validate-nginx-images.sh@@ -0,0 +1,184 @@+#!/usr/bin/env bash+# Contract for scripts/validate-nginx-images.sh: it passes the current tree,+# rejects every vulnerable or floating platform NGINX tag in both image+# families and names the file that carries it, accepts the fixed releases,+# enforces the pinned egress-proxy FROM line, and reports a failed scan.+#+# The validator runs on a copy of the files it reads, so injected cases never+# touch the checkout. Every injected case writes into a path the validator+# scans, and every rejection must name that path.+set -euo pipefail++REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"+VALIDATOR_REL="scripts/validate-nginx-images.sh"+WORK="$(mktemp -d)"+trap 'chmod -R u+rwX "$WORK" 2>/dev/null; rm -rf "$WORK"' EXIT+COPY="$WORK/repo"+OUT="$WORK/out"+failures=0+cases=0++fail() {+ echo "FAIL: $*" >&2+ failures=$((failures + 1))+}++# Copy the validator and every path it scans or requires, read from the+# validator itself so the copy cannot drift from what it checks.+copy_inputs() {+ local paths p+ paths="$(+ sed -n '/^scan_paths=(/,/^)/p' "$REPO_ROOT/$VALIDATOR_REL" | sed -n 's/^[[:space:]]*"\([^"]*\)"$/\1/p'+ sed -n 's/^require_[a-z_]* "\([^"]*\)".*/\1/p' "$REPO_ROOT/$VALIDATOR_REL"+ )"+ if [ -z "$paths" ]; then+ echo "FAIL: could not read scan or required paths from $VALIDATOR_REL" >&2+ exit 1+ fi+ mkdir -p "$COPY/scripts"+ cp "$REPO_ROOT/$VALIDATOR_REL" "$COPY/$VALIDATOR_REL"+ while IFS= read -r p; do+ [ -e "$REPO_ROOT/$p" ] || continue+ mkdir -p "$COPY/$(dirname "$p")"+ cp -R "$REPO_ROOT/$p" "$COPY/$(dirname "$p")/"+ done <<<"$paths"+}++run_validator() {+ PATH="$1" bash "$COPY/$VALIDATOR_REL" >"$OUT" 2>&1+}++expect_pass() {+ local scanner_path="$1" name="$2"+ cases=$((cases + 1))+ if ! run_validator "$scanner_path"; then+ fail "$name should pass: $(cat "$OUT")"+ elif ! grep -q '^OK -- ' "$OUT"; then+ fail "$name passed without the OK line: $(cat "$OUT")"+ fi+}++expect_fail_naming() {+ local scanner_path="$1" name="$2" expected="$3"+ cases=$((cases + 1))+ if run_validator "$scanner_path"; then+ fail "$name should fail: $(cat "$OUT")"+ elif ! grep -qF -- "$expected" "$OUT"; then+ fail "$name should name '$expected': $(cat "$OUT")"+ fi+}++# Scanned by the validator only since the October 2026 baseline: the whole+# recipe samples directory and scripts/e2e.+SAMPLE_REL="workflow-recipes/samples/zz-injected-nginx.yaml"+E2E_REL="scripts/e2e/zz-injected-nginx.sh"+REMOTE_MCP_REL="control-api/src/routes/admin/remoteMcp.ts"+DOCKERFILE_REL="nginx-egress-proxy/Dockerfile"++inject() {+ local rel="$1" image="$2"+ mkdir -p "$COPY/$(dirname "$rel")"+ printf ' image: %s\n' "$image" >"$COPY/$rel"+}++run_matrix() {+ local scanner="$1" scanner_path="$2" family tag image target++ expect_pass "$scanner_path" "[$scanner] the current tree"++ for family in nginx nginxinc/nginx-unprivileged; do+ for tag in 1.30.0 1.30.1 1.30.2 1.30.3 1.30.4 1.30.5 1.30.5-alpine \+ 1.31.0 1.31.1 1.31.2 1.31.3 1.31.4 1.31.5 1.31.6 1.31.6-alpine \+ latest alpine stable mainline stable-alpine 1 1-alpine 1.30 1.30-alpine 1.31 \+ 1.27-alpine 1.29.9; do+ image="$family:$tag"+ inject "$SAMPLE_REL" "$image"+ expect_fail_naming "$scanner_path" "[$scanner] $image in a recipe sample" "$SAMPLE_REL"+ rm -f "$COPY/$SAMPLE_REL"+ done++ for tag in 1.30.6 1.30.6-alpine 1.30.7 1.31.7 1.31.8 1.31.8-alpine 1.30.50 1.30.60 1.31.60; do+ image="$family:$tag"+ inject "$SAMPLE_REL" "$image"+ expect_pass "$scanner_path" "[$scanner] $image in a recipe sample"+ rm -f "$COPY/$SAMPLE_REL"+ done+ done++ for image in nginx:1.30.5-alpine nginxinc/nginx-unprivileged:1.27-alpine; do+ inject "$E2E_REL" "$image"+ expect_fail_naming "$scanner_path" "[$scanner] $image in scripts/e2e" "$E2E_REL"+ rm -f "$COPY/$E2E_REL"+ done++ cp "$COPY/$REMOTE_MCP_REL" "$WORK/remoteMcp.ts.orig"+ printf '// image: nginx:1.31.6\n' >>"$COPY/$REMOTE_MCP_REL"+ expect_fail_naming "$scanner_path" "[$scanner] nginx:1.31.6 in remoteMcp.ts" "$REMOTE_MCP_REL"+ cp "$WORK/remoteMcp.ts.orig" "$COPY/$REMOTE_MCP_REL"++ for image in nginx-egress-proxy clerum/nginx-egress-proxy:0.1.0; do+ inject "$SAMPLE_REL" "$image"+ expect_pass "$scanner_path" "[$scanner] unrelated string $image"+ rm -f "$COPY/$SAMPLE_REL"+ done++ # Scan errors must fail the guard instead of reading as "nothing found".+ target="$COPY/$(dirname "$E2E_REL")/zz-unreadable.sh"+ printf 'echo unreadable\n' >"$target"+ chmod 000 "$target"+ expect_fail_naming "$scanner_path" "[$scanner] unreadable scanned file" "platform NGINX image scan failed with status"+ chmod 600 "$target"+ rm -f "$target"++ expect_pass "$scanner_path" "[$scanner] the restored tree"+}++copy_inputs++if [ "$(id -u)" -eq 0 ]; then+ echo "FAIL: run as a non-root user; root reads chmod 000 files and the scan-error case cannot fail" >&2+ exit 1+fi++# The validator uses rg when it is installed and grep -RInE otherwise. Run the+# matrix with each scanner that this host can provide.+no_rg_path=""+IFS=: read -r -a path_dirs <<<"$PATH"+for d in "${path_dirs[@]}"; do+ [ -x "$d/rg" ] && continue+ no_rg_path="${no_rg_path:+$no_rg_path:}$d"+done+scanners=0+if command -v rg >/dev/null 2>&1; then+ run_matrix rg "$PATH"+ scanners=$((scanners + 1))+fi+run_matrix grep "$no_rg_path"+scanners=$((scanners + 1))++# Dockerfile FROM contract (independent of the scanner).+expected_from="$(grep -E '^FROM ' "$COPY/$DOCKERFILE_REL")"+cp "$COPY/$DOCKERFILE_REL" "$WORK/Dockerfile.orig"++sed 's/@sha256:[0-9a-f]*/@sha256:0000000000000000000000000000000000000000000000000000000000000000/' \+ "$WORK/Dockerfile.orig" >"$COPY/$DOCKERFILE_REL"+expect_fail_naming "$PATH" "Dockerfile with a wrong digest" "$DOCKERFILE_REL must have exactly one FROM line"++sed 's/@sha256:[0-9a-f]*//' "$WORK/Dockerfile.orig" >"$COPY/$DOCKERFILE_REL"+expect_fail_naming "$PATH" "Dockerfile pinned by tag only" "$DOCKERFILE_REL must have exactly one FROM line"++{ cat "$WORK/Dockerfile.orig"; echo "$expected_from AS second"; } >"$COPY/$DOCKERFILE_REL"+expect_fail_naming "$PATH" "Dockerfile with a second FROM" "$DOCKERFILE_REL must have exactly one FROM line"++cp "$WORK/Dockerfile.orig" "$COPY/$DOCKERFILE_REL"+expect_pass "$PATH" "Dockerfile restored"++echo "cases=$cases scanners=$scanners failures=$failures"+if [ "$cases" -eq 0 ]; then+ echo "FAIL: no cases ran" >&2+ exit 1+fi+if [ "$failures" -ne 0 ]; then+ exit 1+fi+echo "OK -- validate-nginx-images contract ($cases cases)"diff --git a/scripts/validate-nginx-images.sh b/scripts/validate-nginx-images.shindex 40fd4fda6..b7c3b7c0b 100755--- a/scripts/validate-nginx-images.sh+++ b/scripts/validate-nginx-images.sh@@ -1,17 +1,26 @@#!/usr/bin/env bash-# Validate platform-owned NGINX runtime images stay above the CVE-2026-42945-# fixed baseline. User-authored arbitrary workload image tests are intentionally-# out of scope; this guard covers manifests, generated proxy defaults, deploy-# helpers, and E2E fixtures that install platform-owned NGINX surfaces.+# Validate platform-owned NGINX runtime images stay on the fixed security+# baseline: stable 1.30.6, which fixes CVE-2026-15176, CVE-2026-93479,+# CVE-2026-95101, CVE-2026-97629 and CVE-2026-97205 (and the older+# CVE-2026-42945). User-authored arbitrary workload image tests are+# intentionally out of scope; this guard covers manifests, generated proxy+# defaults, deploy helpers, shipped recipe samples, and E2E fixtures that+# install platform-owned NGINX surfaces.set -euo pipefailSCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"-FIXED_NGINX_IMAGE="nginx:1.30.1-alpine"+FIXED_NGINX_IMAGE="nginx:1.30.6-alpine"+FIXED_NGINX_IMAGE_DIGEST="sha256:c59d1f8b1e0e42da75be973424cd72e23f7f8adfb54e982f4d1cd0216a5a5576"EGRESS_PROXY_IMAGE="clerum/nginx-egress-proxy:0.1.0"-FORBIDDEN_PLATFORM_NGINX_TAG='(latest|alpine|1\.([0-9]|[12][0-9])(\.[0-9]+)?([^[:alnum:].]|$)|1\.30([^[:alnum:].]|$)|1\.30\.0([^[:alnum:].]|$))'+# Rejected tags: floating tags (latest, alpine, stable, mainline, 1, 1.30, 1.31),+# every release below 1.30 (incl. CVE-2026-42945, fixed in 1.30.1), stable+# 1.30.0-1.30.5 and mainline 1.31.0-1.31.6 (October 2026 CVEs, fixed in 1.30.6+# and 1.31.7). Each alternative ends at a non-alphanumeric, non-dot character so+# 1.30.50 or 1.31.60 are not mistaken for 1.30.5 or 1.31.6.+FORBIDDEN_PLATFORM_NGINX_TAG='(latest|alpine|stable|mainline|1([^[:alnum:].]|$)|1\.([0-9]|[12][0-9])(\.[0-9]+)?([^[:alnum:].]|$)|1\.3[01]([^[:alnum:].]|$)|1\.30\.[0-5]([^[:alnum:].]|$)|1\.31\.[0-6]([^[:alnum:].]|$))'FORBIDDEN_PLATFORM_NGINX_REGEX="nginx:${FORBIDDEN_PLATFORM_NGINX_TAG}|nginxinc/nginx-unprivileged:${FORBIDDEN_PLATFORM_NGINX_TAG}"scan_paths=(@@ -24,14 +33,16 @@ scan_paths=("host-context-controller/src/__tests__/reconciler.remote.test.ts""host-context-controller/src/__tests__/reconciler.sanitize.test.ts""control-api/src/routes/admin/registry.ts"+ "control-api/src/routes/admin/remoteMcp.ts"+ "nginx-egress-proxy/Dockerfile""control-ui/e2e/registry-install.spec.ts""control-ui/components/__tests__/RegistryInstallModal.test.tsx""control-ui/components/__tests__/RegistryCatalog.test.tsx""scripts/minikube/build-images.sh""scripts/bootstrap-cluster.sh"- "scripts/e2e/e2e-wrc-hcc-contracts.sh"+ "scripts/e2e""docs/deploy/workflow-recipes-guide.md"- "workflow-recipes/samples/simple-nginx.yaml"+ "workflow-recipes/samples""workflow-recipes/src""tests/e2e/integration/control-api-k8s.test.ts""tests/e2e/playwright/control-ui/recipes.spec.ts"@@ -58,6 +69,19 @@ require_text() {fi}+# The egress proxy Dockerfile must have exactly one FROM, equal to the fixed+# image pinned by its multi-arch index digest.+require_single_from() {+ local path="$1"+ local expected="$2"+ local from_lines+ from_lines="$(grep -E '^[[:space:]]*FROM[[:space:]]' "$PROJECT_DIR/$path" || true)"+ if [ "$from_lines" != "$expected" ]; then+ echo "ERROR: $path must have exactly one FROM line, '$expected'; found: ${from_lines:-<none>}" >&2+ return 1+ fi+}+scan_forbidden_nginx_refs() {cd "$PROJECT_DIR"if command -v rg >/dev/null 2>&1; then@@ -93,10 +117,11 @@ require_text "deploy/base/control-plane/control-api.yaml" "$EGRESS_PROXY_IMAGE"require_text "deploy/base/control-plane/host-context-controller.yaml" "$EGRESS_PROXY_IMAGE" || failed=1require_text "host-context-controller/src/config.ts" "$EGRESS_PROXY_IMAGE" || failed=1require_text "control-api/src/routes/admin/registry.ts" "$EGRESS_PROXY_IMAGE" || failed=1-require_text "nginx-egress-proxy/Dockerfile" "FROM nginx:1.30.1-alpine" || failed=1+require_text "control-api/src/routes/admin/remoteMcp.ts" "$EGRESS_PROXY_IMAGE" || failed=1+require_single_from "nginx-egress-proxy/Dockerfile" "FROM ${FIXED_NGINX_IMAGE}@${FIXED_NGINX_IMAGE_DIGEST}" || failed=1if [ "$failed" -ne 0 ]; thenexit 1fi-echo "OK -- platform NGINX images use fixed CVE-2026-42945 baseline"+echo "OK -- platform NGINX images use fixed ${FIXED_NGINX_IMAGE} security baseline"diff --git a/tests/e2e/integration/control-api-k8s.test.ts b/tests/e2e/integration/control-api-k8s.test.tsindex f8c24a47b..264581eb3 100644--- a/tests/e2e/integration/control-api-k8s.test.ts+++ b/tests/e2e/integration/control-api-k8s.test.ts@@ -106,7 +106,7 @@ const RECIPES_BASE = `${CONTROL_API_URL}/api/v1/admin/recipes`const VALID_RECIPE_BODY = {metadata: { name: SMOKE_RECIPE_NAME },spec: {- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},}@@ -154,7 +154,7 @@ describe('control-api — WorkflowRecipe smoke: full lifecycle', () => {const workloads = Array.from({ length: 26 }, (_, index) => ({id: `worker-${index + 1}`,type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',}))const { status, data } = await postJson<{@@ -190,7 +190,7 @@ describe('control-api — WorkflowRecipe smoke: full lifecycle', () => {{metadata: { name: 'integration-too-many-ui-internal-egress' },spec: {- workloads: [{ id: 'api', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'api', type: 'deployment', image: 'nginx:1.30.6-alpine' }],ui: {workloadRef: 'api',port: 8080,@@ -257,7 +257,7 @@ describe('control-api — WorkflowRecipe smoke: full lifecycle', () => {if (!controlApiUp || !adminToken) returnconst updatedBody = {spec: {- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},}const { status } = await putJson(diff --git a/tests/e2e/package-lock.json b/tests/e2e/package-lock.jsonindex d1d65bd31..d2c640f40 100644--- a/tests/e2e/package-lock.json+++ b/tests/e2e/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-e2e-tests",- "version": "0.1.103",+ "version": "0.1.104","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-e2e-tests",- "version": "0.1.103",+ "version": "0.1.104","devDependencies": {"@clerum/llm-provider-attempt-contract": "file:../../packages/llm-provider-attempt-contract","@types/jsonwebtoken": "^9.0.10",diff --git a/tests/e2e/package.json b/tests/e2e/package.jsonindex 21a6a94bd..ae5fba664 100644--- a/tests/e2e/package.json+++ b/tests/e2e/package.json@@ -1,6 +1,6 @@{"name": "clerum-e2e-tests",- "version": "0.1.103",+ "version": "0.1.104","private": true,"type": "module","scripts": {diff --git a/tests/e2e/playwright/control-ui/recipe-scope-copy.spec.ts b/tests/e2e/playwright/control-ui/recipe-scope-copy.spec.tsindex 4048b4b93..f192ed17c 100644--- a/tests/e2e/playwright/control-ui/recipe-scope-copy.spec.ts+++ b/tests/e2e/playwright/control-ui/recipe-scope-copy.spec.ts@@ -33,7 +33,7 @@ function agenticManifestWithoutOptIn(): string {metadata: { name: AGENTIC_RECIPE_NAME },spec: {contextRef: CONTEXT_NAME,- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],steps: [{id: 'run',@@ -113,7 +113,7 @@ test.describe('Control UI — Recipe editor — connector scope copy', () => {spec: {contextRef: CONTEXT_NAME,security: { allowContextRef: true },- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],steps: [{id: 'run',diff --git a/tests/e2e/playwright/control-ui/recipes.spec.ts b/tests/e2e/playwright/control-ui/recipes.spec.tsindex f84306473..86e6e9b84 100644--- a/tests/e2e/playwright/control-ui/recipes.spec.ts+++ b/tests/e2e/playwright/control-ui/recipes.spec.ts@@ -24,7 +24,7 @@ const VALID_RECIPE_JSON = JSON.stringify(kind: 'WorkflowRecipe',metadata: { name: TEST_RECIPE_NAME },spec: {- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},},null,@@ -380,7 +380,7 @@ test.describe('Control UI — Workflow Recipes — install and uninstall', () =>kind: 'WorkflowRecipe',metadata: { name: TEST_RECIPE_NAME },spec: {- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},},null,@@ -529,7 +529,7 @@ test.describe('Control UI — Workflow Recipes — status modal structure', () =metadata: { name: MODAL_RECIPE },spec: {contextRef: 'context1',- workloads: [{ id: 'srv', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 80 }],+ workloads: [{ id: 'srv', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 80 }],},},null,diff --git a/tests/e2e/playwright/control-ui/workflow-recipe-egressbindings.spec.ts b/tests/e2e/playwright/control-ui/workflow-recipe-egressbindings.spec.tsindex b3d964368..dac7645d1 100644--- a/tests/e2e/playwright/control-ui/workflow-recipe-egressbindings.spec.ts+++ b/tests/e2e/playwright/control-ui/workflow-recipe-egressbindings.spec.ts@@ -52,7 +52,7 @@ function recipeWithEgress(name: string, egressBindings: unknown[]) {{id: 'worker',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',egressBindings,},],@@ -78,7 +78,7 @@ function internalSiblingRecipe(name: string, dns = 'db.sandbox-recipes.svc.clust{id: 'api',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,env: [{ name: 'PG_HOST', value: '{{db:host}}' },@@ -89,7 +89,7 @@ function internalSiblingRecipe(name: string, dns = 'db.sandbox-recipes.svc.clust{id: 'db',type: 'statefulset',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 5432,},],@@ -115,7 +115,7 @@ function helpdeskPluginRecipe({id: 'chat-api',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,env: [{ name: 'PG_HOST', value: '{{helpdesk-db:host}}' },@@ -126,13 +126,13 @@ function helpdeskPluginRecipe({id: 'helpdesk-db',type: 'statefulset',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 5432,},{id: 'surveyor',type: 'cronjob',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',schedule: '0 */6 * * *',command: ['sh', '-c'],args: ['echo surveyor'],@@ -145,7 +145,7 @@ function helpdeskPluginRecipe({id: 'ui',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,env: [{ name: 'API_HOST', value: '{{chat-api:host}}' },@@ -181,25 +181,25 @@ function salesCrmLikeRecipe(name: string) {{id: 'api',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,egressBindings: [{ dns: 'api.salesforce.com', port: 443, protocol: 'TCP' }],},{id: 'ui',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,},{id: 'db',type: 'statefulset',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',},{id: 'followup',type: 'cronjob',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',schedule: '*/15 * * * *',command: ['sh', '-c'],args: ['echo followup'],@@ -208,7 +208,7 @@ function salesCrmLikeRecipe(name: string) {{id: 'inbox-poll',type: 'cronjob',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',schedule: '*/10 * * * *',command: ['sh', '-c'],args: ['echo inbox-poll'],@@ -229,7 +229,7 @@ function transportPublicWebRecipe(name: string) {{id: 'web-search',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 3000,transport: { type: 'streamableHttp' },egressBindings: [{ egressClass: 'public-web' }],diff --git a/tests/e2e/playwright/package-lock.json b/tests/e2e/playwright/package-lock.jsonindex 3e4214b49..e93c98a60 100644--- a/tests/e2e/playwright/package-lock.json+++ b/tests/e2e/playwright/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-playwright-tests",- "version": "0.1.83",+ "version": "0.1.84","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-playwright-tests",- "version": "0.1.83",+ "version": "0.1.84","devDependencies": {"@playwright/test": "^1.50.0","@types/node": "^22.0.0",diff --git a/tests/e2e/playwright/package.json b/tests/e2e/playwright/package.jsonindex d3295d64a..5117d976a 100644--- a/tests/e2e/playwright/package.json+++ b/tests/e2e/playwright/package.json@@ -1,6 +1,6 @@{"name": "clerum-playwright-tests",- "version": "0.1.83",+ "version": "0.1.84","private": true,"description": "Playwright E2E tests for Control UI and Desktop App","scripts": {diff --git a/workflow-recipes/package-lock.json b/workflow-recipes/package-lock.jsonindex 626cc2cf8..b4e517753 100644--- a/workflow-recipes/package-lock.json+++ b/workflow-recipes/package-lock.json@@ -1,12 +1,12 @@{"name": "workload-recipes-controller",- "version": "0.1.477",+ "version": "0.1.478","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workload-recipes-controller",- "version": "0.1.477",+ "version": "0.1.478","license": "SEE LICENSE IN LICENSE","dependencies": {"@aws-sdk/client-s3": "^3.1009.0",diff --git a/workflow-recipes/package.json b/workflow-recipes/package.jsonindex 0e00f96f1..129ed48c0 100644--- a/workflow-recipes/package.json+++ b/workflow-recipes/package.json@@ -1,6 +1,6 @@{"name": "workload-recipes-controller",- "version": "0.1.477",+ "version": "0.1.478","description": "Workload Recipes Controller (WRC) - WorkloadRecipe lifecycle management and MCP server interface","main": "dist/main.js","engines": {diff --git a/workflow-recipes/samples/sandbox-ui-hello.yaml b/workflow-recipes/samples/sandbox-ui-hello.yamlindex c76f48c0c..84604bc02 100644--- a/workflow-recipes/samples/sandbox-ui-hello.yaml+++ b/workflow-recipes/samples/sandbox-ui-hello.yaml@@ -16,7 +16,7 @@ spec:# nginx-unprivileged listens on 8080 and runs as UID 101, which# satisfies the sandbox-ui namespace's runAsNonRoot floor without# any per-workload security override.- image: nginxinc/nginx-unprivileged:1.27-alpine+ image: nginxinc/nginx-unprivileged:1.30.6-alpineport: 8080healthCheck:type: httpdiff --git a/workflow-recipes/samples/sandbox-ui-oauth-hello.yaml b/workflow-recipes/samples/sandbox-ui-oauth-hello.yamlindex 8404f29c2..d07d6d761 100644--- a/workflow-recipes/samples/sandbox-ui-oauth-hello.yaml+++ b/workflow-recipes/samples/sandbox-ui-oauth-hello.yaml@@ -47,7 +47,7 @@ spec:# The recipe uses an external app.js because rpc-proxy's CSP for# view/* is `script-src 'self'` (no `'unsafe-inline'`); inline# <script> blocks would be refused by the WebContentsView.- image: nginxinc/nginx-unprivileged:1.27-alpine+ image: nginxinc/nginx-unprivileged:1.30.6-alpineport: 8080command:- /bin/shdiff --git a/workflow-recipes/samples/simple-nginx.yaml b/workflow-recipes/samples/simple-nginx.yamlindex e76649369..f1a095883 100644--- a/workflow-recipes/samples/simple-nginx.yaml+++ b/workflow-recipes/samples/simple-nginx.yaml@@ -8,7 +8,7 @@ spec:workloads:- id: nginxtype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 80replicas: 1resources:diff --git a/workflow-recipes/samples/webhook-hello.yaml b/workflow-recipes/samples/webhook-hello.yamlindex 41ee514ff..0c985f6c2 100644--- a/workflow-recipes/samples/webhook-hello.yaml+++ b/workflow-recipes/samples/webhook-hello.yaml@@ -14,7 +14,7 @@ spec:workloads:- id: handlertype: deployment- image: nginxinc/nginx-unprivileged:1.27-alpine+ image: nginxinc/nginx-unprivileged:1.30.6-alpineport: 8080command: ['/bin/sh', '-c']args:diff --git a/workflow-recipes/src/mcp/handlers.test.ts b/workflow-recipes/src/mcp/handlers.test.tsindex d6a377c7e..5bc285da4 100644--- a/workflow-recipes/src/mcp/handlers.test.ts+++ b/workflow-recipes/src/mcp/handlers.test.ts@@ -39,7 +39,7 @@ function makeRecipe(name: string, phase?: string, contextRef?: string): Workflowkind: 'WorkflowRecipe',metadata: { name, namespace: 'mcp-server' },spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],contextRef,},status: phase@@ -141,7 +141,7 @@ describe('handleValidateRecipe', () => {it('returns {valid: true} for valid recipe (4.10d)', () => {const validRecipe = JSON.stringify({spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},})const result = handleValidateRecipe({ recipe_yaml: validRecipe })diff --git a/workflow-recipes/src/reconciler/includeWhenFilter.test.ts b/workflow-recipes/src/reconciler/includeWhenFilter.test.tsindex 35c6aa52e..7f7902ec8 100644--- a/workflow-recipes/src/reconciler/includeWhenFilter.test.ts+++ b/workflow-recipes/src/reconciler/includeWhenFilter.test.ts@@ -5,7 +5,7 @@ import { filterByIncludeWhen } from './includeWhenFilter'function makeWorkload(overrides: Partial<WorkloadDef> & { id: string }): WorkloadDef {return {type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',...overrides,} as WorkloadDef}diff --git a/workflow-recipes/src/reconciler/mcpDelegation.test.ts b/workflow-recipes/src/reconciler/mcpDelegation.test.tsindex c31493f03..a9b97661a 100644--- a/workflow-recipes/src/reconciler/mcpDelegation.test.ts+++ b/workflow-recipes/src/reconciler/mcpDelegation.test.ts@@ -223,7 +223,7 @@ describe('buildMcpServerManifest', () => {it('6.3a — returns null for non-transport workload', () => {const recipe = makeRecipe({spec: {- workloads: [{ id: 'nginx', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 80 }],+ workloads: [{ id: 'nginx', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 80 }],},})const manifest = buildMcpServerManifest(recipe.spec.workloads![0], recipe, 'mcp-server')@@ -577,7 +577,7 @@ describe('buildTransportService', () => {it('6.3b — returns null for non-transport workload', () => {const recipe = makeRecipe({spec: {- workloads: [{ id: 'nginx', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 80 }],+ workloads: [{ id: 'nginx', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 80 }],},})const svc = buildTransportService(recipe.spec.workloads![0], recipe, 'mcp-server')diff --git a/workflow-recipes/src/reconciler/networkPolicyConvergence.property.test.ts b/workflow-recipes/src/reconciler/networkPolicyConvergence.property.test.tsindex c511ffe9d..b0b32c835 100644--- a/workflow-recipes/src/reconciler/networkPolicyConvergence.property.test.ts+++ b/workflow-recipes/src/reconciler/networkPolicyConvergence.property.test.ts@@ -43,7 +43,7 @@ function generatedPolicies(input: fc.ArbitraryValue<typeof scenario>) {kind: 'WorkflowRecipe',metadata: { name: `recipe-${input.id}`, namespace: 'sandbox-recipes', uid: `uid-${input.id}` },spec: {- workloads: [{ id: 'backend', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'backend', type: 'deployment', image: 'nginx:1.30.6-alpine' }],ui: {workloadRef: 'backend',port: ports[0],diff --git a/workflow-recipes/src/reconciler/policyEnforcer.test.ts b/workflow-recipes/src/reconciler/policyEnforcer.test.tsindex 3b351e1bd..57776a1c5 100644--- a/workflow-recipes/src/reconciler/policyEnforcer.test.ts+++ b/workflow-recipes/src/reconciler/policyEnforcer.test.ts@@ -8,7 +8,7 @@ function makeRecipe(overrides: Partial<WorkflowRecipeCRD['spec']> = {}): Workflokind: 'WorkflowRecipe',metadata: { name: 'test-recipe', namespace: 'sandbox-recipes' },spec: {- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 80 }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 80 }],...overrides,},}@@ -49,7 +49,7 @@ describe('policyEnforcer.enforcePolicy', () => {it('rejects when workload count exceeds limit', () => {const recipe = makeRecipe({workloads: [- { id: 'a', type: 'deployment', image: 'nginx:1.30.1-alpine' },+ { id: 'a', type: 'deployment', image: 'nginx:1.30.6-alpine' },{ id: 'b', type: 'deployment', image: 'redis:latest' },{ id: 'c', type: 'deployment', image: 'postgres:latest' },],@@ -66,7 +66,7 @@ describe('policyEnforcer.enforcePolicy', () => {it('passes when replicas are within limit', () => {const recipe = makeRecipe({- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine', replicas: 3 }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine', replicas: 3 }],})const policy = makePolicy({ governance: { maxReplicasPerWorkload: 5 } })expect(enforcePolicy(recipe, [policy])).toEqual([])@@ -74,7 +74,7 @@ describe('policyEnforcer.enforcePolicy', () => {it('rejects when replicas exceed limit', () => {const recipe = makeRecipe({- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine', replicas: 10 }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine', replicas: 10 }],})const policy = makePolicy({ governance: { maxReplicasPerWorkload: 5 } })const result = enforcePolicy(recipe, [policy])@@ -245,7 +245,7 @@ describe('policyEnforcer.enforcePolicy', () => {const recipe = makeRecipe({workloads: [{ id: 'a', type: 'daemonset', image: 'evil:latest' },- { id: 'b', type: 'job', image: 'nginx:1.30.1-alpine' },+ { id: 'b', type: 'job', image: 'nginx:1.30.6-alpine' },],security: { isolationLevel: 'minimal' },})@@ -264,7 +264,7 @@ describe('policyEnforcer.enforcePolicy', () => {it('accumulates violations from multiple policies', () => {const recipe = makeRecipe({- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine', replicas: 10 }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine', replicas: 10 }],})const policy1 = makePolicy({ governance: { maxReplicasPerWorkload: 5 } })const policy2: WorkflowRecipePolicyCRD = {diff --git a/workflow-recipes/src/reconciler/reconciler.test.ts b/workflow-recipes/src/reconciler/reconciler.test.tsindex 6efe62a07..d3f610da4 100644--- a/workflow-recipes/src/reconciler/reconciler.test.ts+++ b/workflow-recipes/src/reconciler/reconciler.test.ts@@ -201,7 +201,7 @@ function makeRecipe(overrides?: Partial<WorkflowRecipeCRD>): WorkflowRecipeCRD {kind: 'WorkflowRecipe',metadata: { name: 'test-recipe', namespace: 'sandbox-recipes', uid: 'uid-123' },spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],},status: { phase: 'approved' },...overrides,@@ -1447,7 +1447,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {agent: { provider: 'zai', model: 'glm-4.7' },- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},})@@ -1502,7 +1502,7 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {agent: { provider: 'zai', model: 'glm-4.7' },- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},})@@ -1547,7 +1547,7 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {agent: { provider: 'zai', model: 'glm-4.7' },- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},})@@ -1583,7 +1583,7 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {agent: { provider: 'zai', model: 'glm-4.7' },- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},status: { phase: 'active', ...(conditions ? { conditions } : {}) },@@ -1843,7 +1843,7 @@ describe('WorkflowRecipeReconciler', () => {).workflowReconciler.cleanupPluginWorkloadSdk = cleanupPluginWorkloadSdkconst recipe = makeRecipe({spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],},status: {phase: 'active',@@ -1894,7 +1894,7 @@ describe('WorkflowRecipeReconciler', () => {const capabilityRemovedRecipe = (phase: string, conditions: unknown[]) =>makeRecipe({spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],},status: {phase,@@ -1933,7 +1933,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],...(history === 'steps-removed' ? { steps: [] } : {}),},@@ -2033,7 +2033,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {agent: { provider: 'zai', model: 'glm-4.7' },- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},})@@ -2154,7 +2154,7 @@ describe('WorkflowRecipeReconciler', () => {pluginWorkloadSdk: { state: 'validated', promptBridge: true, clientNotifications: false },},spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},})@@ -2262,7 +2262,7 @@ describe('WorkflowRecipeReconciler', () => {conditions: [ownershipConflict],},spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},} as Partial<WorkflowRecipeCRD>)@@ -3538,7 +3538,7 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 9090 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 9090 },],},})@@ -3577,7 +3577,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],steps: [{ id: 'run', run: snippetRun() }],},@@ -3609,7 +3609,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],resources: [res],},@@ -3638,7 +3638,7 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],resources: [res],},@@ -3709,7 +3709,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],resources: [res],},@@ -3750,7 +3750,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],resources: [res],},@@ -3813,7 +3813,7 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],resources: [res],},@@ -5099,7 +5099,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {agent: { provider: 'zai', model: 'glm-4.7' },- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},status: {@@ -5600,8 +5600,8 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },- { id: 'api', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },+ { id: 'api', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],},})@@ -5625,9 +5625,9 @@ describe('WorkflowRecipeReconciler', () => {makeRecipe({spec: {workloads: [- { id: 'ui', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },- { id: 'api', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },- { id: 'cache', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'ui', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },+ { id: 'api', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },+ { id: 'cache', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],ui: {workloadRef: 'ui',@@ -8077,7 +8077,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({metadata: { name: 'test-recipe', namespace: 'sandbox-recipes', uid: 'uid-sdk-delete' },spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],...(workflow ? { steps: [{ id: 'task', instruction: 'run' }] } : {}),},status: {@@ -14497,7 +14497,7 @@ describe('WorkflowRecipeReconciler', () => {spec: {dryRun: true,workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },{ id: 'worker', type: 'deployment', image: 'worker:latest' },],},@@ -14514,7 +14514,7 @@ describe('WorkflowRecipeReconciler', () => {const recipe = makeRecipe({spec: {dryRun: true,- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],resources: [{ id: 'data', type: 'pvc', size: '10Gi' }],},})@@ -14797,7 +14797,7 @@ describe('WorkflowRecipeReconciler', () => {metadata: { name: 'simple-recipe', namespace: 'sandbox-recipes', uid: 'uid-nw' },spec: {workloads: [- { id: 'web-server', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 80 },+ { id: 'web-server', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 80 },],},status: { phase: 'approved' },@@ -15671,7 +15671,7 @@ describe('WorkflowRecipeReconciler', () => {{id: 'app',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,envSecret: {name: 'app-creds',@@ -16006,7 +16006,7 @@ describe('WorkflowRecipeReconciler', () => {{id: 'app',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,envSecret: { name: 'shared-name', keys: [{ secretKey: 'k', envVar: 'STOLEN' }] },},@@ -16075,7 +16075,7 @@ describe('WorkflowRecipeReconciler', () => {{id: 'app',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,envSecret: {name: 'app-creds',@@ -16116,7 +16116,7 @@ describe('WorkflowRecipeReconciler', () => {{id: workloadId,type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,oauthClientRefs: refs,...(overrides?.transport@@ -16673,7 +16673,7 @@ describe('WorkflowRecipeReconciler', () => {},spec: {workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],oauthClients: [{@@ -16889,7 +16889,7 @@ describe('WorkflowRecipeReconciler', () => {generation: 4,},spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],steps: [{ id: 'run', run: snippetRun() }],},})@@ -18039,7 +18039,7 @@ describe('WorkflowRecipeReconciler', () => {function recipeWithBackgroundAccess(): WorkflowRecipeCRD {return makeRecipe({spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],oauthClients: [{id: 'gmail',@@ -18447,7 +18447,7 @@ describe('WorkflowRecipeReconciler', () => {spec: {agent: { provider: 'zai', model: 'glm-4.7' },steps: [{ id: 'research', instruction: 'search' }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],},status: {phase: 'failed',@@ -18485,7 +18485,7 @@ describe('WorkflowRecipeReconciler', () => {{id: 'app',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,egressBindings: [{ dns: 'api.example.com', port: 443 }],},@@ -18616,7 +18616,7 @@ describe('WorkflowRecipeReconciler', () => {},spec: {steps: [{ id: 'step-1', run: snippetRun() }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: {clientNotifications: { allowedEventTypes: ['workflow.completed'] },allowedCallers: ['app'],@@ -18723,7 +18723,7 @@ describe('WorkflowRecipeReconciler', () => {},spec: {steps: [{ id: 'step-1', run: snippetRun() }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},status: {@@ -18779,7 +18779,7 @@ describe('WorkflowRecipeReconciler', () => {const awaitingTrigger = makeRecipe({spec: {steps: [{ id: 'step-1', instruction: 'run' }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],},status: { phase: 'active', message: CN_MESSAGE },})@@ -18796,7 +18796,7 @@ describe('WorkflowRecipeReconciler', () => {},spec: {steps: [{ id: 'step-1', run: snippetRun() }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],},status: { phase: 'active', message: CN_MESSAGE },})@@ -18859,7 +18859,7 @@ describe('WorkflowRecipeReconciler', () => {spec: {agent: { provider: 'zai', model: 'glm-4.7' },workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},@@ -18909,7 +18909,7 @@ describe('WorkflowRecipeReconciler', () => {spec: {agent: { provider: 'zai', model: 'glm-4.7' },workloads: [- { id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 },+ { id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 },],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},@@ -18939,7 +18939,7 @@ describe('WorkflowRecipeReconciler', () => {// recomputes instead of reusing, the marker never reaches the patch body.const recipe = makeRecipe({spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],pluginWorkloadSdk: { promptBridge: {}, allowedCallers: ['app'] },},status: { phase: 'active' },diff --git a/workflow-recipes/src/reconciler/resourceBuilder.test.ts b/workflow-recipes/src/reconciler/resourceBuilder.test.tsindex 719a8bfd3..0d9cd9f6b 100644--- a/workflow-recipes/src/reconciler/resourceBuilder.test.ts+++ b/workflow-recipes/src/reconciler/resourceBuilder.test.ts@@ -56,7 +56,7 @@ function makeRecipe(overrides?: Partial<WorkflowRecipeCRD['metadata']>): Workflo...overrides,},spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},}}@@ -67,7 +67,7 @@ describe('buildDeployment', () => {const workload: DeploymentDef = {id: 'nginx',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,replicas: 3,}@@ -78,7 +78,7 @@ describe('buildDeployment', () => {expect(dep.kind).toBe('Deployment')expect(dep.metadata?.name).toBe('nginx')expect(dep.spec?.replicas).toBe(3)- expect(dep.spec?.template.spec?.containers[0].image).toBe('nginx:1.30.1-alpine')+ expect(dep.spec?.template.spec?.containers[0].image).toBe('nginx:1.30.6-alpine')})it('sets standard labels (3.1b)', () => {@@ -1007,7 +1007,7 @@ describe('buildDeployment - imagePullSecrets', () => {const workload: DeploymentDef = {id: 'test-deployment',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',replicas: 1,}const recipe = makeRecipe()@@ -1020,7 +1020,7 @@ describe('buildDeployment - imagePullSecrets', () => {const workload: DeploymentDef = {id: 'test-deployment',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',imagePullSecrets: [],replicas: 1,}@@ -1403,7 +1403,7 @@ describe('clerum.io/mcpserver label for transport workloads', () => {const w: DeploymentDef = {id: 'nginx',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,}const dep = buildDeployment(w, makeRecipe())@@ -1502,7 +1502,7 @@ describe('resolveWorkloadResourceName', () => {kind: 'WorkflowRecipe',metadata: { name: 'simple-recipe', namespace: 'sandbox-recipes', uid: 'uid-plain' },spec: {- workloads: [{ id: 'web-server', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 80 }],+ workloads: [{ id: 'web-server', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 80 }],},}@@ -1694,7 +1694,7 @@ describe('sandbox-ui label injection', () => {const w: DeploymentDef = {id: 'app',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',port: 8080,}const dep = buildDeployment(w, makeRecipe())diff --git a/workflow-recipes/src/reconciler/specHash.test.ts b/workflow-recipes/src/reconciler/specHash.test.tsindex 53d7bc627..77d19e6bc 100644--- a/workflow-recipes/src/reconciler/specHash.test.ts+++ b/workflow-recipes/src/reconciler/specHash.test.ts@@ -48,8 +48,12 @@ describe('computeSpecHash', () => {})it('changes when the spec changes', () => {- const a = { spec: { replicas: 1, template: { spec: { containers: [{ image: 'nginx:1' }] } } } }- const b = { spec: { replicas: 1, template: { spec: { containers: [{ image: 'nginx:2' }] } } } }+ const a = {+ spec: { replicas: 1, template: { spec: { containers: [{ image: 'nginx:1.30.6-alpine' }] } } },+ }+ const b = {+ spec: { replicas: 1, template: { spec: { containers: [{ image: 'nginx:1.31.8-alpine' }] } } },+ }expect(computeSpecHash(a)).not.toBe(computeSpecHash(b))})diff --git a/workflow-recipes/src/reconciler/uiEgressMetadata.test.ts b/workflow-recipes/src/reconciler/uiEgressMetadata.test.tsindex bbd7f74a2..2e7f071d8 100644--- a/workflow-recipes/src/reconciler/uiEgressMetadata.test.ts+++ b/workflow-recipes/src/reconciler/uiEgressMetadata.test.ts@@ -15,7 +15,7 @@ function uiPolicyFixture() {kind: 'WorkflowRecipe',metadata: { name: 'ui-metadata', namespace: config.sandboxNamespace, uid: 'recipe-uid' },spec: {- workloads: [{ id: 'backend', type: 'deployment', image: 'nginx:1.30.1-alpine', port: 8080 }],+ workloads: [{ id: 'backend', type: 'deployment', image: 'nginx:1.30.6-alpine', port: 8080 }],ui: {workloadRef: 'backend',port: 8080,diff --git a/workflow-recipes/src/types.test.ts b/workflow-recipes/src/types.test.tsindex d30760cd1..c30a61d35 100644--- a/workflow-recipes/src/types.test.ts+++ b/workflow-recipes/src/types.test.ts@@ -76,7 +76,7 @@ describe('WorkflowRecipeCRD interface (Risk 1.2)', () => {{id: 'nginx',type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',},],},diff --git a/workflow-recipes/src/workflow/workflowLimits.test.ts b/workflow-recipes/src/workflow/workflowLimits.test.tsindex cfde424fc..52095e3d4 100644--- a/workflow-recipes/src/workflow/workflowLimits.test.ts+++ b/workflow-recipes/src/workflow/workflowLimits.test.ts@@ -21,7 +21,7 @@ describe('validateWorkflowRecipeLimits egress limits', () => {workloads: Array.from({ length: 26 }, (_, index) => ({id: `service-${index}`,type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',})),} as never,configdiff --git a/workflow-recipes/tests/e2e/admission-name-budget.test.ts b/workflow-recipes/tests/e2e/admission-name-budget.test.tsindex 82cb9b46f..30325637b 100644--- a/workflow-recipes/tests/e2e/admission-name-budget.test.ts+++ b/workflow-recipes/tests/e2e/admission-name-budget.test.ts@@ -67,7 +67,7 @@ spec:type: RuntimeDefaultcontainers:- name: app- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpinesecurityContext:allowPrivilegeEscalation: falsecapabilities:@@ -97,7 +97,7 @@ spec:restartPolicy: OnFailurecontainers:- name: app- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineEOF`)).toThrow(/52 characters|no more than 52|denied|invalid/i)})diff --git a/workflow-recipes/tests/e2e/admission.test.ts b/workflow-recipes/tests/e2e/admission.test.tsindex bf82ee43f..e9ada1217 100644--- a/workflow-recipes/tests/e2e/admission.test.ts+++ b/workflow-recipes/tests/e2e/admission.test.ts@@ -99,7 +99,7 @@ spec:workloads:- id: apitype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 8080security:isolationLevel: strictdiff --git a/workflow-recipes/tests/e2e/hostile-workflowrecipe.test.ts b/workflow-recipes/tests/e2e/hostile-workflowrecipe.test.tsindex 6020598a6..f3b7759e2 100644--- a/workflow-recipes/tests/e2e/hostile-workflowrecipe.test.ts+++ b/workflow-recipes/tests/e2e/hostile-workflowrecipe.test.ts@@ -54,7 +54,7 @@ spec:workloads:- id: hostile-agenttype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 3000transport:type: streamableHttp@@ -85,7 +85,7 @@ spec:workloads:- id: hostile-agenttype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 3000transport:type: streamableHttp@@ -127,7 +127,7 @@ spec:workloads:- id: downgradedtype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 8080security:isolationLevel: minimaldiff --git a/workflow-recipes/tests/e2e/mcp-tools.test.ts b/workflow-recipes/tests/e2e/mcp-tools.test.tsindex dbde37d64..fae2fe463 100644--- a/workflow-recipes/tests/e2e/mcp-tools.test.ts+++ b/workflow-recipes/tests/e2e/mcp-tools.test.ts@@ -241,7 +241,7 @@ describe('MCP Tools E2E', () => {it('E7.8 — validate_recipe returns valid for correct recipe', async () => {const validRecipe = JSON.stringify({spec: {- workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'web', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},})const result = await mcpCallTool(portForward!.url, 'validate_recipe', {diff --git a/workflow-recipes/tests/e2e/package-lock.json b/workflow-recipes/tests/e2e/package-lock.jsonindex 885666681..82bda8b46 100644--- a/workflow-recipes/tests/e2e/package-lock.json+++ b/workflow-recipes/tests/e2e/package-lock.json@@ -1,12 +1,12 @@{"name": "workflow-recipes-e2e",- "version": "0.1.19",+ "version": "0.1.20","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "workflow-recipes-e2e",- "version": "0.1.19",+ "version": "0.1.20","devDependencies": {"@types/node": "^20.10.0","typescript": "^5.3.0",diff --git a/workflow-recipes/tests/e2e/package.json b/workflow-recipes/tests/e2e/package.jsonindex 1f91e6533..f9d836dc8 100644--- a/workflow-recipes/tests/e2e/package.json+++ b/workflow-recipes/tests/e2e/package.json@@ -1,6 +1,6 @@{"name": "workflow-recipes-e2e",- "version": "0.1.19",+ "version": "0.1.20","private": true,"description": "E2E tests for Workload Recipes Controller (minikube)","scripts": {diff --git a/workflow-recipes/tests/e2e/policy.test.ts b/workflow-recipes/tests/e2e/policy.test.tsindex a7de64854..c6c32b07e 100644--- a/workflow-recipes/tests/e2e/policy.test.ts+++ b/workflow-recipes/tests/e2e/policy.test.ts@@ -99,11 +99,11 @@ spec:workloads:- id: webtype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 80- id: apitype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpineport: 8080security:isolationLevel: minimaldiff --git a/workflow-recipes/tests/fixtures/workflow/invalid-scheduling-no-steps.yaml b/workflow-recipes/tests/fixtures/workflow/invalid-scheduling-no-steps.yamlindex 773e88fee..2c4ad6a63 100644--- a/workflow-recipes/tests/fixtures/workflow/invalid-scheduling-no-steps.yaml+++ b/workflow-recipes/tests/fixtures/workflow/invalid-scheduling-no-steps.yaml@@ -7,6 +7,6 @@ spec:workloads:- id: apptype: deployment- image: nginx:1.30.1-alpine+ image: nginx:1.30.6-alpinescheduling:cron: '0 9 * * *'diff --git a/workflow-recipes/tests/unit/workflow/workflowLimits.test.ts b/workflow-recipes/tests/unit/workflow/workflowLimits.test.tsindex 4074d50fb..73dd423e4 100644--- a/workflow-recipes/tests/unit/workflow/workflowLimits.test.ts+++ b/workflow-recipes/tests/unit/workflow/workflowLimits.test.ts@@ -47,7 +47,7 @@ describe('workflow runtime limit validation', () => {workloads: Array.from({ length: 26 }, (_, index) => ({id: `service-${index}`,type: 'deployment',- image: 'nginx:1.30.1-alpine',+ image: 'nginx:1.30.6-alpine',})),},DEFAULT_LIMITSdiff --git a/workflow-recipes/tests/unit/workflow/workflowReconcilerBifurcation.test.ts b/workflow-recipes/tests/unit/workflow/workflowReconcilerBifurcation.test.tsindex 049796f67..cbd8e5993 100644--- a/workflow-recipes/tests/unit/workflow/workflowReconcilerBifurcation.test.ts+++ b/workflow-recipes/tests/unit/workflow/workflowReconcilerBifurcation.test.ts@@ -169,7 +169,7 @@ describe('Workflow Reconciler Bifurcation', () => {kind: 'WorkflowRecipe',metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'approved' },}@@ -199,7 +199,7 @@ describe('Workflow Reconciler Bifurcation', () => {metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {resources: [{ id: 'data', type: 'pvc', size: '1Gi' }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'approved' },}@@ -234,7 +234,7 @@ describe('Workflow Reconciler Bifurcation', () => {metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {resources: [{ id: 'data', type: 'pvc', size: '1Gi' }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'approved' },}@@ -266,7 +266,7 @@ describe('Workflow Reconciler Bifurcation', () => {metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {resources: [{ id: 'data', type: 'pvc', size: '1Gi' }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'approved' },}@@ -290,7 +290,7 @@ describe('Workflow Reconciler Bifurcation', () => {metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {resources: [{ id: 'data', type: 'pvc', size: '1Gi' }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'active' }, // legacy phase → adoption eligible}@@ -315,7 +315,7 @@ describe('Workflow Reconciler Bifurcation', () => {metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {resources: [{ id: 'data', type: 'pvc', size: '1Gi' }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'active' },}@@ -349,7 +349,7 @@ describe('Workflow Reconciler Bifurcation', () => {metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {resources: [{ id: 'creds', type: 'secret', data: { k: 'v' } }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'approved' },}@@ -389,7 +389,7 @@ describe('Workflow Reconciler Bifurcation', () => {metadata: { name: 'normal-recipe', namespace: 'sandbox-recipes', uid: 'uid-normal' },spec: {resources: [{ id: 'gen-creds', type: 'secret', generateKeys: ['token'] }],- workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.1-alpine' }],+ workloads: [{ id: 'app', type: 'deployment', image: 'nginx:1.30.6-alpine' }],},status: { phase: 'approved' },}