Scan the runtime image and drop non-production packages
Version: 3.2.0 Date: 2026-11-17
Goal: The image pushed to client clusters must be scannable in CI, and Critical or High findings must block a merge to master.
Solution: Build the runtime image from node:26-alpine, install production dependencies only, remove the npm CLI shipped in the base image, and run Trivy on that image.
Features:
scan:imagebuilds the image, fails on Critical and High, and publishes a CycloneDX SBOM- The job blocks merge requests to
master. Ondevelop, including a merge request intodevelop, it runs and is allowed to fail - Runtime image no longer contains devDependencies or the npm CLI
org.opencontainers.image.urlpoints at the public release notes
Files Modified:
docker/Dockerfile—node:26-alpine,npm ci --omit=dev, npm CLI removed from the final stagedocker/Dockerfile.local— local image base moved tonode:26-alpine.gitlab-ci.yml—scan:imagejob, Trivy binary and vulnerability DB cachedpackage.json/package-lock.json—body-parserandmulteroverrides, audit fixesui/package.json/ui/package-lock.json— Vite 7.3.7, Vitest 4.1.12, and overrides sonpm auditis cleandocs/user/package-lock.json— patchedsource-map-jsui/src/protocol/tower.mock.ts— demo tokens replaced with obvious placeholderssrc/core/task/task.service.spec.ts— fixture tokens shortenedsrc/core/configuration/configuration.service.spec.ts— fixture token shortenedsrc/protocol/capacities/webhook-capacity/webhook-capacity.service.spec.ts— fixture token shortenedsrc/utils/normalize-error.spec.ts— fixture token shortened
Release fragment: fix-image-scan