Skip to content

fix(dev-image): move the runtime stage to distroless cc-debian13 - #1089

Merged
LeeroyHannigan merged 1 commit into
mainfrom
fix/dev-image-debian13
Nov 17, 2026
Merged

LeeroyHannigan merged 1 commit into
mainfrom
fix/dev-image-debian13

Conversation

@LeeroyHannigan

Copy link
Copy Markdown
Collaborator

What

Dockerfile.dev builds its runtime stage on gcr.io/distroless/cc-debian13:nonroot instead of gcr.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.md names the new base. The build stage stays on rust:1.91.1-bookworm.

Why

The vulnerability gate of release-dev-image fails on the Debian 12 base, so the release cannot publish extenddb-dev 0.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:nonroot tag has the same libssl3. The extenddb binary 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-run ran on this commit's tree for linux/amd64, with --no-cache and the release build arguments:

  • Build: exit 0.
  • Architecture: amd64.
  • Vulnerability gate (pinned trivy, release flags): exit 0, no finding on Debian 13.7.
  • SBOM: devtools/check-image-sbom exits 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 runs devtools/generate-dev-license-notices --check in licenses.yml.

The two bases, compared from their package lists and image configuration:

  • libc6 is 2.41-12+deb13u4 in the new base and 2.36-9+deb12u14 in the old base. The 0.1.14 dev binary links only libgcc_s.so.1, libm.so.6 and libc.so.6, and Cargo.lock has no openssl or openssl-sys crate.
  • Both bases run as user 65532 and set SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt.
  • linux/arm64: these results cover the base only. Its manifest has the same 14 packages and versions as linux/amd64, and the pinned trivy gate exits 0 on it. The arm64 build job of the release runs the smoke test before the release publishes anything.

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

  • I have read CONTRIBUTING.md
  • All tests pass (cargo test --workspace)
  • Code is formatted (cargo fmt --check)
  • Clippy is clean (cargo clippy -- -W clippy::pedantic)
  • I have added or updated tests for new functionality
  • I have updated documentation if behavior changed
  • Breaking changes are noted below (if any)
  • If this changes the wire protocol, Storage trait, auth model, on-disk
    format, 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.

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
LeeroyHannigan merged commit d6a24c0 into main Nov 17, 2026
51 checks passed
@LeeroyHannigan
LeeroyHannigan deleted the fix/dev-image-debian13 branch November 17, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant