From 9fd9c75f94fa1c81fbc7c9e447cdb9a22a65ac40 Mon Sep 17 00:00:00 2001 From: Arnaud Dartois Date: Thu, 12 Nov 2026 00:57:51 +0100 Subject: [PATCH] [Security] Update container bases to .NET 10.0.15 Co-authored-by: Arnaud Dartois --- .gitea/workflows/build.yml | 10 +++++----- docker/Dockerfile | 4 ++-- docker/Dockerfile.agent | 4 ++-- docker/Dockerfile.agent.gpu | 4 ++-- skills/container-image-security/SKILL.md | 2 ++ src/Heimdall.Web/packages.lock.json | 6 +++--- 6 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 09847d1..f7d28f5 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -75,7 +75,7 @@ jobs: needs: [changes] runs-on: [ubuntu-latest, build-agent] container: - image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b + image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb services: postgres: image: postgres:17-alpine@sha256:b0f9560a2de083e2cc7382e75f808c7381a32852a7ec49117deedb300e552b24 @@ -163,7 +163,7 @@ jobs: needs: [changes, verify] runs-on: [ubuntu-latest, build-agent] container: - image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b + image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb steps: - name: Prepare action runtime before checkout run: | @@ -208,7 +208,7 @@ jobs: needs: [changes, verify] runs-on: [ubuntu-latest, build-agent] container: - image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b + image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb steps: - name: Prepare action runtime before checkout run: | @@ -253,7 +253,7 @@ jobs: needs: [changes, verify] runs-on: [ubuntu-latest, build-agent] container: - image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b + image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb steps: - name: Prepare action runtime before checkout run: | @@ -298,7 +298,7 @@ jobs: needs: [changes, verify, server_image, agent_image, agent_gpu_image] runs-on: [ubuntu-latest, build-agent] container: - image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b + image: mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb permissions: contents: write pull-requests: read diff --git a/docker/Dockerfile b/docker/Dockerfile index 1738b8d..6cdca80 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ # Server/PWA: restore the complete project graph from locked dependencies. -FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb AS build WORKDIR /src ARG VERSION=0.0.0-local COPY global.json Directory.Build.props Directory.Build.targets ./ @@ -8,7 +8,7 @@ COPY install/ ./install/ RUN dotnet restore src/Heimdall.Web/Heimdall.Web.csproj --locked-mode RUN dotnet publish src/Heimdall.Web/Heimdall.Web.csproj -c Release --no-restore -o /out -p:Version=$VERSION -p:ContinuousIntegrationBuild=true -FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:de0ee358cdd672f7017a003bed21e9ac9ed48a27c922a59b18175b6e82fa7fee +FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:bfd912c83295ce66d4b706ebb8541b9f14259b0e76fbb88b2751f58ce2399d2e WORKDIR /app RUN apt-get update -qq \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --only-upgrade apt libapt-pkg6.0t64 \ diff --git a/docker/Dockerfile.agent b/docker/Dockerfile.agent index 02ca22d..ebd2ede 100644 --- a/docker/Dockerfile.agent +++ b/docker/Dockerfile.agent @@ -1,6 +1,6 @@ # CPU agent: use glibc for ONNX native dependencies. GPU variants need a # separately validated .NET/native-library runtime and are not published here. -FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb AS build WORKDIR /src ARG VERSION=0.0.0-local ARG TARGET_RUNTIME=cpu @@ -10,7 +10,7 @@ COPY src/ ./src/ RUN dotnet restore src/Heimdall.Agent/Heimdall.Agent.csproj --locked-mode RUN dotnet publish src/Heimdall.Agent/Heimdall.Agent.csproj -c Release --no-restore -o /out -p:Version=$VERSION -p:ContinuousIntegrationBuild=true -FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:de0ee358cdd672f7017a003bed21e9ac9ed48a27c922a59b18175b6e82fa7fee +FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:bfd912c83295ce66d4b706ebb8541b9f14259b0e76fbb88b2751f58ce2399d2e WORKDIR /app ARG DOCKER_CLI_VERSION=29.9.3 ARG DOCKER_CLI_SHA256=3fb5d1f13014c18cc54945bc177c58a9056a482dada031e17d12cf2e6922c973 diff --git a/docker/Dockerfile.agent.gpu b/docker/Dockerfile.agent.gpu index 2c328e9..a2287ad 100644 --- a/docker/Dockerfile.agent.gpu +++ b/docker/Dockerfile.agent.gpu @@ -1,6 +1,6 @@ # Optional NVIDIA Agent image. ONNX Runtime 1.22 GPU uses CUDA 12.8 and cuDNN 9. # NVIDIA amd64 runtime image digest is pinned; it includes CUDA 12.8.1/cuDNN 9.8.0.87. -FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:fe0fd4e93bd2fbb47c883b7a6369e5c8d3db8bf01cdc5981f6ee35fbdf3ff4fb AS build WORKDIR /src ARG VERSION=0.0.0-local COPY global.json Directory.Build.props Directory.Build.targets ./ @@ -9,7 +9,7 @@ RUN dotnet restore src/Heimdall.Agent/Heimdall.Agent.csproj -p:HeimdallOnnxRunti RUN dotnet publish src/Heimdall.Agent/Heimdall.Agent.csproj -c Release --no-restore -o /out \ -p:HeimdallOnnxRuntime=GPU -p:Version=$VERSION -p:ContinuousIntegrationBuild=true -FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:de0ee358cdd672f7017a003bed21e9ac9ed48a27c922a59b18175b6e82fa7fee AS dotnet-runtime +FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:bfd912c83295ce66d4b706ebb8541b9f14259b0e76fbb88b2751f58ce2399d2e AS dotnet-runtime FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu24.04@sha256:9175fa92f96de35a8cfb9493f0dfcf9435c7a597e9d95ad41d2cae382a95e3f9 AS runtime WORKDIR /app diff --git a/skills/container-image-security/SKILL.md b/skills/container-image-security/SKILL.md index 84f076d..bcee015 100644 --- a/skills/container-image-security/SKILL.md +++ b/skills/container-image-security/SKILL.md @@ -11,4 +11,6 @@ Heimdall server, CPU Agent, and NVIDIA Agent images use Ubuntu 24.04 runtime lay For acceptance, build Central, CPU Agent, and NVIDIA Agent from the changed checkout under unique Compose image tags with synthetic credentials, loopback ports, project-scoped volumes/network, and an EXIT cleanup trap. Verify Central health and the native Agent installer and supervisor URLs; build the NVIDIA image without claiming GPU runtime validation. Scan all three built images with the same pinned Trivy version, vulnerability DB repositories, and HIGH/CRITICAL exit policy used by `scripts/ci/security.sh`. A passing acceptance requires zero HIGH/CRITICAL findings, successful teardown, no project containers/volumes/networks, and removal plus absence checks for every exact local tag. Retain upstream base and scanner images. +When Trivy reports fixed .NET runtime advisories, update the pinned SDK and ASP.NET runtime manifest-list digests together across all three Dockerfiles and every SDK container in `.gitea/workflows/build.yml`. CI must use the SDK matching the updated lockfile, or locked restore fails against stale SDK reference assets. Confirm the new tags and digests against Microsoft's .NET release notes and `docker buildx imagetools inspect`; keep the SDK major/minor aligned with `global.json`. For the November 2026 ASP.NET Core 10.0.15 security update, the `10.0-noble` tags must resolve to images containing runtime 10.0.15, which fixes CVE-2026-114146, CVE-2026-114147, and CVE-2026-114149. Do not suppress these findings or change the CI severity threshold. + The CI image scan is a merge gate. Do not publish or merge around a failed scan; inspect the report and correct the affected package, then rerun the complete workflow. Keep Gitea issue evidence split between disposable local acceptance and the actual CI publication run. diff --git a/src/Heimdall.Web/packages.lock.json b/src/Heimdall.Web/packages.lock.json index 646e7fe..398cd61 100644 --- a/src/Heimdall.Web/packages.lock.json +++ b/src/Heimdall.Web/packages.lock.json @@ -44,9 +44,9 @@ }, "Microsoft.AspNetCore.App.Internal.Assets": { "type": "Direct", - "requested": "[10.0.14, )", - "resolved": "10.0.14", - "contentHash": "T1IOYbID1msKjQEh684HebnN+Xnq/pocMXDukOMZtzzPTf9c4/30+/JndM/1txrqwuSYqWvLiAQWzu4U93cshw==" + "requested": "[10.0.15, )", + "resolved": "10.0.15", + "contentHash": "cineG7aU2cpo+CC5rDORY4bFRya0mlaULDpzQ+ncfG0tMyZlWATyVAo2P29i0hH40EElK5O204pjT4XEYALb6g==" }, "Microsoft.AspNetCore.OpenApi": { "type": "Direct",