Repository navigation
Images: hadolint, Trivy image scan (app gates PRs), Debian security updates in the app image, daily live scan (sc-9611) - #259
Open
ndbroadbent wants to merge 1 commit into
Open
ndbroadbent wants to merge 1 commit into
ndbroadbent wants to merge 1 commit into
Conversation
… images (app gates pull requests, renderer reports until sc-9674); the app image takes Debian's security updates; the live app image scanned daily (sc-9611) The pinned debian:trixie-slim (Debian's newest) has fixable HIGH CVEs in openssl and zstd: the app's runtime stage now runs apt-get upgrade, with today's date as a build arg so BuildKit's cache never keeps old packages. FROM lines keep tags: CI pins them by digest through build-contexts (amd64-only digests would break local arm64 builds).
This branch has not been deployed
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.
Fourth PR for sc-9611: Dockerfile lint and image scanning. It's stacked on #257 and retargets as the stack merges.
hadolint 2.15.1, in CI's
securityjob and the pre-commit hook (.hadolint.yaml; fails on warnings):renderer.Dockerfilerebuilds the renderer, so they get fixed in that rebuild (sc-9674).Trivy on the built images (images job). It flags fixable HIGH/CRITICAL vulnerabilities, ignores carry an expiry in
.trivyignore.yaml, and it fails on forbidden licences (AGPL and the like):load: true) so it can be scanned; main still pushes it. On main the scan only reports, so a CVE published today never holds back a deploy.live-imagejob scans the app image production runs (the commitapi.visualci.com/statusreports), daily and on demand.It starts green. The pinned
debian:trixie-slimis still Debian's newest image, and it has fixable HIGH CVEs in openssl (libssl3t64 3.5.9 → 3.5.10) and zstd. The app's runtime stage now runsapt-get upgrade. CI passes today's date asSECURITY_UPDATES_DATE, so BuildKit's layer cache never keeps older packages. The renderer is untouched: editing its Dockerfile changes its inputs hash, and a rebuild pulls unpinned fonts/MuPDF/JDK packages that can move pixels. That's sc-9674, with a pixel-diff review before it merges.FROMstays tag-only, and AGENTS.md now says why. CI already replaces each base image with the digest-pinned mirror copy (build-contexts,.github/mirror.txt). Those digests are linux/amd64 only, so putting them inFROMwould break local builds on arm64.Checked locally: hadolint, actionlint and zizmor all come back clean. I couldn't scan the private GHCR images from this box (the gh token has no
read:packages); I scanned the public base image at the same digest instead. The PR's own images job is the real test of the app gate.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.