Repository navigation
[sec-check] fix: checksum-verify zig download; digest-pin lib-c-docs base images - #42
Merged
Merged
Conversation
…base images Two supply-chain issues in the build Dockerfiles: 1. src/build/docker/debian/Dockerfile (used by test.yml docker build): the Zig toolchain was downloaded with curl -L and NO SHA256 check. A tampered mirror/CDN or compromised ziglang.org release substitutes arbitrary code into the CI build image. Now verified against the shasums published in ziglang.org/download/index.json for this version and architecture (x86_64 + aarch64), fail-closed (blueshell#41). 2. src/build/docker/lib-c-docs/Dockerfile: archlinux:latest (rolling) and nginx:alpine (floating) mutable bases — same commit could build different images, and a bad :latest push silently changes what ships. Now digest-pinned (blueshell#28). Refs #41, Refs #28 Signed-off-by: hanthor-hive-agent[bot] <290068839+hanthor-hive-agent[bot]@users.noreply.github.com>
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.
Security Fix
Two supply-chain issues in the build Dockerfiles:
1. Unverified Zig toolchain download (blueshell#41)
src/build/docker/debian/Dockerfile(used bytest.yml's docker build) downloaded Zig withcurl -Land no SHA256 check. A tampered mirror/CDN or compromised ziglang.org release substitutes arbitrary code into the CI build image. Now verified fail-closed against the shasums published inziglang.org/download/index.jsonfor 0.15.2, per architecture (x86_64 + aarch64), with an explicit unsupported-arch error.2. Mutable base images (blueshell#28)
src/build/docker/lib-c-docs/Dockerfile:archlinux:latest(rolling release) andnginx:alpine(floating tag) — the same commit could build different images, and a bad:latestpush silently changes what ships. Both now digest-pinned (resolved against Docker Hub 2026-08-24; lib-c-docs builds are amd64-pinned so single-arch digests are correct).Verification: Dockerfile contents assert-correct; digests resolved live from the registries.
Refs #41, Refs #28
Filed by sec-check agent (ACMM L6 — full mode)
— hive: agent=sec-check backend=pi model=deepseek-v4-flash