Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs(dockerfile): rationale for unpinned bootstrap pip + dismiss Scorecard alerts (#3914)

LearningCircuit2458ffb81f03
diff --git a/Dockerfile b/Dockerfile
index 1550dd7fc3..46d9abf588 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -48,6 +48,13 @@ RUN apt-get update -o Acquire::Retries=3 && apt-get upgrade -y -o Acquire::Retri
# Pin pip, pdm, and playwright to specific versions for OSSF Scorecard compliance
# Note: hishel<1.0.0 is required due to https://github.com/pdm-project/pdm/issues/3657
# Note: wheel>=0.46.2 is required for CVE-2026-24049 fix (path traversal)
+# Note: Scorecard's Pinned-Dependencies rule additionally wants per-package
+# --hash= or --require-hashes here. We considered hash-pinning the bootstrap
+# layer but rejected it: hash-locking pip itself has repeatedly broken
+# rebuilds (mirror/wheel-tag drift across CI runs). The base image's pip is
+# already verified, and we re-pin to a CVE-fixed version immediately. The
+# three resulting Scorecard alerts (#7740, #7741, #7742) are dismissed as
+# won't-fix; revisit if a stable hash-locking workflow becomes available.
RUN pip3 install --no-cache-dir pip==26.1 \
&& pip install --no-cache-dir pdm==2.26.2 "hishel<1.0.0" playwright==1.58.0 "wheel>=0.46.2"
# disable update check
@@ -227,6 +234,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ARG DEBIAN_FRONTEND=noninteractive
# Upgrade pip to fix CVE-2026-1703 (malicious wheel extraction) + GHSA-jp4c-xjxw-mgf9
+# See builder-stage rationale above for why this install is not hash-pinned
+# — Scorecard alert #7742 dismissed as won't-fix on the same basis.
RUN pip3 install --no-cache-dir pip==26.1
# Install runtime dependencies for SQLCipher and WeasyPrint