Repository navigation
fix: move every image to the release with the fewest Critical/High CVEs (2.0.1) - #52
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The cleanup can terminate concurrently claimed active sandboxes and unnecessarily deletes unchanged custom-runtime sandboxes outside the intended Python/Kata pools.
2 open issues
What changed in this PR
Updates Agent Toolkit’s Kubernetes and Docker Compose images to reduce Critical and High vulnerabilities, with upgrade handling for existing deployments and persistent data.
Changes:
- Updates image pins and Kubernetes upgrade logic for Agent Sandbox, KubeRay, OpenShell, and pgvector.
- Enables Compose container recreation and adds observability volume migration.
- Moves OVMS to pre-converted OpenVINO models and refreshes deployment documentation.
| File | Description |
|---|---|
roles/openshell/defaults/main.yaml |
Updates OpenShell versions and upstream locations. |
roles/kuberay/tasks/install.yaml |
Applies CRDs, recreates clusters on image changes, and aligns rayVersion. |
roles/kuberay/defaults/main.yaml |
Updates operator and Ray image defaults. |
roles/agent_sandbox/tasks/install.yaml |
Adds cleanup of warm sandboxes using older runtime images. |
roles/agent_sandbox/defaults/main.yaml |
Updates Agent Sandbox’s default version. |
docs/reference/openshell.md |
Refreshes versions, links, and CLI instructions. |
docs/reference/kuberay.md |
Documents new versions and upgrade behavior. |
docs/reference/backend-connections.md |
Updates Sandbox and OpenShell version references. |
docs/reference/agent-sandbox.md |
Updates SDK pins and changes examples to warm-pool claims. |
docker/scripts/generate-docker-compose.sh |
Selects OVMS 2026.4.1 and rejects non-IR sources. |
docker/README.md |
Documents updated images and OVMS model requirements. |
docker/ovms-model-configs.yaml |
Maps supported models to OpenVINO IR repositories. |
docker/docker-compose.yml |
Updates images, storage settings, and Redis persistence location. |
docker/deploy.sh |
Adds volume migration and enables container recreation. |
config.yaml |
Updates Sandbox and KubeRay operator pins. |
charts/pgvector/values.yaml |
Pins the pgvector image version. |
charts/pgvector/Chart.yaml |
Bumps the chart version for the image pin. |
charts/openshell/values.yaml |
Updates the upstream-location comment only. |
charts/kuberay/values.yaml |
Updates Ray’s image and adds a version override. |
charts/kuberay/templates/raycluster.yaml |
Uses the configurable Ray version. |
charts/kuberay/Chart.yaml |
Updates chart and application versions. |
Review effort: Balanced
| kind: Sandbox | ||
| name: "{{ item.metadata.name }}" | ||
| namespace: "{{ agent_sandbox_namespace }}" | ||
| state: absent |
There was a problem hiding this comment.
This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.
| | selectattr('metadata.ownerReferences.0.kind', 'eq', 'SandboxWarmPool') | ||
| | rejectattr('spec.podTemplate.spec.containers.0.image', 'eq', agent_sandbox_python_runtime_image) |
There was a problem hiding this comment.
This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.
78779c5 to
9d2a5da
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Migration ignores failures to stop ClickHouse and MinIO before modifying their volumes, risking data corruption and disrupted uploads.
5 open issues
Abort volume migration when stopping the old service fails · New Use deletion preconditions to prevent deleting concurrently claimed sandboxes Refresh the KubeRay repository index before resolving the chart version · New Strip the image digest before extracting the Ray version · New Restrict warm-pool cleanup to updated toolkit-managed Python/Kata pools
Review effort: Balanced
| eval "${COMPOSE_CMD} stop clickhouse" >/dev/null 2>&1 || true | ||
| _compose_root_sh clickhouse "${ch_fix}" || die "ClickHouse volume migration failed" | ||
| ok "ClickHouse: volume ready for clickhouse/clickhouse-server" | ||
| fi | ||
| if [[ -n "${mn_need}" ]]; then | ||
| info "MinIO: handing the volume to the Chainguard image user (uid 65532), data is kept..." | ||
| eval "${COMPOSE_CMD} stop minio" >/dev/null 2>&1 || true |
There was a problem hiding this comment.
This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.
| - name: "kuberay | Apply CRDs of operator chart v{{ kuberay_operator_version }}" | ||
| ansible.builtin.shell: | | ||
| set -o pipefail | ||
| helm show crds kuberay/kuberay-operator --version "{{ kuberay_operator_version }}" \ |
There was a problem hiding this comment.
This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.
| name: "{{ kuberay_release_name }}" | ||
| rayImage: "{{ kuberay_ray_image }}" | ||
| # e.g. rayproject/ray:2.60.1-py312 -> 2.60.1: KubeRay needs rayVersion to match the image | ||
| rayVersion: "{{ (kuberay_ray_image.split(':')[-1]).split('-')[0] }}" |
There was a problem hiding this comment.
This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.
9d2a5da to
215caad
Compare
215caad to
62415bf
Compare
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
10 open issues
Forcinguser: \"101:101\"with a named volume commonly breaks first-start on fresh machines… · New Forcinguser: \"101:101\"with a named volume commonly breaks first-start on fresh machines… · New Abort volume migration when stopping the old service fails Use deletion preconditions to prevent deleting concurrently claimed sandboxes This line references OVMS2025.4, but the PR pins OVMS to2026.4.1. Please update the version… · New Strip the image digest before extracting the Ray version Refresh the KubeRay repository index before resolving the chart version Restrict warm-pool cleanup to updated toolkit-managed Python/Kata pools Now thatget_ovms_image()always returns a single OVMS image, the prior model-type branching is… · New The link target and org have moved toai-openshell/openshell, but the visible name still says… · New
Review effort: Lite
There was a problem hiding this comment.
🟡 Changes recommended
OpenVINO validation still accepts an unsupported raw Llama checkpoint through the source fallback, generating a service that cannot load the model in the IR-only image.
11 open issues
Forcinguser: \"101:101\"with a named volume commonly breaks first-start on fresh machines… Forcinguser: \"101:101\"with a named volume commonly breaks first-start on fresh machines… Abort volume migration when stopping the old service fails Use deletion preconditions to prevent deleting concurrently claimed sandboxes Reject unconverted checkpoints for OpenVINO serving · New This line references OVMS2025.4, but the PR pins OVMS to2026.4.1. Please update the version… Strip the image digest before extracting the Ray version Refresh the KubeRay repository index before resolving the chart version Restrict warm-pool cleanup to updated toolkit-managed Python/Kata pools The link target and org have moved toai-openshell/openshell, but the visible name still says… Now thatget_ovms_image()always returns a single OVMS image, the prior model-type branching is…
Review effort: Balanced
62415bf to
7d62957
Compare
A Trivy scan (2026-11-30) found 393 Critical / 5,277 High in the 20 images Agent Toolkit 2.0.1 deploys. Move each image to the final release with the fewest Critical + High: 164 / 2,147 with this change. Version changes only, plus what a fresh install of the new versions needs. Kubernetes: - Agent Sandbox v1.0.12. - KubeRay operator 1.8.0 and Ray 2.60.1-py312 (chart appVersion). - OpenShell 0.1.10, published only at quay.io/ai-openshell; the chart and the CLI download move there. - pgvector pinned to 0.8.7-pg16 (same image as pg16). Docker Compose: - LiteLLM ghcr.io/berriai/litellm-non_root:v1.105.7 and OVMS 2026.4.1, the Inference Toolkit versions; vLLM stays v0.28.0. - One OVMS image, as in the Inference Toolkit (no -py image), so it serves OpenVINO IR models only: models point at their OpenVINO/* repos, the 8 without one are removed from the OVMS list (still available with vLLM), and the generator stops with a clear error for a model that needs conversion. - Langfuse 4.90.0; official ClickHouse 26.3.76.2 LTS and Chainguard MinIO (pinned by digest) with the settings these images need; Postgres pgvector 0.8.7-pg16. Flowise is unchanged (end of life, removed separately).
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the dependency refresh within its fresh-installation scope.
8 open issues
Forcinguser: \"101:101\"with a named volume commonly breaks first-start on fresh machines… Forcinguser: \"101:101\"with a named volume commonly breaks first-start on fresh machines… Abort volume migration when stopping the old service fails Use deletion preconditions to prevent deleting concurrently claimed sandboxes This line references OVMS2025.4, but the PR pins OVMS to2026.4.1. Please update the version… Strip the image digest before extracting the Ray version Refresh the KubeRay repository index before resolving the chart version Restrict warm-pool cleanup to updated toolkit-managed Python/Kata pools
3 resolved since last review
Review effort: Balanced
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the container-image and configuration updates.
5 open issues
Abort volume migration when stopping the old service fails Use deletion preconditions to prevent deleting concurrently claimed sandboxes Strip the image digest before extracting the Ray version Refresh the KubeRay repository index before resolving the chart version Restrict warm-pool cleanup to updated toolkit-managed Python/Kata pools
3 resolved since last review
Review effort: Balanced



Why
A Trivy scan of the 20 container images that Agent Toolkit 2.0.1 deploys (Trivy 0.76.2, 2026-11-30) found 393 Critical / 5,277 High CVEs. This PR moves every image to the published final release with the fewest Critical + High (major versions allowed; on a tie, the newest final release; never newer than the project's latest stable release, for ClickHouse the latest LTS). With this PR: 164 Critical / 2,147 High.
Exceptions:
2026.4.1is the Inference Toolkit's OVMS runtime image), so both toolkits ship the same images (reasons in the table).Versions and findings
Critical / High, Trivy 0.76.2.
v1.0.10→v1.0.12golang.org/x/netCVE (fixed on upstreammain, not released)v1.0.10→v1.0.12agent_sandbox_versionv1.0.10→v1.0.12util-linuxCVEs in all releases (no Debian fix yet)7.4.0-v8(unchanged)redis:8-alpinehas no Search/JSON modulespg16→0.8.7-pg16sha256:484e8380…, pgvector 0.8.7, PostgreSQL 16.16).0.8.7-pg19has the same CVEs and is a PostgreSQL major upgradev1.3.0→v1.8.02.40.0-py312→2.60.1-py312ghcr.io/nvidia/openshell/gateway:0.1.6→quay.io/ai-openshell/gateway:0.1.10quay.io/ai-openshell0.1.6→0.1.100.1.6→0.1.10docker.litellm.ai/berriai/litellm:v1.83.14-stable.patch.2→ghcr.io/berriai/litellm-non_root:v1.105.73.106.1→4.90.03.106.1→4.90.0bitnamilegacy/clickhouse:25.2.1→clickhouse/clickhouse-server:26.3.76.2bitnamilegacy/minio:2024.12.18→cgr.dev/chainguard/minio@sha256:fdbc0d5b…v0.28.0(unchanged)2025.4.1→2026.4.12025.4.1-py→ removed (uses2026.4.1)openvino/model_server:2026.4.1only). The newest-pyimage,2026.1-py, is 108 / 1,6373.1.2(unchanged)What changed
Version changes only, plus what a fresh install of the new versions needs to work.
Kubernetes
config.yaml,roles/agent_sandbox/defaults/main.yaml:agent_sandbox_version: v1.0.12.roles/kuberay/defaults/main.yaml,charts/kuberay/values.yaml,charts/kuberay/Chart.yaml: operator1.8.0, Ray image2.60.1-py312,appVersion: "2.60.1"(the RayClusterrayVersioncomes from it).roles/openshell/defaults/main.yaml,charts/openshell/values.yaml: OpenShell0.1.10. This release is published only at the project's new location, so the chart isoci://quay.io/ai-openshell/charts/openshelland the CLI comes fromgithub.com/ai-openshell/openshell.charts/pgvector/values.yaml:0.8.7-pg16.Docker Compose
docker/docker-compose.yml:ghcr.io/berriai/litellm-non_root:v1.105.7; Langfuse web and worker4.90.0; Postgrespgvector/pgvector:0.8.7-pg16.clickhouse/clickhouse-server:26.3.76.2. It needs its own settings:user: "101:101", envCLICKHOUSE_USER/CLICKHOUSE_PASSWORD, data path/var/lib/clickhouse.command: server /data …and the healthcheckmc ready local(the image has nocurl).docker/scripts/generate-docker-compose.sh: OVMSopenvino/model_server:2026.4.1. One image, as in the Inference Toolkit, so the-pyvariable is removed. Withserving_engine=openvino, the generator now stops with a clear error when a model (or its speculative-decoding draft) is not anOpenVINO/*repo, instead of generating a container that cannot load it.docker/ovms-model-configs.yaml: 2026.4.1 serves OpenVINO IR models only.OpenVINO/*-int4-ov/-int8-ovrepo pointsource_model(and the speculative-decoding drafts) at it.serving_engine=vllm.Docs
docker/README.md,docs/reference/agent-sandbox.md,kuberay.md,openshell.md,backend-connections.md: new versions, image names and links.Scope
These versions are for fresh installs. Existing Agent Toolkit deployments were not upgraded or tested in place.
Testing
Kubernetes, fresh setup:
release-2.0. Settings:auth_type: litellm_vkey, Kata, OpenShell and KubeRay on.failed=0; all 82 pods Running on the new images;validate agent-toolkitfailed=0.python-poolandkata-pool(Kata guest kernel);genai-gatewayprovider is registered;example.comis denied.vector0.8.7.Docker Compose, fresh deploy (Docker 29.10.1, Compose v5.8.1,
Qwen/Qwen3-1.7B, Flowise and observability on):serving_engine=openvino):Qwen/Qwen3-1.7Bis served fromOpenVINO/Qwen3-1.7B-int4-ovand answers through LiteLLM. Generator check:meta-llama/Llama-3.2-1B-Instructonopenvinois rejected; the-Specdecentries (IR model + IR draft) andOpenVINO/*IDs pass; vLLM is unaffected.