Skip to content

fix(security): reconcile both exception registers against landed remediation - #1611

Merged
c-vigo merged 2 commits into
devfrom
chore/reconcile-exception-registers
Sep 7, 2026
Merged

c-vigo merged 2 commits into
devfrom
chore/reconcile-exception-registers

Conversation

@c-vigo

@c-vigo c-vigo commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

Reconciles both CVE exception registers against remediation that has already
landed. Nothing is renewed or re-dated here: every entry removed is one that no
longer matches a finding, and every entry kept was re-verified against a live
scan.

  • .vulnixignore — the 8-entry rsync block (Expiration: 2026-09-23) is
    deleted 16 days before its expiry. The weekly pin advance c5c4a43b →
    c25784012c (build(nix): advance pinned nixpkgs rev (weekly refresh) #1609) ships rsync 3.5.0, past all 17 advisories of the
    2026-09-01 batch.
  • .trivyignore — the three surviving blocks (CVE-2026-42504,
    jwt-token, CVE-2026-32316/CVE-2026-40164) are retired. All three were
    written against the Debian :latest image, whose Trivy job left with the
    Debian path (T4.4 — Decommission the Debian path #642); the Nix image inherited the file but none of the findings.

Both files keep tombstones in place of the deleted entries, per the register
convention, so the history of why an exception existed and how it died stays
in the file.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

.vulnixignore: the rsync block dies on remediation

The block was placed earliest on the staggered grid precisely because its
remediation lever moved soonest: the fix needed one staging-next-26.05 →
release-26.05 → nixos-26.05 hop (NixOS/nixpkgs#557467), which the weekly
update-nixpkgs.yml advance then picks up on its own. That is exactly what
happened, one grid period early.

Evidence — the first nightly scan on the new closure (run 34108767776, dev
lane, checkout 1867537d = the merge of #1609):

dev (new pin) main (old pin)
rsync absent rsync-3.4.4, 17 CVEs
glibc 2.42-84 2.42-67 + 2.42-84
delta 17 removed, 0 added —

rsync is still a direct member of the image env (flake.nix), so this is
remediation, not a closure change; the locally built closure on this branch
contains rsync-3.5.0.

The other 14 entries were re-checked in the same pass and every one still
matches a live finding
— glibc ×6 (10-14), zlib/sqlite/libmicrohttpd ×5
(09-30), fzf ×2 (10-07), shellcheck CPE mismatch (2027-06-23). None is renewed
or re-dated; the remaining grid is unchanged.

main still ships rsync 3.4.4 and keeps the block until the next release train
carries the pin and the register over together, so this opens no gap there.

.trivyignore: retired to an empty register

Each entry had its own reason to be gone, and none of the three could ever have
fired against the Nix image:

The file itself is kept, not deleted: it stays the seam for genuine Nix-image
Trivy findings and secret false positives (docs/CONTAINER_SECURITY.md). With
no entries, check-expirations has nothing to expire.

Changelog Entry

### Security

- **Exception register reconciled against the 2026-09-07 pin advance — the
  rsync block deleted, nothing renewed**
  ([#1592](https://github.com/vig-os/devkit/issues/1592),
  [#1593](https://github.com/vig-os/devkit/issues/1593))
  - The weekly pin advance `c5c4a43b` → `c25784012c`
    ([#1609](https://github.com/vig-os/devkit/pull/1609)) ships rsync 3.5.0, so
    every one of the 17 advisories from the 2026-09-01 batch — the 8 excepted
    in `.vulnixignore` and the 9 below the gate's CVSS 7.0 threshold — is gone
    from the image closure. The block is deleted (tombstoned) 16 days before
    its 2026-09-23 expiry: the "dies on remediation" exit its own note asked
    for, and the reason it was placed earliest on the staggered grid
  - Verified against the first scan on the new closure (run 34108767776, dev
    lane): 17 findings removed, 0 added, no other package touched. The
    remaining 14 entries each still match a live finding and stand unchanged on
    their staggered Wednesdays — none renewed, none re-dated

- **`.trivyignore` retired to an empty register — the last three Debian-era
  exceptions removed** ([#512](https://github.com/vig-os/devkit/issues/512),
  [#564](https://github.com/vig-os/devkit/issues/564),
  [#805](https://github.com/vig-os/devkit/issues/805))
  - All three surviving blocks — the `gh` Go-stdlib `CVE-2026-42504`, the
    `jwt-token` secret-scan false positive and the Debian jq pair
    `CVE-2026-32316`/`CVE-2026-40164` — were written against the Debian
    `:latest` image, whose Trivy job left with the Debian path
    ([#642](https://github.com/vig-os/devkit/issues/642)). The Nix image
    inherited the file but none of the findings
  - Confirmed by scanning the current image with **no ignore file** (trivy
    0.72.0, `vuln,secret`, HIGH/CRITICAL/MEDIUM, closure built from the
    `c25784012c` pin): 63 unique vulnerabilities, zero secret findings, none of
    the three excepted IDs among them. The Nix image's Go binaries are built on
    stdlib 1.26.7 (past the 1.26.4 the block awaited), it ships jq 1.8.2 with
    no dpkg DB to match Debian's 1.6, and it has no `/opt/pre-commit-cache`
  - The file itself stays as the seam for genuine Nix-image Trivy findings and
    secret false positives; with no entries there is nothing left to expire

Testing

  • Tests pass locally (just test) — see the note on two unrelated local failures below
  • Manual testing performed (describe below)

Manual Testing Details

Registers are config, so the verification is the scan evidence itself:

  1. vulnix gate, edited register vs the new closure's findings —
    gh run download 34108767776 -n nix-image-cve-scan-dev, then
    uv run vulnix-gate vulnix-findings.json --register .vulnixignore →
    No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 14 exception(s) applied.
  2. Register-vs-findings reconciliation — every one of the 14 surviving
    entries matches a live finding in that artifact; the 8 removed ones match
    none.
  3. Trivy, with no ignore file — nix build .#devkitImage on this branch,
    then trivy image --input result --scanners vuln,secret --severity HIGH,CRITICAL,MEDIUM (trivy 0.72.0 from the pinned nixpkgs; CI runs 0.74.0):
    63 unique vulnerabilities, 0 secret findings, and none of
    CVE-2026-42504, CVE-2026-32316, CVE-2026-40164 present. The secret
    scanner is confirmed enabled in that run's log.
  4. uv run check-expirations .trivyignore .vulnixignore → green;
    prek run --all-files → green.
  5. just test → 1169 passed, 3 skipped, 2 failed. Both failures are local
    environment artefacts, not this diff, which touches only the two registers
    and the changelog pair:
    • test_image.py::TestFileStructure::test_manifest_files — checksum
      mismatch on /root/assets/workspace/.pymarkdown between the working tree
      and the locally cached image, which predates 8e7c4916 (the pymarkdown
      fixer change on dev). CI builds the image from the branch and does not
      see it.
    • test_integration.py::TestDevContainerCLI::test_github_cli_authentication
      — needs a host gh token forwarded into the devcontainer.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Docs need no edit: docs/CONTAINER_SECURITY.md describes the registers'
mechanics and conventions, not their contents, and both survive this change
unchanged. No tests are added for the same reason — the registers are data
consumed by check-expirations/vulnix-gate, both already covered.

Additional Notes

Follow-up this enables: #1592/#1593 were closed when the exception landed;
the underlying finding is now gone from dev for real, and will be gone from
main once the next release train carries the pin over.

Refs: #1592, #1593, #512, #564, #805, #642, #1609

The weekly pin advance c5c4a43b -> c25784012c (#1609) ships rsync 3.5.0,
so all 17 advisories of the 2026-09-01 batch are gone from the closure:
the 8 entries excepted here and the 9 that fell under the gate's CVSS 7.0
threshold. The block is deleted rather than renewed, 16 days before its
2026-09-23 expiry — the staging-next-26.05 backport (NixOS/nixpkgs#557467)
it was waiting on needed the single release-26.05 -> nixos-26.05 hop its
note predicted, which is why it sat earliest on the staggered grid.

Verified against the first scan on the new closure (run 34108767776, dev
lane, checkout 1867537): rsync is absent from the findings while still a
direct member of the image env, and the delta against the main lane is 17
removed / 0 added. The other 14 entries were re-checked in the same pass
and all still match live findings; none is renewed or re-dated. Local
gate re-run against that artifact: green, 14 exceptions applied.

Refs: #1592
All three surviving .trivyignore blocks were written against the Debian
:latest image, whose Trivy job was removed with the Debian path (#642).
The Nix image inherited the file but none of the findings, so the entries
have been suppressing nothing: scanned with NO ignore file (trivy 0.72.0,
image --input <devkitImage tar> --scanners vuln,secret --severity
HIGH,CRITICAL,MEDIUM, closure built from the c25784012c pin), the image
reports 63 unique vulnerabilities and zero secret findings, and none of
CVE-2026-42504, jwt-token, CVE-2026-32316 or CVE-2026-40164 is among them.

Each had its own reason to be gone: the image's gobinaries are built on
Go stdlib v1.26.7, past the 1.26.4 rebuild CVE-2026-42504 waited for; it
ships jq 1.8.2 and has no dpkg DB for Trivy's OS scanner to match Debian's
1.6-2.1+deb12u1 against, which was the jq block's own escape condition;
and the jwt-token match lived in typos source fixtures under
/opt/pre-commit-cache, a path the Nix image does not have (prek caches at
/opt/prek-cache) since it ships typos as a prebuilt binary.

The register is now empty but kept: it stays the seam for genuine
Nix-image Trivy findings and secret false positives, and with no entries
check-expirations has nothing to expire.

Refs: #512
@c-vigo
c-vigo merged commit f5466d8 into dev Sep 7, 2026
12 checks passed
@c-vigo
c-vigo deleted the chore/reconcile-exception-registers branch September 7, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant