Repository navigation
fix(docker): apply bookworm security updates in the image base - #2408
Merged
Merged
Conversation
The weekly Trivy image scan fails on the published images: the pinned bookworm-slim digest ships perl-base 5.36.0-7+deb12u3 (3 CRITICAL, 4 HIGH, fixed in deb12u4). The digest is already the current upstream tag; Debian publishes oldstable fixes to bookworm-security long before it rebuilds the slim image. Run `apt-get upgrade` in the base stage, and drop the gha layer cache from the release image build so the upgrade layer is never replayed stale. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The changes correctly refresh security packages for both image stages on every release build.
0 open findings
What changed in this PR
Updates published container images with current Debian Bookworm security fixes while preventing stale package layers from being reused.
Changes:
- Runs
apt-get upgradebefore installing runtime dependencies. - Disables Docker layer caching for release image builds.
| File | Description |
|---|---|
Dockerfile |
Applies available Bookworm security updates. |
.github/workflows/release.yml |
Forces uncached release image builds. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
3 of 5 tasks
thiras
added a commit
that referenced
this pull request
Oct 10, 2026
* chore(docker): move the image base to debian trixie-slim Bookworm is oldstable and has been in LTS since June 2026, with a reduced package set, and its stale slim image is what tripped the weekly Trivy scan (#2408). Pin debian:trixie-slim (Debian 13, glibc 2.41) by its multi-arch index digest instead. Dependabot only bumps the digest and never the codename, so the Dockerfile now says the release move is a manual edit. The release binaries are cross-built against the 2.31 floor, so they run unchanged. The release.yml glibc comments now name Debian 12 / RHEL 9 as the distributions a native build would break, since our own image no longer sits below the runner's glibc. Verified locally: both stages build and run `--version` on trixie, and Trivy (CRITICAL,HIGH, ignore-unfixed, as security.yml runs it) reports 0 findings on both images. Co-Authored-By: Claude Opus 5.5 <[email protected]> * docs: changelog entry for the trixie base and review fixups The CHANGELOG is all [Unreleased], so the digest-pin entry naming `bookworm-slim` described the shipped state; it now names `trixie-slim`, and a Changed entry records the move. The Dockerfile names every place a codename move touches, and the release.yml glibc comments say the floor is set by the release archives rather than the images, without repeating the distro list twice. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Summary
The weekly Security workflow's Trivy image scans fail on the published images (run 38047944439):
ghcr.io/decdn/decdn{,-node}:latestshipperl-base 5.36.0-7+deb12u3, with 3 CRITICAL and 4 HIGH CVEs fixed indeb12u4. The filesystem scan is already green after #2309.The pinned
bookworm-slimdigest is already the current upstream tag. Bookworm is oldstable, so Debian puts fixes inbookworm-securitylong before it rebuilds the slim image, and bumping the digest won't help.apt-get upgradein the base stage. This also picks up pending fixes for gnutls, lzma, pcre2, gcrypt and tzdata.no-cache: trueon the image build instead of using the gha layer cache. With the cache, the apt layer replays stale for as long as the digest andRUNtext stay the same, so later releases would miss new security fixes. The other layers copy each release's fresh binaries, so the cache saved nothing.Verification
decdnstage locally with stub binaries. Trivy 0.70.0 (--severity CRITICAL,HIGH --ignore-unfixed) reports 0 findings;perl-baseis5.36.0-7+deb12u4.:latest, so it stays red until the next release is cut from this change.🤖 Generated with Claude Code