Skip to content

Triage and refresh vulnerable components in distributed deployment images #480

Done

Description

@samuelmbabhazi

Scope

Triage and refresh the vulnerable components in Shipkeep's published control-plane image and the third-party images pinned for installation. This follows the 2026-11-25 security audit of main 1295e534d7a1c3cd0a492449de8806aa532a4924 and the latest published release v0.1.0-alpha.3.

Priority: P2 maintenance/security review. Coordinate updates with #338. This is not #266 (a product feature to scan users' application images), and it does not replace the pre-publication release gate addressed by #337.

Scan evidence

Trivy 0.70 scanned the exact image references below on 2026-11-25 with a vulnerability database updated that morning. Counts are distinct advisory IDs per image, not package occurrences and not a count of proven exploitable vulnerabilities. These are inventory totals before applying the project's accepted-risk exclusions; they are not a claim that the security workflow fails on every item.

Image Distinct alerts Critical High
Published control plane v0.1.0-alpha.3, amd64 121 1 12
Pinned PostgreSQL 17 245 2 62
Pinned Caddy 2.11.9-alpine 14 0 2
Pinned VictoriaMetrics v1.155.0 9 0 1
Pinned VictoriaLogs v1.54.0 0 0 0

Exact scanned references:

ghcr.io/shipkeepdev/shipkeep@sha256:e54bd06357fc5b3c2045408bd99749484af361c5a84ba5fd2f13cb49a8d793f6
postgres:17@sha256:0d938e975177bef9f1f61f3f9dbcf2e0aa0a139568f66d3415ed8892eb97f6ac
caddy:2.11.9-alpine@sha256:003a97808e781aa9f7e75cc2f43d34d461099031faf5e20faefb9f61126836f0
victoriametrics/victoria-metrics:v1.155.0@sha256:f60dc268b54ecf87f6e09d740c2b732838aa9193090cc741417c9f6386a130df
victoriametrics/victoria-logs:v1.54.0@sha256:ee4e820cac3721f5f5d91641b950c22439593adc4224f9655e5333d5a84c1dfe

The release image is the verified amd64 manifest for alpha.3, not an old locally cached image. A new image built from current main and the other supported architectures were not scanned in this audit.

Triage needed, not blanket severity claims

  • The published control-plane image includes effect 3.20.0, flagged as high for CVE-2026-121707 with a fix at 3.22.1. Current source dependency scanning and an already-published artifact are different inventories: upgrading the source does not replace an existing release image.
  • The critical zlib alert CVE-2023-45853 in the Debian Bookworm release image is not by itself evidence of an affected executable path. Debian's tracker explains the contrib/minizip build distinction. Record the vendor disposition instead of presenting the raw score as confirmed exposure.
  • The PostgreSQL inventory includes libxml2 CVE-2026-6653 and Go TLS CVE-2025-68121 in gosu. The latter's TLS reachability was not demonstrated; gosu switches user at container startup. The repository already has explicit, expiring exclusions for gosu and other third-party-image cases.
  • Caddy and VictoriaMetrics include golang.org/x/net v0.60.0 flagged for CVE-2026-78661, with a module fix at 0.62.0. Applicability and availability of an upstream rebuilt image need review; a module fix does not automatically imply that an official replacement image exists.
  • Review the existing .trivyignore.yaml exceptions and their expiry dates. Do not silently broaden them or apply third-party-image exceptions to Shipkeep's own image.

Acceptance criteria

  • Record a per-advisory disposition for high/critical findings: affected and patched, vendor-confirmed not affected, or explicitly accepted with owner/reason/expiry. Preserve component/path scope where applicable.
  • Update available supported base-image and third-party-image digests; avoid unrelated major upgrades. Track unavailable upstream fixes separately.
  • Produce a new release artifact containing applicable source/dependency fixes, after its normal signature, SBOM, scan and release checks. Keep the distinction between immutable old release artifacts and the replacement release explicit.
  • Rescan the exact new digests for all supported release architectures; retain machine-readable results and database dates so counts can be reproduced.
  • Verify startup/readiness, PostgreSQL migration/backup compatibility, Caddy routing, metrics/log ingestion and the documented upgrade path with the refreshed images.
  • Do not close this solely because pnpm audit is clean or because raw severity counts decrease.

Activity

  1. samuelmbabhazi commented on Nov 25, 2026

    @samuelmbabhazi
    CollaboratorAuthor

    Closed by #502. Evidence against each acceptance criterion:

    • Per-advisory disposition for high and critical findings.
    • Refreshed digests. chore(deploy): refresh the pinned image digests, VictoriaMetrics 1.157.0 #497: postgres:17, node:22-bookworm-slim, golang:1.26-bookworm, VictoriaMetrics 1.157.0. The Caddy fix has no upstream image yet; it is accepted until 2026-12-18.
    • A replacement release after its checks.
    • Rescan of the exact new digests, every architecture, reproducible.
      • Trivy 0.70.0 with the database of 2026-11-25 13:07 UTC, on linux/amd64 and linux/arm64: 121 distinct advisories, 1 critical, 11 high, none fixable, no secret.
      • The findings, the command and the manifest digests are in docs/security/scans/control-plane-v0.1.0-alpha.5.json.
    • Startup, migrations, backups, Caddy routing, metrics and logs, upgrade path. Run on 2026-11-25 in fresh Ubuntu 24.04 containers with systemd, following docs/INSTALL.md. The details are in its "What has been tested" section:
      • a single-machine install;
      • a deployment pulled through the egress proxy and routed by Caddy;
      • log search and charts;
      • backup and restore;
      • the upgrade from alpha.3 with a separate server, including a backup taken before up -d and a restore of that backup into alpha.5.

    Found on the way:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions