Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2.6 KiB
name, description
| name | description |
|---|---|
| heimdall-container-image-security | Diagnose and repair vulnerabilities in Heimdall Central and Agent container images. |
Container image security updates
Read AGENTS.md, the image-scan/acceptance Gitea issue, skills/compose-disposable-recipe/SKILL.md, and skills/central-auto-updates/SKILL.md before changing runtime images or their publication path.
Heimdall server, CPU Agent, and NVIDIA Agent images use Ubuntu 24.04 runtime layers. When Trivy reports a fixed Ubuntu package, update the affected packages unless the image already establishes a broader OS-upgrade policy. For CVE-2026-109518, all three runtime Dockerfiles explicitly upgrade apt and libapt-pkg6.0t64 after apt-get update and assert that apt is at least 2.8.4ubuntu0.1 before installing runtime tools. The NVIDIA image retains its existing full OS upgrade as well. Keep Trivy severity and exit thresholds unchanged.
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.