Repository navigation
Sync release-3.1 branch to main - #256
Draft
kkurzacz-intel wants to merge 26 commits into
Draft
kkurzacz-intel wants to merge 26 commits into
kkurzacz-intel wants to merge 26 commits into
Conversation
* fix(keycloak): delete the realm on teardown Teardown by labels deletes only the Kubernetes objects the install labelled. The realm is data in the platform Keycloak, so it was left behind, and a reinstall found it in place. app_keycloak_config now also runs its own teardown after the labelled objects, and that teardown deletes the realm through Keycloak's admin API. --------- Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com>
#224) Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
* test(validation): probe Milvus in the Istio authorization test get_vector_db_endpoints() only knew the Redis vector DB services, so on a Milvus deployment the module fixture raised "No vector database services found" and test_authorization_gets_connections_blocked was broken. Look up the milvus service in vdb after the Redis ones and probe its gRPC port 19530. Endpoints are now returned per connection type; the Redis paths return the same endpoints as before. Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com> * test(validation): reword the Milvus probe docstring and fixture comment (review) Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com> * test(validation): look up the vector DB services from one table (review) Replace the three copies of the kr8s lookup with a VECTOR_DB_SERVICES table and one loop, in the same order (redis-cluster, redis, milvus). The error message is built from the table. Drop the docstring and the fixture comment that restated the code; keep the gRPC/curl note on the Milvus entry. Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com> --------- Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com>
* fix(vector_databases): run Milvus on OpenShift On OpenShift the post-renderer drops the chart's runAsUser/runAsGroup and restricted-v2 runs the pod as a namespace UID in group 0. The milvusdb/milvus image's files are 999:999 with no access for others, so the binary fails with "Permission denied". Add the image's group as a supplemental group on OpenShift; the UID stays the SCC's. Also open Milvus's metrics port 9091 to the out-of-mesh user-workload Prometheus, like redis-cluster's 9121. The Kubernetes render is unchanged. Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com> * fix(gmc): let OpenShift pick the retriever's wait-for-milvus UID The retriever's wait-for-milvus init container fixed runAsUser 1000 in its own securityContext. On OpenShift the GMC values unset the pod's UIDs, but this one stayed, so restricted-v2 rejected every retriever pod and chat answered 500. Drop it, like the other GMC init containers; on Kubernetes the pod's runAsUser 1000 still applies. Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com> --------- Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com>
…namespaces (#228) collect_k8s_logs only covered the erag namespaces, so failures in the LLM serving path, the gateways or Keycloak left no logs in the report. Add audio, envoy-ai-gateway-system, envoy-gateway-system, keycloak, kserve, llm-inference, model-manager and postgresql. api.get() is a generator, so an API error surfaced while iterating and broke the fixture teardown. List the pods inside a try block and skip the namespace with a warning instead. Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com>
* test(e2e): retry the MCP session while the gateway answers 401 On a fresh deployment Keycloak generates the realm's RS384 signing key with the first token it issues, and the gateway refreshes its JWKS cache every 60s. An MCP session opened within that window gets 401 although the token is valid, and since mcp_helper is session-scoped every MCP test then breaks at setup. Retry the session on 401 only, up to 6 attempts 15s apart (longer than the cache interval), and log each attempt and the attempt that succeeded so a run shows whether the retry was needed. Other errors still fail at once. Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com> * Simplify MCP session retry per review Reset session state in _start_session instead of duplicating it in __init__ and the retry loop, drop redundant None checks, log success with a single info line and shorten docstrings. Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com> --------- Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com>
…el and dims (#230) The Milvus connector used a fixed collection name (vdb). A Milvus collection keeps the dimension it was created with, so after an embedding model switch every insert and search failed on the old collection, and a switch to a model with the same dimension silently mixed vectors of both models. Like the Redis index name, the default collection name now carries the embedding model and the vector dimension (vdb_<model>_<dims>), so a model switch gets a fresh collection and the existing re-ingestion flow applies. An explicit MILVUS_VECTOR_COLLECTION is still used as is; if its dimension differs from VECTOR_DIMS the service fails at startup with a clear error instead of at query time. Nothing is dropped. Fixes #229 Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com>
Follows Toolkit Manager cloning this repo into ext/chatbot-toolkit. Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
* fix(vectorstores): decode milvus sibling metadata before sorting Signed-off-by: aalbersk <anna.alberska@intel.com> * test(vectorstores): parametrize sibling test over metadata encoding Signed-off-by: aalbersk <anna.alberska@intel.com> --------- Signed-off-by: aalbersk <anna.alberska@intel.com>
…pinned OpenSSL upgrade (#239) * fix(docker): bump the python base digest, drop the pinned OpenSSL upgrade Trivy on the v3.1.0-rc.1 images reports 5 HIGH OS vulnerabilities in the pinned python:3.11-slim-trixie base (Debian 13.7, 2026-10-01): apt / libapt-pkg7.0 (CVE-2026-109518), libpcre2-8-0 (CVE-2026-103111), zlib1g (CVE-2026-85091) and libzstd1 (CVE-2026-124851). The current python:3.11-slim-trixie (sha256:70328419..., Debian 13.8, 2026-11-24) ships the fixed apt, libpcre2-8-0 and zlib1g, and OpenSSL 3.5.9-1~deb13u1. The pinned --only-upgrade openssl=3.5.7-1~deb13u3 would now be a downgrade and fail the build, and with the base carrying a newer OpenSSL it is no longer needed, so it is removed from all 23 Dockerfiles (tts model server: also the libpcre2-8-0 pin). RUN steps that only did that upgrade are gone. Packages now come from the upstream base as published, without in-image package upgrades. libzstd1 stays HIGH: its fix (1.5.7+dfsg-1+deb13u1) is not in any published python or debian trixie base yet. Verified: the embedding image builds and a local Trivy scan (vuln+secret, CRITICAL,HIGH, ignore-unfixed) reports only libzstd1. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com> * chore(compliance): drop the manual OpenSSL entries The openssl, libssl and openssl-provider-legacy manual entries were added because the Dockerfiles upgraded those packages in the image: the OSPDT apt parser reports image packages minus the Docker Hub base packages by name and license, so an upgraded package with an unchanged license cancels out and had to be declared by hand. The Dockerfiles no longer upgrade them; the packages come unchanged from the base image layer, which is not reported. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com> * fix(gmc): bump Go to 1.26.11 Trivy on the v3.1.0-rc.1 gmcmanager and gmcrouter images reports the Go stdlib v1.26.9 compiled into the binaries as HIGH (CVE-2026-111943, fixed in 1.26.10). Move the go directive and the manager/router builder images to 1.26.11, the current patch release, together as in #86. go mod tidy leaves go.mod/go.sum unchanged; both images build and a local Trivy scan reports no CRITICAL/HIGH findings (stdlib v1.26.11). Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com> * chore(docker): drop comments left over from the OpenSSL pin The digest comment only restated the ARG once the OpenSSL pin it was tied to was gone, and the guardrails' "Install system packages" comment described the removed apt step. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com> --------- Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com>
Hard rename, no compatibility for existing envs or clusters: init/install target, config.chatbot.yaml, components/version/backup profile layer, the toolkit-manager.intel.com/layer label, check ids, facts and tests. Upgrades start from 3.1.0, so the keycloak-rename gate for older records goes; an erag install needs a fresh reinstall (docs/deployment/install-rag.md). Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
…238) Bump the external images deployed by the Chatbot Toolkit charts to the newest releases within their current major version, based on a Trivy scan (CRITICAL/HIGH, fixable only) of the deployed images and their newer tags: - apisix chart 2.14.1 -> 2.19.0 (ingress-controller 2.1.0 -> 2.2.0, adc 0.26.0 -> 0.27.1) - apache/apisix 3.16.0-ubuntu -> 3.19.0-ubuntu - quay.io/coreos/etcd v3.5.15 -> v3.5.36 - redis 8.2.2 -> 8.2.11 (EDP and vector DB) - oliver006/redis_exporter v1.80.0 -> v1.99.0 - nats 2.10-alpine -> 2.15.3-alpine - natsio/prometheus-nats-exporter 0.15.0 -> 0.20.3 CRITICAL/HIGH for these images drop from 26/401 to 4/70. APISIX stays below 3.20: from 3.20 authz-keycloak asks Keycloak for response_mode=permissions and requires every listed permission, while our routes list alternatives (admin#admin-access, maintainer#maintainer-access), so every admin call gets 403. Redis stays on 8.2: 8.12 refuses to start in cluster mode without tls-cluster (new cluster-bus-port-protected-mode check), and the option that disables it is unknown to 8.2-based images such as redis:8.2.2-svs. ferretdb, postgres-documentdb and postgres have no newer tag with fewer findings; apisix chart 3.x and etcd 3.6 were left out to avoid major/data-store upgrades. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com>
… logs (#241) * test(e2e): skip pods whose container has not started when reading pod logs get_pod_logs read the logs of every pod behind the label selector. When the autoscaler adds an edp-text-extractor replica during test_edp_deleted_links_block_processing_queue, the new pod is still ContainerCreating, the API answers its log request with 400 and the test broke although ingestion behaved as expected. A pod whose container is still waiting to start has no logs yet, so it is skipped; any other API error is still raised. Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com> * test(unit): cover get_pod_logs skipping pods that have not started Unit tests for the skip and for re-raising any other API error, next to the existing K8sHelper tests; docstring trimmed to the non-obvious part. Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com> --------- Signed-off-by: Mateusz Blaszkowski <mateusz.blaszkowski@intel.com>
* docs: drop the 32-core limited single-user configuration The 32 logical core / 64 GB single-user sizing is not a valid deployment. Remove it from the prerequisites table, its tuning steps, and the references in the README, docs index, quickstart and FAQ. The 60-core minimum hardware tuning stays. Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com> * docs: drop the remaining minimum-hardware leftovers of the 32-core option HPA was only switched off in the removed 32-core steps, so the glossary and FAQ no longer say it is disabled for minimum-hardware deployments. install-rag gives the minimum as 60 logical cores instead of "≤60", and the edp minimalConfiguration comment no longer names the 32-core / 64 GB deployment. Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com> * docs: reduce the LLM vLLM server to 24 CPUs on the 60-core minimum Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com> * docs: drop the minimum-hardware KV cache and LLM CPU tuning The 60-core / 128 GB minimum needs no model catalog changes, so the Deploying on Minimum Hardware section goes, with the links to it from install-rag.md and quickstart.md. Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com> --------- Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com>
) * fix(asr): bump the vllm-audio base to vllm/vllm-openai-cpu v0.34.0 The ECR vllm-cpu-release-repo stopped publishing release tags at v0.29.0; vLLM CPU releases are now published on Docker Hub as vllm/vllm-openai-cpu. Move the vllm-audio base there and to v0.34.0. Relax the setuptools lock: vLLM 0.34.0 requires setuptools==78.1.1 (<81 on Python 3.12), so the forced upgrade to 82.0.1 broke its requirements (pip check). The base's 78.1.1 is kept. With the base now from Docker Hub, compliance-conf.yml only lists what the Dockerfile installs on top of it: vllm[audio] and the wheel upgrade. Trivy, old 0.22.1 vs new 0.34.0 image (unique CVEs): CRITICAL 101 -> 28, HIGH 1416 -> 598, total 6265 -> 3050; Python packages CRITICAL/HIGH 8/72 -> 0/3. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com> * fix(audio): give vllm-audio a 1Gi memory-backed /dev/shm vLLM 0.34.0 checks /dev/shm before starting the engine and needs 160 MiB for its shared-memory ring buffer; the 64 MiB container default makes it exit with 'Insufficient space in /dev/shm'. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com> * fix(audio): give vllm-audio a writable ~/.triton The vLLM 0.34.0 CPU image ships triton-cpu, which writes its kernel cache to ~/.triton; with readOnlyRootFilesystem the worker fails with 'Read-only file system: /home/user/.triton'. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com> --------- Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com>
Signed-off-by: Izabella Raulin <izabella.raulni@intel.com> Co-authored-by: Izabella Raulin <izabella.raulni@intel.com>
… undeploy (#227) Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
vector_databases_vector_store now defaults to "milvus" instead of "redis-cluster" in every role that declares it (app_vector_databases, app_pipeline, app_pre_install, app_data_consistency), in the commented hint of each pipeline preset, and in the docs. redis-cluster, mssql and pgvector stay selectable as before. An existing environment that relied on the old default and never set the key keeps its data only if it now sets vector_databases_vector_store: "redis-cluster" explicitly. Signed-off-by: Jakub Piasecki <jakub.piasecki@intel.com>
…indings (#250) Trivy (vuln, CRITICAL/HIGH, ignore-unfixed) on release-3.1 images: - Guardrails (dpguard, in-guard, out-guard): pip 26.2.2 vendors msgpack 1.1.2 and urllib3 2.7.0 (CVE-2026-114613, GHSA-6v7p-g79w-8964, CVE-2026-97687, CVE-2026-97689). pip 26.3 vendors msgpack 1.2.4 and urllib3 2.8.0; re-locked with uv 0.8.17 (sec-update-dependencies), only the pip entry changes. pip stays: the anonymizer downloads spaCy models other than en/zh at runtime. Its vendored setuptools 70.3.0 (CVE-2025-47273) has no fixed pip release yet. - ovms_ner: openvino/model_server 2026.0 (Ubuntu 24.04: apt, brotli, openssl) -> 2026.5.0 (Ubuntu 26.04). The cleanup of the uv Python's site-packages pointed at /home/ubuntu, but HOME is /home/ovms, so it never ran and left setuptools' vendored jaraco.context and wheel (CVE-2026-23949, CVE-2026-24049). - init-container: debian:bookworm-slim -> trixie-slim, like the python images; drops libpam x4 and zlib1g (CVE-2025-6020, CVE-2026-85091). Built locally: ovms_ner 9 -> 0 findings, init-container 6 -> 1, guardrails 6 -> 2 each; the remaining libzstd1 (CVE-2026-124851) is not in any published trixie base yet. Signed-off-by: Kurzacz, Kamil <kamil.kurzacz@intel.com>
…233) - erag_reranking.py: score each document's title, or its file name without extension, with the chunks and raise that file's best chunk to the higher score; no score is lowered. - erag_prompt_template.py: fall back to the file name for the title line when a chunk has no file_title. - utils.py: add document_title, the shared title rule used by both. Signed-off-by: Marcin Olszewski <marcin.olszewski@intel.com>
* docs: align README with Toolkit Manager, lead with Intel platforms Rename Advanced to Documentation, and cut the sections after it to one License line. Publications move to the docs index; third-party, model card and human rights text move to docs/reference/notices.md. --------- Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
kkurzacz-intel
marked this pull request as draft
December 4, 2026 11:44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sync release-3.1 branch to main