Skip to content

fix(security): reconcile expired vulnix exceptions (1.18.1) - #1973

Merged
gerchowl merged 5 commits into
release/1.18.1from
bugfix/1847-hotfix-vulnix-register
Oct 29, 2026
Merged

gerchowl merged 5 commits into
release/1.18.1from
bugfix/1847-hotfix-vulnix-register

Conversation

@gerchowl

@gerchowl gerchowl commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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 fix
  • build -- Dependency pins
  • docs -- Security evidence
  • test -- Existing image expectation

Changes Made

Four ordered cherry-picks with -x provenance (Refs trailers placed last to satisfy commit validation):

a27fed2de099a09229bfe181078ffe4a9ddf9077 fix(security): reconcile expired vulnix exceptions
Advance stable and unstable inputs to ship available fixes. Remove five cleared exceptions and verify glibc backports instead of relying on deployment assumptions.

(cherry picked from commit 054d7472e275a45173663eff4a057cb856f629aa)

# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md

Refs: #1847

f791d17d426dad8d4140fda9fc7bf86cb05d8fbb docs(security): clarify backport verification evidence
(cherry picked from commit 48908bc9013274968de1682cc6a86c61cf7bc68b)

Refs: #1847

bfe2753ce573885b0bdd65080ceb0a188c6a4a34 test(image): align uv expectation with updated input
The security pin advance ships uv 0.13.4; the image test still expected the old 0.12 series.

(cherry picked from commit 3552a53a5fd3c24b6cb8ba37445e97ed1a7d34d8)

Refs: #1847

eb4f7b9bb80f448c5582b4b5b15445f217cc4bf5 docs(security): record hash-verified glibc closure evidence
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 4d5f27e50b440d47a742dca896c502f19f1ee5d3)

Refs: #1847

Lock revisions

Input Before After
crane 2c71e194474d13de031d729b729c968ddbe3507f 2c71e194474d13de031d729b729c968ddbe3507f
fenix 45d045a58ed69993eb1d349a86def638fea93a9f 45d045a58ed69993eb1d349a86def638fea93a9f
flake-compat 5edf11c44bc78a0d334f6334cdaf7d60d732daab 5edf11c44bc78a0d334f6334cdaf7d60d732daab
flake-utils 11707dc2f618dd54ca8739b309ec4fc024de578b 11707dc2f618dd54ca8739b309ec4fc024de578b
git-hooks-nix 3bbec39bc90eadfa031e6f3b77272f3f60803e39 3bbec39bc90eadfa031e6f3b77272f3f60803e39
gitignore 637db329424fd7e46cf4185293b9cc8c88c95394 637db329424fd7e46cf4185293b9cc8c88c95394
home-manager 868d0a692de703c2de98fab61968e4e310b7c28e 868d0a692de703c2de98fab61968e4e310b7c28e
home-manager-unstable 7b4c5ec4bedaf1e062bbc1bcaeddbc6bd242aa1b c216bf5a1f173b0481bd5c8c489ebe5595ecc68c
nixpkgs cf5e76507c6e23b59f7e0ffcc7baa2a39ddd8442 1f607aa79b6356ed45d3cd3c8079c196e79efa2c
nixpkgs-unstable 419fe0f449b3fbe3bdd53d9840288db4509ec32e 674a2028661e550a97400c1cc992b9cca9a668a1
process-compose-flake 464ff6880737f063c3f0d3d2c7781fda9190868f 464ff6880737f063c3f0d3d2c7781fda9190868f
services-flake 0aa582aefbb900ea1c464239b7bfa2a96bf1a878 0aa582aefbb900ea1c464239b7bfa2a96bf1a878
systems da67096a3b9bf56a91d16901293e51ba5b49a27e da67096a3b9bf56a91d16901293e51ba5b49a27e
treefmt-nix db947814a175b7ca6ded66e21383d938df01c227 db947814a175b7ca6ded66e21383d938df01c227

All inputs not advanced by #1912 retain the release/main revisions. No lock conflict or regeneration was needed. nix flake metadata --json agrees with the complete lock.

Release closure evidence

Evaluation and nix derivation show compare this branch's devkitImageEnv with github: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.

Source evidence and raw findings: #1912 (comment) and #1912 (comment).

Changelog Entry

Both copies contain this entry only in ## [1.18.1] - TBD:

Changed

  • Upgrade uv 0.12.17 → 0.13.4 with the security input advance (#1847)
    • The nixpkgs-unstable bump carries uv 0.13; see the uv 0.13.0 migration notes for breaking changes
    • --constraint, --override, --exclude and --build-constraint values no longer split on spaces; repeat the option for multiple paths
    • Included constraints files now honor --require-hashes and reject editable requirements; supply missing hashes and move editables to requirements files or --editable
    • Stricter tar validation can reject previously accepted archives; uv_build sdist bytes and hashes may change. If [build-system] caps uv_build<0.13, raise that bound to allow 0.13 (e.g. uv_build>=0.13.0,<0.14)
    • The new default Python 3.15 does not affect the devkit image: UV_PYTHON pins its interpreter and UV_PYTHON_DOWNLOADS=never disables downloads

Security

  • Reconcile expired Nix image exceptions against rebuilt closures (#1847)
    • Advance the stable and unstable Nix inputs to ship available security fixes, including libmicrohttpd 1.0.10 and Unbound 1.26.1; remove their five cleared exceptions
    • Re-verify all six glibc exceptions against the applied nixpkgs backports, replace deployment assumptions with per-CVE fix links, and schedule the next review for Wednesday 2026-11-25

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_PYTHON and UV_PYTHON_DOWNLOADS=never). Content/location/mirror assertions and git diff --check pass (exit 0). Documentation only; TDD does not apply.

  • Manual testing performed
  • Baseline expiry check: exit 1, exactly the eight expected expired exceptions.
  • 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.
  • Cheap package-version, derivation-input and locked-patch assertions: exit 0.
  • git diff --check origin/release/1.18.1: exit 0.
  • Nix development environment commit hooks pass. Configuration/register/docs carry; no new runtime implementation requiring a new TDD test. Container image tests and scans are left to CI as instructed.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • Security register evidence is documented
  • Both changelog copies updated in the hotfix version section
  • All four source commits preserve cherry-pick provenance

Additional Notes

Target is release/1.18.1 under the hotfix lane. No merge or release workflow dispatch is part of this PR.

Refs: #1847

Advance stable and unstable inputs to ship available fixes. Remove five cleared exceptions and verify glibc backports instead of relying on deployment assumptions.

(cherry picked from commit 054d747)

# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md

Refs: #1847
The security pin advance ships uv 0.13.4; the image test still expected the old 0.12 series.

(cherry picked from commit 3552a53)

Refs: #1847
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
@gerchowl
gerchowl merged commit 113d379 into release/1.18.1 Oct 29, 2026
18 checks passed
@gerchowl
gerchowl deleted the bugfix/1847-hotfix-vulnix-register branch October 29, 2026 23:56
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
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