Repository navigation
Closed
Labels
area:imageContainer image, Dockerfile, builddocsImprovements or additions to documentationsecurityVulnerability fixes or security improvements
Description
Tracking: #625
Context
A Nix-built image has no apt/dpkg database, so Trivy's OS-package scanner — the basis of the
current CVE workflow and the .trivyignore expiry register — goes dark. This is the headline
cost of the image cutover and must be addressed before publishing (#639). The signal is
replaced with vulnix (a nixpkgs-native CVE scanner) plus SBOM-based scanning.
Scope
In:
- Make
vulnixthe primary nightly CVE scanner. - Keep Trivy in CycloneDX SBOM mode for defense-in-depth.
- Rewrite
docs/CONTAINER_SECURITY.md: drop the apt--only-upgradeescape hatch; the CVE
lever becomes "advance the nixpkgs rev". - Rebuild the exception register with expiry around vulnix findings to preserve the
IEC 62304 audit story.
Out:
- Renovate wiring for
flake.lock(T3.2 — Renovatenixmanager forflake.lock#638).
Tasks
- Add a
vulnixnightly scan job - Emit a CycloneDX SBOM and feed Trivy in SBOM mode
- Rewrite
docs/CONTAINER_SECURITY.md - Rebuild the exception register with expiry around vulnix findings
Acceptance criteria
vulnixnightly runs.- Rewritten policy + expiry register reviewed.
- Objective gate (this is the go/no-go input for T4.1 — Publish-cutover to the Nix image (GATED) #639): no HIGH/CRITICAL vulnix finding on
the Nix image without a documented, expiring entry in the exception register. - Confidence check (not a pass/fail gate): Trivy-vs-vulnix findings compared over a
one-cycle overlap and the diff archived, to confirm no class of finding silently disappears
in the scanner switch. The two scanners cover different surfaces (apt packages vs Nix store),
so this is a documented comparison, not a numeric parity requirement.
Dependencies
- Depends-on: T2.1 — Nix-built devcontainer image (
buildLayeredImage), non-publishing #634. - Blocks: T4.1 — Publish-cutover to the Nix image (GATED) #639.
Files
.github/workflows/security-scan.ymldocs/CONTAINER_SECURITY.md- exception register (replacement for
.trivyignoresemantics)
Test notes
- The objective threshold (no unexcepted HIGH/CRITICAL) is the explicit gate input for T4.1 — Publish-cutover to the Nix image (GATED) #639;
the Trivy-vs-vulnix overlap diff is archived as supporting confidence evidence.
Related issues
- [CHORE] Clean up stale code-scanning alerts and consolidate Trivy scan categories #604 (consolidate Trivy scan categories / clean stale alerts) — its "single authoritative
scan + document the SSoT" goal is this issue's outcome under vulnix/SBOM. The
orphaned/stale-alert cleanup (thecontainer-image-scheduledand stalecontainer-image
categories) should still happen so zombies aren't carried into the new system. - Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #602 / Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #521 (nightly HIGH/CRITICAL gate issues) — these gates re-point from Trivy-on-apt
to vulnix; the apt-CVE surface they track changes with the Nix image. Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #521 (Apr) is already
stale vs Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #602 (Jun). Close once the new scan passes its gate (with T4.4 — Decommission the Debian path #642). - [DISCUSSION] Optimize CI pipeline for PRs to dev — full security scan on every PR? #109 (discussion: full security scan on every PR) — the category-consolidation decision
overlaps this thread; resolve together. - Adopt Nix/devenv for reproducible, auditable dependency management #27 (Adopt Nix/devenv) — provides the SBOM / IEC 62304 / air-gapped framing this issue
realizes (nix derivation show,nix flake archive).
Metadata
Metadata
Assignees
Labels
area:imageContainer image, Dockerfile, builddocsImprovements or additions to documentationsecurityVulnerability fixes or security improvements
Activity
ci(renovate): add nix manager and lockFileMaintenance for flake.lock (#…
test(vigutils): add failing tests for the vulnix CVE gate
feat(vigutils): add vulnix-gate to gate unexcepted HIGH/CRITICAL CVEs
feat(nix): add image scan-target env and pinned vulnix for CVE scanning
ci(security): add nightly vulnix CVE scan + CycloneDX SBOM for the Ni…
docs(security): re-author CONTAINER_SECURITY.md for the Nix/vulnix po…
ci(security): vulnix + SBOM CVE scanning for the Nix image (#637) (#660)
build(nix): stage the publish-cutover + advance nixpkgs to 26.05 (#639)…
c-vigo commentedon Jul 1, 2026
Delivered on
devvia the Nix-migration epic PR #670 (merged 2026-06-30) + PR #660 (commit 343234a). Nightlysecurity-scan.ymlruns vulnix (primary) + Trivy CycloneDX SBOM;vulnix_gate.pyis a blocking gate over.vulnixignore;docs/CONTAINER_SECURITY.mdre-authored. (Its CVE gate feeds the #639 cutover.) Closing as complete — this stayed open only because the epic merged todev(notmain) and these T/C-track issues carryTracking: #625but were never linked as GitHub sub-issues, so sync-issues auto-close never fired (tracked by #677). Refs #625.fix(ci): make the release Trivy image scan awareness-only (#850)
chore: release 0.4.0 (#195)
chore: release 0.4.0 (#813)
docs: retire the documented Debian fallback path (T4.4) (#889)