Skip to content

T3.1 — vulnix + SBOM CVE scanning; re-author security policy #637

Closed

Description

@c-vigo

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 vulnix the primary nightly CVE scanner.
  • Keep Trivy in CycloneDX SBOM mode for defense-in-depth.
  • Rewrite docs/CONTAINER_SECURITY.md: drop the apt --only-upgrade escape 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:

Tasks

  • Add a vulnix nightly 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

  • vulnix nightly 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

Files

  • .github/workflows/security-scan.yml
  • docs/CONTAINER_SECURITY.md
  • exception register (replacement for .trivyignore semantics)

Test notes

Related issues

Activity

  1. added
    docs
    area:image
    security
    on Jun 23, 2026
  2. c-vigo commented on Jul 1, 2026

    @c-vigo
    ContributorAuthor

    Delivered on dev via the Nix-migration epic PR #670 (merged 2026-06-30) + PR #660 (commit 343234a). Nightly security-scan.yml runs vulnix (primary) + Trivy CycloneDX SBOM; vulnix_gate.py is a blocking gate over .vulnixignore; docs/CONTAINER_SECURITY.md re-authored. (Its CVE gate feeds the #639 cutover.) Closing as complete — this stayed open only because the epic merged to dev (not main) and these T/C-track issues carry Tracking: #625 but were never linked as GitHub sub-issues, so sync-issues auto-close never fired (tracked by #677). Refs #625.

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

    area:imagedocssecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions