Repository navigation
build(nix): advance pinned nixpkgs rev (weekly refresh) - #1609
Merged
Merged
Conversation
c-vigo
enabled auto-merge
September 7, 2026 09:38
10 of 22 tasks
c-vigo
added a commit
that referenced
this pull request
Sep 7, 2026
…diation (#1611) ## 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` (#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 (#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 - [x] `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: - **`CVE-2026-42504`** (#512, #564) — Go stdlib MIME header DoS, matched via the `gh` binary Debian shipped on Go 1.26.3. Every gobinary in the Nix image reports **stdlib v1.26.7**, past the 1.26.4 rebuild the block was waiting for. - **`jwt-token`** (#512) — secret-scan false positive on a JWT-like string in typos crate test fixtures under `/opt/pre-commit-cache`. The Nix image has no such path (prek caches at `/opt/prek-cache`) and ships typos as a prebuilt binary, not its source fixtures. - **`CVE-2026-32316` / `CVE-2026-40164`** (#805, #512) — jq DoS/RCE scoped to Debian `jq`/`libjq1` 1.6-2.1+deb12u1. The image has no dpkg DB for Trivy's OS scanner 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`). With no entries, `check-expirations` has nothing to expire. ## Changelog Entry ```markdown ### Security - **Exception register reconciled against the 2026-09-07 pin advance — the rsync block deleted, nothing renewed** ([#1592](#1592), [#1593](#1593)) - The weekly pin advance `c5c4a43b` → `c25784012c` ([#1609](#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](#512), [#564](#564), [#805](#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](#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 - [x] Tests pass locally (`just test`) — see the note on two unrelated local failures below - [x] 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 - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [x] 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
Merged
vig-os-release-app Bot
added a commit
that referenced
this pull request
Sep 7, 2026
# [Release 1.14.0](https://github.com/vig-os/devkit/releases/tag/1.14.0) - 2026-09-07 This PR prepares release 1.14.0 for merge to main. ## [1.14.0](https://github.com/vig-os/devkit/releases/tag/1.14.0) - 2026-09-07 ### Added - **`DEVKIT_DEV_PROFILE_PATH`: keep the CI dev-shell gcroot across ephemeral self-hosted jobs** ([#1601](#1601)) - In `direnv` mode, `setup-devkit-toolchain` realises the repo's dev-shell into a Nix profile under `$RUNNER_TEMP` — a gcroot that dies with the job. Correct on a hosted runner, wrong on an ephemeral self-hosted one, whose `/nix/store` persists: nothing roots the closure between jobs, so the host's `nix.gc` collects it and every run re-realises the dev-shell. Measured on a heavy dev-shell: a 26 s toolchain step becoming 180–237 s, in each of the three lanes that run per CI run - The new optional `.vig-os` key names an absolute, persistent, runner-writable path for that profile. `resolve-toolchain` reads and vets it and emits a `dev-profile-path` output; the `lint`, `test` and `commit-checks` lanes — the ones `DEVKIT_CI_RUNNER` can move onto your runner — plumb it into the toolchain action's new `dev-profile-path` input - A value that could never persist (relative, or inside the runner's `_work`/`_temp` tree) is refused at resolve time, before any lane realises a dev-shell; a path the host cannot create or write fails the toolchain step itself. Neither falls back silently — a job-scoped gcroot is indistinguishable from the bug - Absent or empty (the shipped default) keeps `$RUNNER_TEMP/devkit-dev-profile` byte for byte, so hosted and self-hosted consumers alike are unchanged. The key round-trips a `--force` upgrade like the other manifest knobs. See [Keep the dev-shell gcroot across ephemeral self-hosted jobs](docs/MIGRATION.md#keep-the-dev-shell-gcroot-across-ephemeral-self-hosted-jobs) - **`vigos.multiplexer`: org tmux keybindings and terminal defaults** ([#1605](#1605)) - The module set five options and no keybindings, so every consumer re-derived the same `extraConfig` — and a host running it bare (a shared remote development guest, a devcontainer) got none of it. `prefix + X`, kill the current session, is the concrete case: unbound in stock tmux, so a habit built on one machine silently did nothing on the next - `programs.tmux.terminal` now defaults to `tmux-256color`; home-manager's default is `screen`, which advertises 8 colors and no italics. Everything the org ships that draws color — starship, neovim, delta, lazygit, `gh-dash` — was rendering degraded the moment it ran inside tmux, on every host. A `terminal-overrides` line adds truecolor on top - New bindings: `prefix + X` kills the session behind a confirm prompt; splits and new windows inherit the pane's cwd; `v`/`y` in copy mode match the module's own vi `keyMode`; `h`/`j`/`k`/`l` select panes. New settings: `renumber-windows`, `focus-events`, `set-clipboard` (OSC 52 — a yank on a remote host reaches the local clipboard with no X forwarding), `detach-on-destroy off`, and per-session terminal titles - Two behaviour changes for a host already enabling the module: `prefix + l` is now `select-pane -R` rather than `last-window`, and a client whose session is destroyed switches to another live session instead of dropping to a shell (it still detaches if that was the last session). Everything else is additive or a `mkDefault` a bare assignment overrides - The block lands before any `lib.mkAfter` definition and tmux takes the *last* binding of a key, so a consumer takes a key back through `programs.tmux.extraConfig = lib.mkAfter …` — the same seam `vigos.sesh` already uses for `bind o` ### Changed - **CI cancels superseded runs instead of letting them burn runner slots** ([#1602](#1602)) - `ci.yml` carried no `concurrency` block, so a force-push or a rapid follow-up push left the previous run's every lane — lint, test, commit-checks, scaffold-drift, summary — running to completion for a commit that no longer matters. Wasted billed minutes on a hosted runner; worse on a self-hosted consumer with a small fixed slot pool, where the stale run holds the slots and the replacement run queues behind its own predecessor - Runs are now grouped per workflow and per ref, so a superseded `pull_request` or `workflow_dispatch` run is cancelled while distinct refs (other PRs, dispatches on other branches) stay independent. Consumers pick this up through the normal adoption PR; a hand-added block was never an option, since `ci.yml` is a managed file and the edit failed `scaffold-drift` - The cancel is conditioned on the event not being `push`: neither trigger is `push` today, but a deploy gating on the exact-commit CI run stays satisfiable if one is ever added - Existing gate semantics are unchanged: a cancelled run cannot green the required check (the summary job already trips on `cancelled`), and the release-PR CI gate evaluates only the latest run per check name, so a superseded run cannot refuse a branch that is green #### Dependencies - Update `cachix/cachix-action` from `5f2d7c5` to `38b0826` ([#1607](#1607)) - Update `vig-os/commit-action` from `v0.3.2` to `v0.3.3` ([#1608](#1608)) ### Fixed - **The scaffolded upgrade workflow now trusts your flake's own `nixConfig`** ([#1599](#1599)) - `devkit-upgrade.yml` installed Nix with only `experimental-features`, so a repo whose `flake.nix` declares `nixConfig.extra-substituters` had them ignored on both Nix legs of the job — `install.sh`'s `nix flake update` and the `nix develop` commit — each printing a `warning: ignoring untrusted flake configuration setting` pair and resolving the dev-shell against `cache.nixos.org` alone - The installer step now carries the same four settings `setup-devkit-toolchain` has always passed (`accept-flake-config` plus the vig-os Cachix substituter and its public key), so the two Nix entry points a consumer repo has behave identically - Unchanged: the image's baked `nix.conf` still does not set `accept-flake-config`. That ([#773](#773)) was about trusting a *foreign* flake run inside the container; this is a per-runner setting in a job that evaluates the consumer's own repo flake and nothing else - Consumers pick this up on their next adoption PR; no repo-side edit is needed ### Security - **Exception register reconciled against the 2026-09-07 pin advance — the rsync block deleted, nothing renewed** ([#1592](#1592), [#1593](#1593)) - The weekly pin advance `c5c4a43b` → `c25784012c` ([#1609](#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](#512), [#564](#564), [#805](#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](#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
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.
Scheduled advance of the pinned stable nixpkgs rev - the primary CVE-remediation lever (docs/CONTAINER_SECURITY.md). Full CI on this PR, including the closure rebuild, is the merge gate.
After merge, the first nightly security scan produces the findings delta against the new closure; reconcile the exception registers against that delta (delete cleared entries) rather than re-dating them.
Refs: #1565