Repository navigation
fix(security): reconcile expired vulnix exceptions (1.18.1) - #1973
Merged
Merged
Conversation
Record the exact source hash, derivation, applied patch count and fixed code location for the retained CVE-2026-5435 exception. Documentation only; no runtime behavior changes. (cherry picked from commit 4d5f27e) Refs: #1847
8 of 9 tasks
gerchowl
added a commit
that referenced
this pull request
Oct 30, 2026
…1972) ## Description Carry #1967 from PR #1968 onto the main-based 1.18.1 hotfix. Default project devShells leave `claude` to the machine; `withAgentCli = true` and devkit's `#with-agent-cli` output opt in using the same pin. Home/NixOS modules and the container image retain the CLI. ## Type of Change - [x] `fix` -- Bug fix - [x] `docs` -- Documentation only - [x] `test` -- Adding or updating tests ### Modifiers - [ ] Breaking change (`!`) ## Changes Made Cherry-picked in source order with `-x` provenance retained in each commit body (before the final `Refs` line): - d246518 — shell policy regression guard. - 0161007 — opt-in implementation, documentation and scaffold policy. - 831688b — shell-builder option comments, limited to existing files. - d31b02d — corrected migration wording. - 39c17c5 — distinguish devkit-output and consumer-builder opt-ins. Dropped from the carry: - Entire 260420a: Rust-only policy test bindings/assertions require `templates/rust`, absent from the release base. - `assets/flake.d/rust.flake.nix` comment hunk from 831688b: file absent from the release base. - Retained `nix/mk-rust-project.nix` option/pass-through and comment hunks: that file exists on the release base and the changes applied cleanly. - No unrelated development changelog entries carried. Both copies contain only #1967 in the seeded 1.18.1 section. ## Changelog Entry Under `## [1.18.1] - TBD` in both changelogs, per the hotfix lane: ### Changed - **Project shells leave the agent CLI to the machine** ([#1967](#1967)) - Repositories relying on the dev-shell's `claude` must install it machine-wide (or via the home module), or set `withAgentCli = true`; consumers of devkit's own `devShells` output can select `#with-agent-cli`. - Opting in shadows any system `claude` wrapper. Home modules and the container image retain the CLI. ## Testing - [x] Manual testing performed - Evaluation only: `nix eval --impure --json --expr 'import ./tests/agent-cli-policy.nix {}'` — exit 0 (`agentCliPolicy: true`). Asserts no CLI in default devShell, `lib.mkProjectShell` or scaffolded workspace; opt-in includes the same pinned package; home and NixOS modules retain it. - `nix eval --raw .#checks.x86_64-linux.agentCliPolicy.drvPath` — exit 0, check evaluates without building its closure. - Pre-change default-shell absence assertion evaluated against the test-only commit — exit 1, expected assertion failure because the CLI was present. - Repository commit hooks run inside `nix develop`; broader suites run in PR CI. ## Checklist - [x] Code follows project style; self-review performed - [x] Documentation and regression guard included - [x] Both changelogs updated in the hotfix release section - [x] No unrelated release changes ## Additional Notes Targets `release/1.18.1`. No release workflow dispatch or merge is part of this PR. Rebased onto `release/1.18.1` at 113d379 after security-register reconciliation PR #1973. Both existing release entries (uv under Changed and the exception reconciliation under Security) are preserved alongside #1967. No implementation changes were made in this rebase. Post-rebase verification: policy evaluation and `agentCliPolicy.drvPath` evaluation both exit 0. An additional evaluation asserts that the opt-in shell contains `claude-code` directly from the locked nixpkgs-unstable input: exit 0, version 2.1.309, unstable revision `674a2028661e550a97400c1cc992b9cca9a668a1`. All 18 checks are green on rebased head `00f791f6bda5d2a73a19615f12900f1114e07823`; `gh pr checks 1972 --watch` exited 0. Refs: #1967
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
Carry #1912 into the authorized 1.18.1 hotfix. Advance only its three input pins, reconcile the expired register against the release package set, and align the uv image assertion.
Type of Change
fix-- Bug fixbuild-- Dependency pinsdocs-- Security evidencetest-- Existing image expectationChanges Made
Four ordered cherry-picks with
-xprovenance (Refs trailers placed last to satisfy commit validation):Lock revisions
2c71e194474d13de031d729b729c968ddbe3507f2c71e194474d13de031d729b729c968ddbe3507f45d045a58ed69993eb1d349a86def638fea93a9f45d045a58ed69993eb1d349a86def638fea93a9f5edf11c44bc78a0d334f6334cdaf7d60d732daab5edf11c44bc78a0d334f6334cdaf7d60d732daab11707dc2f618dd54ca8739b309ec4fc024de578b11707dc2f618dd54ca8739b309ec4fc024de578b3bbec39bc90eadfa031e6f3b77272f3f60803e393bbec39bc90eadfa031e6f3b77272f3f60803e39637db329424fd7e46cf4185293b9cc8c88c95394637db329424fd7e46cf4185293b9cc8c88c95394868d0a692de703c2de98fab61968e4e310b7c28e868d0a692de703c2de98fab61968e4e310b7c28e7b4c5ec4bedaf1e062bbc1bcaeddbc6bd242aa1bc216bf5a1f173b0481bd5c8c489ebe5595ecc68ccf5e76507c6e23b59f7e0ffcc7baa2a39ddd84421f607aa79b6356ed45d3cd3c8079c196e79efa2c419fe0f449b3fbe3bdd53d9840288db4509ec32e674a2028661e550a97400c1cc992b9cca9a668a1464ff6880737f063c3f0d3d2c7781fda9190868f464ff6880737f063c3f0d3d2c7781fda9190868f0aa582aefbb900ea1c464239b7bfa2a96bf1a8780aa582aefbb900ea1c464239b7bfa2a96bf1a878da67096a3b9bf56a91d16901293e51ba5b49a27eda67096a3b9bf56a91d16901293e51ba5b49a27edb947814a175b7ca6ded66e21383d938df01c227db947814a175b7ca6ded66e21383d938df01c227All inputs not advanced by #1912 retain the release/main revisions. No lock conflict or regeneration was needed.
nix flake metadata --jsonagrees with the complete lock.Release closure evidence
Evaluation and
nix derivation showcompare this branch'sdevkitImageEnvwithgithub:vig-os/devkit/4d5f27e50b440d47a742dca896c502f19f1ee5d3#devkitImageEnv: all direct input derivations, their output selections, and the set of chosen package outputs are identical. Only chosen-output ordering/multiplicity differs, so the aggregate image-env derivation differs. The package closure is the same reviewed package set; no build or vulnix scan was run locally.2.42-master.patch, andcommon.nixapplies it.common.nixpins glibc 2.44-57 and source hashsha256-N/YA8r7zxegwAUcFlWiyouQKetbMxlzpQlVtSUKcxmc=, matching fix(security): reconcile expired vulnix exceptions #1912's hash-verified source and 11-patch application evidence. Identical package derivations make that evidence applicable here. Retain the 2026-11-25 review date.Source evidence and raw findings: #1912 (comment) and #1912 (comment).
Changelog Entry
Both copies contain this entry only in
## [1.18.1] - TBD:Changed
--constraint,--override,--excludeand--build-constraintvalues no longer split on spaces; repeat the option for multiple paths--require-hashesand reject editable requirements; supply missing hashes and move editables to requirements files or--editableuv_buildsdist bytes and hashes may change. If[build-system]capsuv_build<0.13, raise that bound to allow 0.13 (e.g.uv_build>=0.13.0,<0.14)UV_PYTHONpins its interpreter andUV_PYTHON_DOWNLOADS=neverdisables downloadsSecurity
Testing
Round 2 adds only the uv migration entry to both 1.18.1 changelog copies. All migration points were verified against the linked upstream 0.13.0 release notes; image interpreter behavior was verified in
flake.nix(UV_PYTHONandUV_PYTHON_DOWNLOADS=never). Content/location/mirror assertions andgit diff --checkpass (exit 0). Documentation only; TDD does not apply.PYTHONPATH=packages/vig-utils/src python3 -m vig_utils.check_expirations .trivyignore .vulnixignore .github/dependency-review-allow.txt: final exit 0 (13 entries).nix flake metadata --json: exit 0; exact target/unchanged input assertions pass.git diff --check origin/release/1.18.1: exit 0.Checklist
Additional Notes
Target is
release/1.18.1under the hotfix lane. No merge or release workflow dispatch is part of this PR.Refs: #1847