Skip to content

fix: move every image to the release with the fewest Critical/High CVEs (2.0.1) - #52

Merged
AhmedSeemalK merged 2 commits into
intel:release-2.0.1from
vinayK34:fix/release-2.0.1-image-cves
Dec 2, 2026
Merged

AhmedSeemalK merged 2 commits into
intel:release-2.0.1from
vinayK34:fix/release-2.0.1-image-cves

Conversation

@vinayK34

@vinayK34 vinayK34 commented Dec 1, 2026 •

Copy link
Copy Markdown

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:

Versions and findings

Critical / High, Trivy 0.76.2.

Component Before → after C / H before C / H after Why this version
Agent Sandbox controller v1.0.10 → v1.0.12 0 / 1 0 / 1 Latest; all releases have the same golang.org/x/net CVE (fixed on upstream main, not released)
Agent Sandbox router v1.0.10 → v1.0.12 0 / 1 0 / 1 Moves with agent_sandbox_version
Agent Sandbox python-runtime v1.0.10 → v1.0.12 0 / 60 0 / 60 Same Debian util-linux CVEs in all releases (no Debian fix yet)
Redis Stack 7.4.0-v8 (unchanged) 0 / 7 0 / 7 Latest and lowest; redis:8-alpine has no Search/JSON modules
pgvector (chart + Compose) pg16 → 0.8.7-pg16 4 / 141 4 / 141 Pin only, same image (digest sha256:484e8380…, pgvector 0.8.7, PostgreSQL 16.16). 0.8.7-pg19 has the same CVEs and is a PostgreSQL major upgrade
KubeRay operator v1.3.0 → v1.8.0 2 / 43 0 / 1 Latest stable
Ray 2.40.0-py312 → 2.60.1-py312 11 / 150 2 / 54 Latest stable and lowest
OpenShell gateway ghcr.io/nvidia/openshell/gateway:0.1.6 → quay.io/ai-openshell/gateway:0.1.10 0 / 5 0 / 3 Latest; project moved to quay.io/ai-openshell
OpenShell supervisor 0.1.6 → 0.1.10 0 / 1 0 / 0 Moves with the chart
OpenShell sandbox 0.1.6 → 0.1.10 0 / 0 0 / 0 Moves with the chart
LiteLLM (Compose) docker.litellm.ai/berriai/litellm:v1.83.14-stable.patch.2 → ghcr.io/berriai/litellm-non_root:v1.105.7 16 / 205 0 / 22 Same as intel/inference-toolkit#101; last 1.105 patch, no database schema change from 1.105.1
Langfuse web (Compose) 3.106.1 → 4.90.0 18 / 238 0 / 30 Latest stable (major v3 → v4)
Langfuse worker (Compose) 3.106.1 → 4.90.0 27 / 294 0 / 27 Must match web
ClickHouse (Compose) bitnamilegacy/clickhouse:25.2.1 → clickhouse/clickhouse-server:26.3.76.2 19 / 113 0 / 0 Latest LTS, official image
MinIO (Compose) bitnamilegacy/minio:2024.12.18 → cgr.dev/chainguard/minio@sha256:fdbc0d5b… 26 / 330 0 / 0 The image Langfuse's own compose uses; pinned by digest
vLLM CPU (Compose) v0.28.0 (unchanged) 78 / 1,200 78 / 1,200 Same default as intel/inference-toolkit#101 (a newer default needs the large-model KV pre-check validated)
OVMS (Compose, opt-in) 2025.4.1 → 2026.4.1 0 / 8 0 / 3 Same image as the Inference Toolkit OVMS runtime
OVMS Python (Compose, opt-in) 2025.4.1-py → removed (uses 2026.4.1) 112 / 1,886 0 / 3 Dropped: one OVMS image, as in the Inference Toolkit (its default runtime is openvino/model_server:2026.4.1 only). The newest -py image, 2026.1-py, is 108 / 1,637
Flowise (Compose) 3.1.2 (unchanged) 80 / 594 80 / 594 End of life, removed separately

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: operator 1.8.0, Ray image 2.60.1-py312, appVersion: "2.60.1" (the RayCluster rayVersion comes from it).
  • roles/openshell/defaults/main.yaml, charts/openshell/values.yaml: OpenShell 0.1.10. This release is published only at the project's new location, so the chart is oci://quay.io/ai-openshell/charts/openshell and the CLI comes from github.com/ai-openshell/openshell.
  • charts/pgvector/values.yaml: 0.8.7-pg16.

