Repository navigation
fix(dev-image): move the runtime stage to distroless cc-debian13 - #1089
Merged
Merged
Conversation
The vulnerability gate of release-dev-image (trivy, --ignore-unfixed, HIGH and CRITICAL) fails on the pinned gcr.io/distroless/cc-debian12:nonroot base. Its libssl3 3.0.20-1~deb12u2 has CVE-2026-84782, fixed in 3.0.22-1~deb12u2, and the current cc-debian12:nonroot tag has the same libssl3. The extenddb binary does not link libssl, but the gate scans every package in the image. The runtime stage now uses gcr.io/distroless/cc-debian13:nonroot, pinned by the digest of its multi-platform index, which includes linux/amd64 and linux/arm64. Its libc6 is 2.41 and cc-debian12's is 2.36, so the binary that the build stage links on Debian 12 runs on it. The user (65532) and SSL_CERT_FILE are unchanged. docs/dev-image.md names the new base.
LeeroyHannigan
requested review from
amrith,
c33howard,
eliseong,
hitesh96db,
jcshepherd,
navareamol,
pdf-amzn and
robinnsc
as code owners
November 17, 2026 13:06
6 of 8 tasks
5 of 8 tasks
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.
What
Dockerfile.devbuilds its runtime stage ongcr.io/distroless/cc-debian13:nonrootinstead ofgcr.io/distroless/cc-debian12:nonroot. The pin is the digest of the multi-platform index, which includes linux/amd64 and linux/arm64.docs/dev-image.mdnames the new base. The build stage stays onrust:1.91.1-bookworm.Why
The vulnerability gate of
release-dev-imagefails on the Debian 12 base, so the release cannot publishextenddb-dev0.1.15. The gate runs the pinned trivy 0.76.0 with--ignore-unfixed --severity HIGH,CRITICAL. It reports CVE-2026-84782 in libssl3 3.0.20-1deb12u2, which Debian fixed in 3.0.22-1deb12u2. The dry runs 43422518630 (13 Nov) and 43788743517 (16 Nov) stopped on this finding.A new Debian 12 digest does not pass the gate either: the current
cc-debian12:nonroottag has the same libssl3. Theextenddbbinary does not link libssl, but the gate scans every package in the image.No issue tracks this. #1069 lists the dev image failure under "Before running the release workflows".
Testing done
These dev image steps of
devtools/release-dry-runran on this commit's tree for linux/amd64, with--no-cacheand the release build arguments:devtools/check-image-sbomexits 0 (349 components, 333 of them crates).ci/smoke-test-dev-container.sh: PASS.These steps ran outside
devtools/release-dry-run, because that script exits when Docker Compose v2 is missing on the host. The dev smoke test does not use Compose. CI runsdevtools/generate-dev-license-notices --checkinlicenses.yml.The two bases, compared from their package lists and image configuration:
Cargo.lockhas noopenssloropenssl-syscrate.SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt.No pull request workflow builds
Dockerfile.dev, so these runs are the only test of the image before the tag. The change has no Rust code. CI runs the workspace tests and Clippy.Checklist
cargo test --workspace)cargo fmt --check)cargo clippy -- -W clippy::pedantic)Storagetrait, auth model, on-diskformat, or public CLI surface, an RFC has been accepted or is linked
below. Otherwise, an ADR captures the decision (link below).
ADR / RFC: n/a
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache License 2.0 and I agree to the Developer Certificate of
Origin (DCO). See CONTRIBUTING.md for details.