diff --git a/.github/DockerfileBackendTests b/.github/DockerfileBackendTests index 61c853e28a..685ab9d7c6 100644 --- a/.github/DockerfileBackendTests +++ b/.github/DockerfileBackendTests @@ -28,7 +28,7 @@ ENV PATH="${PATH}:/usr/local/go/bin" ENV GO_PATH=/usr/local/go/bin/go # UV -RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.6/uv-installer.sh | sh && mv /usr/local/cargo/bin/uv /usr/local/bin/uv +RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.8/uv-installer.sh | sh && mv /usr/local/cargo/bin/uv /usr/local/bin/uv ENV TZ=Etc/UTC diff --git a/.github/scripts/image-vex.sh b/.github/scripts/image-vex.sh new file mode 100755 index 0000000000..d36c09d175 --- /dev/null +++ b/.github/scripts/image-vex.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash +# Writes the OpenVEX document for a release image from its unfiltered Trivy JSON reports. +# +# linux-libc-dev: every CVE found against it is not_affected. It holds only the kernel's userspace +# API headers, which build-essential needs to compile C; a container runs on its host's kernel, so +# a kernel CVE reported against this package never applies to the image. The product carries no +# version or qualifiers so one statement covers every architecture and package version. +# +# setuptools@70.3.0: the copy of pkg_resources pip vendors (pip/_vendor/vendor.txt) in the +# preinstalled Pythons. Only the listed CVEs are covered, each in a setuptools module pip does not +# vendor; a new CVE against that version must be checked before it joins the list. The version is +# pinned so the statements stop applying once pip vendors a different setuptools. +# +# usage: image-vex.sh ... > vex.openvex.json +set -euo pipefail + +id="$1" +shift + +jq -s --arg id "$id" --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" ' + ([.[].Results[]? | (.Vulnerabilities // [])[] | select(.PkgName == "linux-libc-dev") | .VulnerabilityID] + | unique + | map({ + vulnerability: { name: . }, + products: [{ "@id": "pkg:deb/debian/linux-libc-dev" }], + status: "not_affected", + justification: "vulnerable_code_not_present", + impact_statement: "linux-libc-dev contains only the Linux userspace API headers used to compile C code. The image ships no kernel: containers run on the host kernel, which this package does not affect." + })) as $kernel + | ([ + ["CVE-2025-47273", "setuptools.package_index"], + ["CVE-2026-59890", "setuptools.command.sdist and FileList"], + ["GHSA-xmj3-9gf7-h52w", "setuptools.wheel"] + ] + | map({ + vulnerability: { name: .[0] }, + products: [{ "@id": "pkg:pypi/setuptools@70.3.0" }], + status: "not_affected", + justification: "vulnerable_code_not_present", + impact_statement: ("setuptools 70.3.0 is present only as the pkg_resources module pip vendors. The vulnerable code is in " + .[1] + ", which pip does not vendor.") + })) as $pip_setuptools + | { + "@context": "https://openvex.dev/ns/v0.2.0", + "@id": $id, + author: "Windmill Labs", + timestamp: $ts, + version: 1, + statements: ($kernel + $pip_setuptools) + } +' "$@" diff --git a/.github/scripts/kernel-headers-vex.sh b/.github/scripts/kernel-headers-vex.sh deleted file mode 100755 index 3a24c30e1a..0000000000 --- a/.github/scripts/kernel-headers-vex.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash -# Writes an OpenVEX document marking every linux-libc-dev CVE found in the given Trivy JSON -# reports as not_affected. linux-libc-dev holds only the kernel's userspace API headers, which -# build-essential needs to compile C; a container runs on its host's kernel, so a kernel CVE -# reported against this package never applies to the image. The product carries no version or -# qualifiers so one statement covers every architecture and package version. -# -# usage: kernel-headers-vex.sh ... > vex.openvex.json -set -euo pipefail - -id="$1" -shift - -jq -s --arg id "$id" --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" ' - [.[].Results[]? | (.Vulnerabilities // [])[] | select(.PkgName == "linux-libc-dev") | .VulnerabilityID] - | unique - | { - "@context": "https://openvex.dev/ns/v0.2.0", - "@id": $id, - author: "Windmill Labs", - timestamp: $ts, - version: 1, - statements: map({ - vulnerability: { name: . }, - products: [{ "@id": "pkg:deb/debian/linux-libc-dev" }], - status: "not_affected", - justification: "vulnerable_code_not_present", - impact_statement: "linux-libc-dev contains only the Linux userspace API headers used to compile C code. The image ships no kernel: containers run on the host kernel, which this package does not affect." - }) - } -' "$@" diff --git a/.github/workflows/backend-test-windows.yml b/.github/workflows/backend-test-windows.yml index adc2176db1..22216ad08f 100644 --- a/.github/workflows/backend-test-windows.yml +++ b/.github/workflows/backend-test-windows.yml @@ -81,7 +81,7 @@ jobs: - uses: astral-sh/setup-uv@v7.6.0 with: - version: "0.13.6" + version: "0.13.8" - uses: shivammathur/setup-php@2.40.0 with: diff --git a/.github/workflows/backend-test.yml b/.github/workflows/backend-test.yml index 64da12420d..b3ddb9e685 100644 --- a/.github/workflows/backend-test.yml +++ b/.github/workflows/backend-test.yml @@ -64,7 +64,7 @@ jobs: node-version: "24" - uses: astral-sh/setup-uv@v7.6.0 with: - version: "0.13.6" + version: "0.13.8" - uses: shivammathur/setup-php@2.40.0 with: php-version: "8.3" diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 2611bd3a13..c906369368 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -449,7 +449,7 @@ jobs: trivy() { docker run --rm -v "$RUNNER_TEMP/trivy-cache:/root/.cache/trivy" -v "$PWD/scan:/out" "$TRIVY_IMAGE" "$@"; } trivy image -q --platform linux/amd64 \ --scanners vuln --format json -o /out/full.json "$IMAGE_REF" - .github/scripts/kernel-headers-vex.sh \ + .github/scripts/image-vex.sh \ "https://github.com/windmill-labs/windmill/releases/tag/${GITHUB_REF_NAME}#${{ matrix.image }}" \ scan/full.json > "scan/${{ matrix.image }}.openvex.json" trivy image -q --platform linux/amd64 \ diff --git a/Dockerfile b/Dockerfile index 9072838c4d..d46a14e169 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ARG DEBIAN_IMAGE=debian:trixie-slim ARG RUST_IMAGE=rust:1.97-slim-trixie # NOTE: If changing, also change go version in workspace dependencies template at WorkspaceDependenciesEditor.svelte -ARG GO_VERSION=1.27.3 +ARG GO_VERSION=1.27.4 # crane is built from source rather than downloaded: its release binaries are built with whatever # Go was current at release time, so their stdlib lags behind the Go the image installs. @@ -180,7 +180,7 @@ ENV PATH /usr/local/bin:/root/.local/bin:/tmp/.local/bin:$PATH # The build cache keeps the apt layer while the base image digest and this line are unchanged, so # Debian security updates are not picked up by later builds. Bump to force a fresh apt-get upgrade; # bump it in docker/DockerfileSlim and docker/DockerfileSlimEe too. -ARG APT_REFRESH=1 +ARG APT_REFRESH=2 RUN echo "apt refresh ${APT_REFRESH}" \ && apt-get update \ && apt-get upgrade -y \ @@ -276,7 +276,7 @@ ENV PATH="${PATH}:/usr/local/go/bin" ENV GO_PATH=/usr/local/go/bin/go # Install UV -RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.6/uv-installer.sh | sh && mv /root/.local/bin/uv /usr/local/bin/uv +RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.8/uv-installer.sh | sh && mv /root/.local/bin/uv /usr/local/bin/uv # Preinstall python runtimes to temp build location (will copy with world-writable perms later) # --compile-bytecode precompiles the stdlib to .pyc so jobs don't recompile it on every run diff --git a/docker/DockerfileExtra b/docker/DockerfileExtra index 2c79221cf7..3ea90a8e69 100644 --- a/docker/DockerfileExtra +++ b/docker/DockerfileExtra @@ -47,9 +47,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ RUN set -eux; \ arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; \ case "$arch" in \ - 'amd64') targz='go1.27.3.linux-amd64.tar.gz' ;; \ - 'arm64') targz='go1.27.3.linux-arm64.tar.gz' ;; \ - 'armhf') targz='go1.27.3.linux-armv6l.tar.gz' ;; \ + 'amd64') targz='go1.27.4.linux-amd64.tar.gz' ;; \ + 'arm64') targz='go1.27.4.linux-arm64.tar.gz' ;; \ + 'armhf') targz='go1.27.4.linux-armv6l.tar.gz' ;; \ *) echo >&2 "error: unsupported architecture '$arch'"; exit 1 ;; \ esac; \ wget "https://golang.org/dl/$targz" -nv && tar -C /usr/local -xzf "$targz" && rm "$targz" diff --git a/docker/DockerfileSlim b/docker/DockerfileSlim index 479d181c19..e07462b2e8 100644 --- a/docker/DockerfileSlim +++ b/docker/DockerfileSlim @@ -47,7 +47,7 @@ ENV PATH=/usr/local/bin:/root/.local/bin:/tmp/.local/bin:$PATH # Install system dependencies # Bump to force a fresh apt-get upgrade past the build cache; keep in step with ../Dockerfile. -ARG APT_REFRESH=1 +ARG APT_REFRESH=2 RUN echo "apt refresh ${APT_REFRESH}" \ && apt-get update \ && apt-get upgrade -y \ @@ -66,7 +66,7 @@ RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmo ENV TZ=Etc/UTC # Install UV -RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.6/uv-installer.sh | sh && mv /root/.local/bin/uv /usr/local/bin/uv +RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.8/uv-installer.sh | sh && mv /root/.local/bin/uv /usr/local/bin/uv # Preinstall python runtime to temp location (will copy with world-writable perms later) # --compile-bytecode precompiles the stdlib to .pyc so jobs don't recompile it on every run diff --git a/docker/DockerfileSlimEe b/docker/DockerfileSlimEe index c1f9a8af7c..81b3b0b87b 100644 --- a/docker/DockerfileSlimEe +++ b/docker/DockerfileSlimEe @@ -47,7 +47,7 @@ ENV PATH=/usr/local/bin:/root/.local/bin:/tmp/.local/bin:$PATH # Install system dependencies # Bump to force a fresh apt-get upgrade past the build cache; keep in step with ../Dockerfile. -ARG APT_REFRESH=1 +ARG APT_REFRESH=2 RUN echo "apt refresh ${APT_REFRESH}" \ && apt-get update \ && apt-get upgrade -y \ @@ -66,7 +66,7 @@ RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmo ENV TZ=Etc/UTC # Install UV -RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.6/uv-installer.sh | sh && mv /root/.local/bin/uv /usr/local/bin/uv +RUN curl --proto '=https' --tlsv1.2 -LsSf https://github.com/astral-sh/uv/releases/download/0.13.8/uv-installer.sh | sh && mv /root/.local/bin/uv /usr/local/bin/uv # Preinstall python runtime to temp location (will copy with world-writable perms later) # --compile-bytecode precompiles the stdlib to .pyc so jobs don't recompile it on every run