Docker Compose

  • docker/docker-compose.yml:
    • LiteLLM ghcr.io/berriai/litellm-non_root:v1.105.7; Langfuse web and worker 4.90.0; Postgres pgvector/pgvector:0.8.7-pg16.
    • ClickHouse: official image clickhouse/clickhouse-server:26.3.76.2. It needs its own settings: user: "101:101", env CLICKHOUSE_USER / CLICKHOUSE_PASSWORD, data path /var/lib/clickhouse.
    • MinIO: Chainguard image by digest. It needs command: server /data … and the healthcheck mc ready local (the image has no curl).
  • docker/scripts/generate-docker-compose.sh: OVMS openvino/model_server:2026.4.1. One image, as in the Inference Toolkit, so the -py variable is removed. With serving_engine=openvino, the generator now stops with a clear error when a model (or its speculative-decoding draft) is not an OpenVINO/* repo, instead of generating a container that cannot load it.
  • docker/ovms-model-configs.yaml: 2026.4.1 serves OpenVINO IR models only.
    • The 10 models that have an official OpenVINO/*-int4-ov / -int8-ov repo point source_model (and the speculative-decoding drafts) at it.
    • The 8 with none (Llama 3.1-8B ×2, Llama 3.2 1B/3B, DeepSeek-R1 ×2, Qwen3-4B-2507, Nemotron-Nano-4B) are removed from the OVMS list and still work with 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:

  • Single node; Kubernetes, platform, Inference Toolkit and Agent Toolkit installed from scratch with Toolkit Manager release-2.0. Settings: auth_type: litellm_vkey, Kata, OpenShell and KubeRay on.
  • Install failed=0; all 82 pods Running on the new images; validate agent-toolkit failed=0.
  • Agent Sandbox (SDK 1.0.12):
    • code runs in python-pool and kata-pool (Kata guest kernel);
    • a missing or bad token is rejected;
    • the sandbox cannot reach the Kubernetes API, metadata, Redis, pgvector or LiteLLM.
  • Ray 2.60.1 via the gateway:
    • without auth: 401;
    • with the password: a job succeeds.
  • OpenShell 0.1.10:
    • CLI 0.1.10 connects; the genai-gateway provider is registered;
    • LiteLLM 200 with the injected key, 401 with a bogus key; example.com is denied.
  • Redis/pgvector: requests without a password are rejected; vector 0.8.7.

Docker Compose, fresh deploy (Docker 29.10.1, Compose v5.8.1, Qwen/Qwen3-1.7B, Flowise and observability on):

  • All containers healthy on the new images. LiteLLM runs as uid 65534, ClickHouse as uid 101, MinIO as uid 65532.
  • LiteLLM: 401 without a key; a chat call answers and is traced in Langfuse 4.90.0.
  • ClickHouse rejects a wrong password; the MinIO bucket is created; Postgres needs a password over the network; Redis auth works; Flowise starts.
  • vLLM v0.28.0 answers.
  • OVMS 2026.4.1 (serving_engine=openvino): Qwen/Qwen3-1.7B is served from OpenVINO/Qwen3-1.7B-int4-ov and answers through LiteLLM. Generator check: meta-llama/Llama-3.2-1B-Instruct on openvino is rejected; the -Specdec entries (IR model + IR draft) and OpenVINO/* IDs pass; vLLM is unaffected.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 12:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread roles/agent_sandbox/tasks/install.yaml Outdated
kind: Sandbox
name: "{{ item.metadata.name }}"
namespace: "{{ agent_sandbox_namespace }}"
state: absent

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.

Comment thread roles/agent_sandbox/tasks/install.yaml Outdated
Comment on lines +288 to +289
| selectattr('metadata.ownerReferences.0.kind', 'eq', 'SandboxWarmPool')
| rejectattr('spec.podTemplate.spec.containers.0.image', 'eq', agent_sandbox_python_runtime_image)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.

@vinayK34
vinayK34 force-pushed the fix/release-2.0.1-image-cves branch from 78779c5 to 9d2a5da Compare December 1, 2026 12:32
Copilot AI balanced review requested due to automatic review settings December 1, 2026 12:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Migration ignores failures to stop ClickHouse and MinIO before modifying their volumes, risking data corruption and disrupted uploads.

5 open issues

Review effort: Balanced

Comment thread docker/deploy.sh Outdated
Comment on lines +1032 to +1038
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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.

Comment thread roles/kuberay/tasks/install.yaml Outdated
- 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 }}" \

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.

Comment thread roles/kuberay/tasks/install.yaml Outdated
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] }}"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was removed. The PR now contains only the version changes and what a fresh install of the new versions needs.

@vinayK34
vinayK34 force-pushed the fix/release-2.0.1-image-cves branch from 9d2a5da to 215caad Compare December 1, 2026 14:08
Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:08
@vinayK34
vinayK34 force-pushed the fix/release-2.0.1-image-cves branch from 215caad to 62415bf Compare December 1, 2026 14:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread docker/docker-compose.yml Resolved
Comment thread docker/docker-compose.yml Resolved
Comment thread docker/README.md Resolved
Comment thread docs/reference/openshell.md Resolved
Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:26

Copilot AI left a comment

Copy link
Copy Markdown

@vinayK34
vinayK34 force-pushed the fix/release-2.0.1-image-cves branch from 62415bf to 7d62957 Compare December 1, 2026 14:48
Copilot AI balanced review requested due to automatic review settings December 1, 2026 14:48
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).

Copilot AI left a comment

Copy link
Copy Markdown

@AhmedSeemalK AhmedSeemalK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copilot AI balanced review requested due to automatic review settings December 2, 2026 05:02

Copilot AI left a comment

Copy link
Copy Markdown

@AhmedSeemalK
AhmedSeemalK merged commit e09b126 into intel:release-2.0.1 Dec 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants