Repository navigation
fix(security): reconcile both exception registers against landed remediation - #1611
Merged
Merged
Conversation
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
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.
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) isdeleted 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 the2026-09-01 batch.
.trivyignore— the three surviving blocks (CVE-2026-42504,jwt-token,CVE-2026-32316/CVE-2026-40164) are retired. All three werewritten against the Debian
:latestimage, whose Trivy job left with theDebian 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 featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.vulnixignore: the rsync block dies on remediationThe 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.05hop (NixOS/nixpkgs#557467), which the weeklyupdate-nixpkgs.ymladvance then picks up on its own. That is exactly whathappened, one grid period early.
Evidence — the first nightly scan on the new closure (run
34108767776, devlane, checkout
1867537d= the merge of #1609):dev(new pin)main(old pin)rsync-3.4.4, 17 CVEs2.42-842.42-67+2.42-84rsyncis still a direct member of the image env (flake.nix), so this isremediation, 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.
mainstill ships rsync 3.4.4 and keeps the block until the next release traincarries the pin and the register over together, so this opens no gap there.
.trivyignore: retired to an empty registerEach entry had its own reason to be gone, and none of the three could ever have
fired against the Nix image:
CVE-2026-42504(Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #512, security(image): refresh bundled gh and uv to clear Go and Rust CVEs #564) — Go stdlib MIME header DoS, matched via theghbinary Debian shipped on Go 1.26.3. Every gobinary in the Nix imagereports stdlib v1.26.7, past the 1.26.4 rebuild the block was waiting for.
jwt-token(Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #512) — secret-scan false positive on a JWT-like string intypos crate test fixtures under
/opt/pre-commit-cache. The Nix image has nosuch path (prek caches at
/opt/prek-cache) and ships typos as a prebuiltbinary, not its source fixtures.
CVE-2026-32316/CVE-2026-40164(Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #805, Nightly security scan: HIGH/CRITICAL vulnerabilities in :latest #512) — jq DoS/RCE scoped toDebian
jq/libjq11.6-2.1+deb12u1. The image has no dpkg DB for Trivy's OSscanner and ships jq 1.8.2. The block's own escape condition was "time-box the
ignore until the Nix image ships" — it has.
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). Withno entries,
check-expirationshas nothing to expire.Changelog Entry
Testing
just test) — see the note on two unrelated local failures belowManual Testing Details
Registers are config, so the verification is the scan evidence itself:
gh run download 34108767776 -n nix-image-cve-scan-dev, thenuv run vulnix-gate vulnix-findings.json --register .vulnixignore→No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 14 exception(s) applied.entries matches a live finding in that artifact; the 8 removed ones match
none.
nix build .#devkitImageon 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-40164present. The secretscanner is confirmed enabled in that run's log.
uv run check-expirations .trivyignore .vulnixignore→ green;prek run --all-files→ green.just test→ 1169 passed, 3 skipped, 2 failed. Both failures are localenvironment artefacts, not this diff, which touches only the two registers
and the changelog pair:
test_image.py::TestFileStructure::test_manifest_files— checksummismatch on
/root/assets/workspace/.pymarkdownbetween the working treeand the locally cached image, which predates
8e7c4916(the pymarkdownfixer change on
dev). CI builds the image from the branch and does notsee it.
test_integration.py::TestDevContainerCLI::test_github_cli_authentication— needs a host
ghtoken forwarded into the devcontainer.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Docs need no edit:
docs/CONTAINER_SECURITY.mddescribes 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/#1593were closed when the exception landed;the underlying finding is now gone from
devfor real, and will be gone frommainonce the next release train carries the pin over.Refs: #1592, #1593, #512, #564, #805, #642, #1609