Skip to content

fix(deploy): apply Debian security fixes in the control plane image - #525

Merged
samuelmbabhazi merged 1 commit into
mainfrom
fix/control-plane-debian-security
Nov 27, 2026
Merged

samuelmbabhazi merged 1 commit into
mainfrom
fix/control-plane-debian-security

Conversation

@samuelmbabhazi

Copy link
Copy Markdown
Collaborator

What changed

The runtime stage of deploy/control-plane.Dockerfile now 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.

  • The finding: linux-pam 1.5.2-6+deb12u2 (libpam0g, libpam-modules, libpam-modules-bin, libpam-runtime) carries CVE-2025-6020, rated HIGH.
  • The fix: Debian fixed it in bookworm-security (1.5.2-6+deb12u3).
  • The base image: the newest node:22-bookworm-slim, rebuilt on 2026-11-24, still ships deb12u2. Bumping the base digest therefore does not help yet.

.trivyignore.yaml only 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

  • On the base image (node:22-bookworm-slim as of today), the step upgrades exactly the four PAM packages, the only updates available, to 1.5.2-6+deb12u3. apt-get exits 0.
  • This pull request's own "Trivy control plane image" job builds and scans the image.

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.

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]>
@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 53f58eb and b8f9b6c.

Files selected for processing: 1

  • deploy/control-plane.Dockerfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@samuelmbabhazi
samuelmbabhazi merged commit 9422707 into main Nov 27, 2026
27 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the fix/control-plane-debian-security branch November 27, 2026 07:39
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