Repository navigation
fix(deploy): apply Debian security fixes in the control plane image - #525
Merged
Merged
Conversation
The pinned node:22-bookworm-slim (rebuilt 2026-11-24) carries linux-pam 1.5.2-6+deb12u2, which Trivy reports as CVE-2025-6020 (HIGH); Debian fixed it in bookworm-security (deb12u3) and no upstream image carries it yet. The runtime stage now applies Debian's security updates, so the required image scan passes without an exception: the image of Shipkeep accepts none. Signed-off-by: samuel mbabhazi <[email protected]>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 33 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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 changed
The runtime stage of
deploy/control-plane.Dockerfilenow applies Debian's security updates (apt-get upgrade) before installing the application, then removes the package lists.Why
The required check "Trivy control plane image" fails on every pull request since 2026-11-27, for example on #524, which only changes a Go test.
libpam0g,libpam-modules,libpam-modules-bin,libpam-runtime) carries CVE-2025-6020, rated HIGH.bookworm-security(1.5.2-6+deb12u3).node:22-bookworm-slim, rebuilt on 2026-11-24, still ships deb12u2. Bumping the base digest therefore does not help yet..trivyignore.yamlonly covers third-party images: the image of Shipkeep accepts no exception. So the image takes Debian's fix itself. From now on, a flaw Debian has fixed stops failing the scan without waiting for an upstream rebuild. Renovate still moves the base image.How it was tested
node:22-bookworm-slimas of today), the step upgrades exactly the four PAM packages, the only updates available, to 1.5.2-6+deb12u3.apt-getexits 0.Security considerations
The image now fetches packages from Debian's signed repositories at build time, as the build stage already does (
git,ca-certificates). Two builds made on different days may therefore differ by Debian security updates. A release is scanned before it is published (#354), so a published image is always the one that passed.