Repository navigation
Conversation
(cherry picked from commit b7fedee)
Fixes CVE-2026-57231/GHSA-4hq8-gpf5-8p68 (NixOS#535959) (cherry picked from commit d7a3687)
(cherry picked from commit ebd782b)
Seems the shell script ${gen-ca} doesn't have a prefix, and thus requires being
run on a shell.
(cherry picked from commit bc237fd)
❌
|
❌
|
|
Thanks, I'll later figure which other commits I need to cherry pick for this. |
|
I need to remove one of the commits, since I believe the one that limits the platform to linux can't actually be backported, and needs to be fixed in master too. (Or do what I did and cherry pick the fix too.) |
According to https://podman.io/docs/installation it works at least on FreeBSD, Linux, and macOS. (cherry picked from commit e288608)
…kport (#906) ## Summary Unblocks the `release/0.4.1` RC, which failed the **Vulnix CVE Gate** ([run 28869306823](https://github.com/vig-os/devcontainer/actions/runs/28869306823)) on a single unexcepted HIGH finding: ``` 1 unexcepted HIGH/CRITICAL or unscored vulnix finding(s): - CVE-2026-57231 (CVSS 7.5) in podman 5.8.2 ``` [CVE-2026-57231](https://cve.threatint.eu/CVE/CVE-2026-57231) (CVSS 7.5): a malicious image manifest with malformed `Env` entries makes podman leak matching **host** environment variables into the container — a supply-chain risk when running untrusted images. `podman` is a direct devTool + the docker-shim binary, so the finding is a real product match. ## Why an exception, not a rev-advance Fixed upstream in podman 5.8.4/6.0.0, but the pinned `nixpkgs` `release-26.05` (and `staging-26.05`) still ships **5.8.2** — the fix is only on `master`/`staging`/`unstable`. The 26.05 backport [NixOS/nixpkgs#536367](NixOS/nixpkgs#536367) is an **open draft**, so advancing the rev cannot remediate today. This adds a short-dated `.vulnixignore` exception (expires **2026-08-06**, re-check weekly) matching the register's established convention; it flips to a rev-advance once the backport lands. ## Changes - `.vulnixignore` — new 2026-07-07 triage section accepting `CVE-2026-57231` with provenance, reachability note, upstream/nixpkgs fix status, and expiry. - `CHANGELOG.md` `[0.4.1]` `### Security` entry (+ auto-synced `.devcontainer` mirror). ## Verification - `check-expirations`: passed (36 exceptions validated). - Gate simulation: negative control reproduces the exact CI error against the pre-fix register; **passes** against the updated register. - Full `just precommit` suite: green. Closes #905
# Release 0.4.1 This PR prepares release 0.4.1 for merge to main. ## [0.4.1] - TBD ### Added - **ADR: terminal home environment as devkit home-manager modules** ([#815](vig-os/devkit#815)) - Accepted `docs/rfcs/ADR-home-environment-modules.md`: parameterized `vigos.*` home-manager modules as a second product of this repo (epic [#814](vig-os/devkit#814)). - **Home-manager module release/versioning policy** ([#816](vig-os/devkit#816)) - `docs/NIX.md`: modules ride the existing release train (consumers pin tags), `mkRenamedOptionModule` deprecation shims, dogfood-canary exception, and the `#### Modules` changelog sub-heading convention. - Workspace scaffold `vigos.url` float is now documented as deliberate, with the pin recipe. - **Scheduled nixpkgs-unstable lock bump** ([#817](vig-os/devkit#817)) - Weekly workflow refreshing the fast-movers pin (uv, gh, claude-code) via a chore PR to dev, gated by full CI. - **vigos.* home module set + homeConfigurations matrix** ([#818](vig-os/devkit#818), [#819](vig-os/devkit#819)) - `homeManagerModules.{default,packages,shell,multiplexer,cli,direnv,git}` exported as path modules (+ `homeModules` alias); `home-manager` flake input (release-26.05, nixpkgs follows); `ci-{minimal,full}` homeConfigurations across 4 systems built as Tier-0 `hm-*` checks (x86_64-darwin eval-only). - **Home Matrix CI workflow** ([#820](vig-os/devkit#820)) - Builds the ci homeConfigurations on aarch64-darwin (macos-latest) and aarch64-linux and pushes closures to Cachix; separate non-required workflow (fail-soft by status). - **vigos.shell module** ([#821](vig-os/devkit#821)) - Bash + zsh, starship, atuin, zoxide under one enable flag; opt-in secretsEnv hook exporting ~/.config/vigos/secrets/<NAME> per the ADR credentials interface. - **vigos.multiplexer, vigos.cli, vigos.direnv modules** ([#821](vig-os/devkit#821)) - tmux org defaults (vi keys, sane scrollback), modern-unix config (bat/eza/fzf/ripgrep/fd — configuration only, packages stay in vigos.packages), direnv + nix-direnv. - **vigos.git module** ([#821](vig-os/devkit#821)) - git + delta, gh (ssh protocol), lazygit; identity and per-user-x-host SSH signing are null-default options — nothing is written unless set, so fresh hosts never fail their first commit. - **templates.personal + homeConfigurations.demo** ([#827](vig-os/devkit#827)) - `nix flake init -t github:vig-os/devcontainer#personal` scaffolds a personal home-manager flake on the vigos.* modules; `demo` is the full-profile reference configuration. - **Home environment docs** ([#825](vig-os/devkit#825), [#826](vig-os/devkit#826)) - docs/home/: bootstrap guide (installer, macOS trusted-users trap, first activation), override cookbook, rollback table, best-effort Intel meaning, credential-hygiene runbook. - **CLAUDE.md hierarchy templates** ([#828](vig-os/devkit#828)) - docs/home/claude-md/: user-global, workspace-root, and workspace layer templates + the directory-layout convention that makes the cascade work. Guidelines, not enforcement. - **vigos.claude module + container secrets path** ([#823](vig-os/devkit#823), absorbs [#546](vig-os/devkit#546)) - ~/.claude policy per the ADR: settings.json seeded copy-if-absent (org seed pre-authorizes nothing, includeCoAuthoredBy=false), managed vigos.md fragment (checksum-overwrite + .bak), @vigos.md import line seeded into the user-owned CLAUDE.md, DISABLE_AUTOUPDATER via sessionVariables, optional workspace-CLAUDE.md management (empty by default). - Devcontainer scaffold mounts ~/.config/vigos/secrets read-only and exports the files as env vars at shell startup — the slim token path replacing setup-claude.sh forwarding. - **vigos.sesh, vigos.ghdash, vigos.editor modules** ([#824](vig-os/devkit#824)) - sesh project sessions with a parameterized standard tmux layout (sessions + layout.windows options, no hardcoded paths), gh-dash with scoped lean sections via repoFilters, neovim with the claudecode.nvim bridge (plain programs.neovim, no nixvim input). ### Changed - **Smoke-test deploy of 0.4.1** -- automated devcontainer release-pipeline validation; no functional changes - **Renovate: update `numpy` to `v2.5.1`** ([#865](vig-os/devkit#865)) - **MIGRATION.md: formalized the native-build contract** ([#882](vig-os/devkit#882)) - Tiered policy for native Python builds (wheel-only / toolchain from the project flake via `mkProjectShell.extraPackages` / in-container `nix develop -c` middle path), a worked Geant4/ROOT example, and the explicit non-goal of shipping a C/C++ toolchain in the base image. Cross-links [#879](vig-os/devkit#879) and [#854](vig-os/devkit#854). #### Modules - **homeManagerModules.default is now the umbrella** importing every `vigos.*` module, each disabled by default ([#818](vig-os/devkit#818)); existing imports keep working unchanged. ### Deprecated #### Modules - **`programs.vigos-devtools.enable`** → `vigos.packages.enable` ([#818](vig-os/devkit#818)); a `mkRenamedOptionModule` shim keeps the old option working for one release (docs/NIX.md policy). ### Removed - **Documented Debian fallback retired** ([#642](vig-os/devkit#642)) - The build has been Nix-only since 0.4.0; docs and workflow comments no longer present the Debian image as a rollback path. Pinning the frozen 0.3.9 release remains possible but unsupported. ### Fixed - **Preserve a customized `.typos.toml` on upgrade** ([#913](vig-os/devkit#913)) - `.typos.toml` joins the preserved-file set so a consumer's spell-check exceptions survive a `--force` upgrade; the upgrade prints the template diff (like `.pre-commit-config.yaml`, [#878](vig-os/devkit#878)). Previously the generic template overwrote it and the `typos` hook then "corrected" real content. - A consumer carrying the legacy `_typos.toml` no longer also receives the template `.typos.toml`, avoiding two active typos configs. - **Render preserved-file diff previews with `git diff`** ([#916](vig-os/devkit#916)) - The preserved-file upgrade preview called `diff`, which the image does not ship, printing `command not found` into an empty box; it now uses `git diff --no-index`. - **Scan preserved CI workflows for the retired `pre-commit` binary** ([#916](vig-os/devkit#916)) - The upgrade reference scan ([#881](vig-os/devkit#881)) now also covers preserved `.github/workflows/*.yml`, flagging real `pre-commit` invocations with `file:line` while ignoring comments and step `name:` descriptions. - **Resolve the GitHub origin before scaffolding the workspace** ([#916](vig-os/devkit#916)) - Under `--no-prompts`, a missing or underivable origin now aborts before any files are copied, instead of leaving a half-scaffolded workspace mid-run. - **Namespace scaffold `justfile.gh` git helpers to prevent consumer recipe collisions** ([#915](vig-os/devkit#915)) - Renamed the shipped git-helper recipes `log` → `gh-log` and `branch` → `gh-branch` (matching the `gh-issues` convention). A consumer whose preserved `justfile.project` defined its own `log`/`branch` recipes previously hit a hard `just` parse failure (`recipe log … is redefined`) after upgrade, making `just` unusable and silently disabling the [#877](vig-os/devkit#877) base-recipe repair. - **Migration:** consumers who scripted against the shipped `just log` / `just branch` recipes must switch to `just gh-log` / `just gh-branch`; consumers who defined their own `log`/`branch` now keep them without collision. - **Renovate changelog template no longer leaks the upstream `assets/workspace` mirror** ([#914](vig-os/devkit#914)) - The synced consumer `renovate-changelog-build.yml`/`-commit.yml` copied the `assets/workspace/.devcontainer/CHANGELOG.md` mirror plumbing verbatim; consumers have no such tree, so the steps hard-failed under `set -euo pipefail` on every Renovate changelog run. Manifest transforms now strip the mirror copies, leaving the template touching only the consumer's own `CHANGELOG.md`. - **Scaffold upgrade strands base recipes in a preserved `justfile.project`** ([#877](vig-os/devkit#877)) - 0.4.0 moved `lint`/`format`/`precommit`/`test`/`test-cov`/`sync`/`update` into `justfile.project`, which is preserved on upgrade — 0.3.x consumers never received them and the shipped `ci.yml` failed with `justfile does not contain recipe 'sync'`. `init-workspace --force` now appends the missing base recipes from the template into the preserved file (customized recipes always win; idempotent). - The retired `.devcontainer/justfile.base` is removed on upgrade where the scaffold manages `.devcontainer/` (never in `direnv` mode, [#738](vig-os/devkit#738)), and the installer warns if the root `justfile` lacks the scaffold `import?` block. - **Renovate changelog artifact drops the workspace mirror; `metadata.env` breaks on parenthesized branches** ([#874](vig-os/devkit#874)) - `upload-artifact` silently excluded the mirror under the hidden `.devcontainer` directory, so the bot commit updated only the root `CHANGELOG.md` and tripped the `sync-manifest` gate; now uploaded with `include-hidden-files: true`. - `metadata.env` values are `%q`-quoted so grouped Renovate branch names (e.g. `renovate/python-(minor-and-patch)`) survive being `source`d by the commit workflow. - **Renovate changelog entries land as plain `### Changed` bullets, not under `#### Modules`** ([#867](vig-os/devkit#867)) - `renovate-changelog-pr` appended entries at the bottom of the `### Changed` block, so with the `#### Modules` sub-heading convention ([#816](vig-os/devkit#816)) a dependency bump was filed beneath `#### Modules` and read as a module change. Entries now insert at the top of `### Changed`, above any `####` sub-heading, with Keep-a-Changelog spacing preserved. - **Image Python advertised the phantom Nix build toolchain (`gcc`/`g++`) in sysconfig** ([#879](vig-os/devkit#879)) - The baked CPython recorded its nixpkgs build compilers in `sysconfig` (`CC`/`CXX`/`LINKCC`/`LDSHARED`/`BLDSHARED`/`LDCXXSHARED`), but the image ships no compiler — PEP 517 backends inherited the phantom names verbatim: scikit-build-core exports `CC`/`CXX`, so CMake hard-failed on the missing `g++` instead of discovering the project-flake toolchain on `PATH`, and setuptools invoked the literal `gcc`. - The image build now sanitizes the baked `_sysconfigdata*.py` / `_sysconfig_vars*.json` / config `Makefile` first tokens to the generic POSIX `cc`/`c++`, restoring `PATH` compiler discovery. Implemented as a shadow copy in the final image layer — no CPython rebuild, dev-shell toolchain untouched, and the no-compiler-baked consumer contract stands (documented via [#882](vig-os/devkit#882)). - **Scaffold upgrade replaces `.pre-commit-config.yaml`, silently clobbering repo-specific hook config** ([#878](vig-os/devkit#878)) - The upgrade overwrote the consumer's `.pre-commit-config.yaml` wholesale, dropping the repo-specific global `exclude:` block and per-hook `exclude:` keys — the hook suite then rewrote data files it must never touch and false-flagged PEM marker literals. The file is now preserved on upgrade (like `justfile.project`, [#877](vig-os/devkit#877)). - Because template hook-stack evolution no longer arrives automatically, `init-workspace --force` prints a diff of the preserved file against the incoming template so consumers can fold changes in deliberately, and warns (non-fatally) when the preserved config does not parse under `prek validate-config` — a config the runner cannot load breaks every commit in the new image. - **`pre-commit` binary dropped without a compat path — preserved consumer recipes and `.githooks` calling it break** ([#881](vig-os/devkit#881)) - The 0.4.0 image retired the Python `pre-commit` for `prek` ([#778](vig-os/devkit#778)), but files preserved on upgrade still invoke it and exit 127 (field-validated on a 0.3.5 → 0.4.0 consumer: the preserved `justfile.project` `precommit` recipe and repo-managed `.githooks` scripts broke every commit). The image now ships a **deprecated one-cycle `pre-commit → prek` shim** (stderr notice, removed in 0.5) so consumer hook scripts keep working while they migrate. - `init-workspace --force` scans the post-scaffold `justfile.project`, `.githooks/` scripts and `.pre-commit-config.yaml` for invocation-shaped `pre-commit` references and warns (non-fatally) with `file:line`, pointing at the MIGRATION.md rename checklist — which now also covers the NixOS `#!/bin/bash` shebang gotcha in old-scaffold `.githooks`. ### Security - **Accept podman `CVE-2026-57231` in the vulnix register pending the nixpkgs 26.05 backport** ([#905](vig-os/devkit#905)) - podman 5.8.2 (affects 5.8.1–5.8.3) leaks matching host environment variables into a container when a malicious image manifest carries malformed `Env` entries (a key with no value, via the `*` glob) — CVSS 7.5, a supply-chain risk only when running untrusted images. The release CVE gate blocked the 0.4.1 RC on this finding. - Fixed upstream in 5.8.4/6.0.0, but the pinned `nixpkgs` `release-26.05` still ships 5.8.2 (backport [NixOS/nixpkgs#536367](NixOS/nixpkgs#536367) open), so advancing the rev cannot remediate yet. Added a short-dated `.vulnixignore` exception (expires 2026-08-06, re-check weekly) to unblock the gate; the exception flips to a nixpkgs rev-advance once the backport lands.
|
|
I believe |
# [Release 0.4.1](https://github.com/vig-os/devcontainer/releases/tag/0.4.1) - 2026-07-08 This PR prepares release 0.4.1 for merge to main. ## [0.4.1](https://github.com/vig-os/devcontainer/releases/tag/0.4.1) - 2026-07-08 ### Added - **ADR: terminal home environment as devkit home-manager modules** ([#815](#815)) - Accepted `docs/rfcs/ADR-home-environment-modules.md`: parameterized `vigos.*` home-manager modules as a second product of this repo (epic [#814](#814)). - **Home-manager module release/versioning policy** ([#816](#816)) - `docs/NIX.md`: modules ride the existing release train (consumers pin tags), `mkRenamedOptionModule` deprecation shims, dogfood-canary exception, and the `#### Modules` changelog sub-heading convention. - Workspace scaffold `vigos.url` float is now documented as deliberate, with the pin recipe. - **Scheduled nixpkgs-unstable lock bump** ([#817](#817)) - Weekly workflow refreshing the fast-movers pin (uv, gh, claude-code) via a chore PR to dev, gated by full CI. - **vigos.* home module set + homeConfigurations matrix** ([#818](#818), [#819](#819)) - `homeManagerModules.{default,packages,shell,multiplexer,cli,direnv,git}` exported as path modules (+ `homeModules` alias); `home-manager` flake input (release-26.05, nixpkgs follows); `ci-{minimal,full}` homeConfigurations across 4 systems built as Tier-0 `hm-*` checks (x86_64-darwin eval-only). - **Home Matrix CI workflow** ([#820](#820)) - Builds the ci homeConfigurations on aarch64-darwin (macos-latest) and aarch64-linux and pushes closures to Cachix; separate non-required workflow (fail-soft by status). - **vigos.shell module** ([#821](#821)) - Bash + zsh, starship, atuin, zoxide under one enable flag; opt-in secretsEnv hook exporting ~/.config/vigos/secrets/<NAME> per the ADR credentials interface. - **vigos.multiplexer, vigos.cli, vigos.direnv modules** ([#821](#821)) - tmux org defaults (vi keys, sane scrollback), modern-unix config (bat/eza/fzf/ripgrep/fd — configuration only, packages stay in vigos.packages), direnv + nix-direnv. - **vigos.git module** ([#821](#821)) - git + delta, gh (ssh protocol), lazygit; identity and per-user-x-host SSH signing are null-default options — nothing is written unless set, so fresh hosts never fail their first commit. - **templates.personal + homeConfigurations.demo** ([#827](#827)) - `nix flake init -t github:vig-os/devcontainer#personal` scaffolds a personal home-manager flake on the vigos.* modules; `demo` is the full-profile reference configuration. - **Home environment docs** ([#825](#825), [#826](#826)) - docs/home/: bootstrap guide (installer, macOS trusted-users trap, first activation), override cookbook, rollback table, best-effort Intel meaning, credential-hygiene runbook. - **CLAUDE.md hierarchy templates** ([#828](#828)) - docs/home/claude-md/: user-global, workspace-root, and workspace layer templates + the directory-layout convention that makes the cascade work. Guidelines, not enforcement. - **vigos.claude module + container secrets path** ([#823](#823), absorbs [#546](#546)) - ~/.claude policy per the ADR: settings.json seeded copy-if-absent (org seed pre-authorizes nothing, includeCoAuthoredBy=false), managed vigos.md fragment (checksum-overwrite + .bak), @vigos.md import line seeded into the user-owned CLAUDE.md, DISABLE_AUTOUPDATER via sessionVariables, optional workspace-CLAUDE.md management (empty by default). - Devcontainer scaffold mounts ~/.config/vigos/secrets read-only and exports the files as env vars at shell startup — the slim token path replacing setup-claude.sh forwarding. - **vigos.sesh, vigos.ghdash, vigos.editor modules** ([#824](#824)) - sesh project sessions with a parameterized standard tmux layout (sessions + layout.windows options, no hardcoded paths), gh-dash with scoped lean sections via repoFilters, neovim with the claudecode.nvim bridge (plain programs.neovim, no nixvim input). ### Changed - **Renovate: update `numpy` to `v2.5.1`** ([#865](#865)) - **MIGRATION.md: formalized the native-build contract** ([#882](#882)) - Tiered policy for native Python builds (wheel-only / toolchain from the project flake via `mkProjectShell.extraPackages` / in-container `nix develop -c` middle path), a worked Geant4/ROOT example, and the explicit non-goal of shipping a C/C++ toolchain in the base image. Cross-links [#879](#879) and [#854](#854). #### Modules - **homeManagerModules.default is now the umbrella** importing every `vigos.*` module, each disabled by default ([#818](#818)); existing imports keep working unchanged. ### Deprecated #### Modules - **`programs.vigos-devtools.enable`** → `vigos.packages.enable` ([#818](#818)); a `mkRenamedOptionModule` shim keeps the old option working for one release (docs/NIX.md policy). ### Removed - **Documented Debian fallback retired** ([#642](#642)) - The build has been Nix-only since 0.4.0; docs and workflow comments no longer present the Debian image as a rollback path. Pinning the frozen 0.3.9 release remains possible but unsupported. ### Fixed - **Preserve a customized `.typos.toml` on upgrade** ([#913](#913)) - `.typos.toml` joins the preserved-file set so a consumer's spell-check exceptions survive a `--force` upgrade; the upgrade prints the template diff (like `.pre-commit-config.yaml`, [#878](#878)). Previously the generic template overwrote it and the `typos` hook then "corrected" real content. - A consumer carrying the legacy `_typos.toml` no longer also receives the template `.typos.toml`, avoiding two active typos configs. - **Render preserved-file diff previews with `git diff`** ([#916](#916)) - The preserved-file upgrade preview called `diff`, which the image does not ship, printing `command not found` into an empty box; it now uses `git diff --no-index`. - **Scan preserved CI workflows for the retired `pre-commit` binary** ([#916](#916)) - The upgrade reference scan ([#881](#881)) now also covers preserved `.github/workflows/*.yml`, flagging real `pre-commit` invocations with `file:line` while ignoring comments and step `name:` descriptions. - **Resolve the GitHub origin before scaffolding the workspace** ([#916](#916)) - Under `--no-prompts`, a missing or underivable origin now aborts before any files are copied, instead of leaving a half-scaffolded workspace mid-run. - **Namespace scaffold `justfile.gh` git helpers to prevent consumer recipe collisions** ([#915](#915)) - Renamed the shipped git-helper recipes `log` → `gh-log` and `branch` → `gh-branch` (matching the `gh-issues` convention). A consumer whose preserved `justfile.project` defined its own `log`/`branch` recipes previously hit a hard `just` parse failure (`recipe log … is redefined`) after upgrade, making `just` unusable and silently disabling the [#877](#877) base-recipe repair. - **Migration:** consumers who scripted against the shipped `just log` / `just branch` recipes must switch to `just gh-log` / `just gh-branch`; consumers who defined their own `log`/`branch` now keep them without collision. - **Renovate changelog template no longer leaks the upstream `assets/workspace` mirror** ([#914](#914)) - The synced consumer `renovate-changelog-build.yml`/`-commit.yml` copied the `assets/workspace/.devcontainer/CHANGELOG.md` mirror plumbing verbatim; consumers have no such tree, so the steps hard-failed under `set -euo pipefail` on every Renovate changelog run. Manifest transforms now strip the mirror copies, leaving the template touching only the consumer's own `CHANGELOG.md`. - **Scaffold upgrade strands base recipes in a preserved `justfile.project`** ([#877](#877)) - 0.4.0 moved `lint`/`format`/`precommit`/`test`/`test-cov`/`sync`/`update` into `justfile.project`, which is preserved on upgrade — 0.3.x consumers never received them and the shipped `ci.yml` failed with `justfile does not contain recipe 'sync'`. `init-workspace --force` now appends the missing base recipes from the template into the preserved file (customized recipes always win; idempotent). - The retired `.devcontainer/justfile.base` is removed on upgrade where the scaffold manages `.devcontainer/` (never in `direnv` mode, [#738](#738)), and the installer warns if the root `justfile` lacks the scaffold `import?` block. - **Renovate changelog artifact drops the workspace mirror; `metadata.env` breaks on parenthesized branches** ([#874](#874)) - `upload-artifact` silently excluded the mirror under the hidden `.devcontainer` directory, so the bot commit updated only the root `CHANGELOG.md` and tripped the `sync-manifest` gate; now uploaded with `include-hidden-files: true`. - `metadata.env` values are `%q`-quoted so grouped Renovate branch names (e.g. `renovate/python-(minor-and-patch)`) survive being `source`d by the commit workflow. - **Renovate changelog entries land as plain `### Changed` bullets, not under `#### Modules`** ([#867](#867)) - `renovate-changelog-pr` appended entries at the bottom of the `### Changed` block, so with the `#### Modules` sub-heading convention ([#816](#816)) a dependency bump was filed beneath `#### Modules` and read as a module change. Entries now insert at the top of `### Changed`, above any `####` sub-heading, with Keep-a-Changelog spacing preserved. - **Image Python advertised the phantom Nix build toolchain (`gcc`/`g++`) in sysconfig** ([#879](#879)) - The baked CPython recorded its nixpkgs build compilers in `sysconfig` (`CC`/`CXX`/`LINKCC`/`LDSHARED`/`BLDSHARED`/`LDCXXSHARED`), but the image ships no compiler — PEP 517 backends inherited the phantom names verbatim: scikit-build-core exports `CC`/`CXX`, so CMake hard-failed on the missing `g++` instead of discovering the project-flake toolchain on `PATH`, and setuptools invoked the literal `gcc`. - The image build now sanitizes the baked `_sysconfigdata*.py` / `_sysconfig_vars*.json` / config `Makefile` first tokens to the generic POSIX `cc`/`c++`, restoring `PATH` compiler discovery. Implemented as a shadow copy in the final image layer — no CPython rebuild, dev-shell toolchain untouched, and the no-compiler-baked consumer contract stands (documented via [#882](#882)). - **Scaffold upgrade replaces `.pre-commit-config.yaml`, silently clobbering repo-specific hook config** ([#878](#878)) - The upgrade overwrote the consumer's `.pre-commit-config.yaml` wholesale, dropping the repo-specific global `exclude:` block and per-hook `exclude:` keys — the hook suite then rewrote data files it must never touch and false-flagged PEM marker literals. The file is now preserved on upgrade (like `justfile.project`, [#877](#877)). - Because template hook-stack evolution no longer arrives automatically, `init-workspace --force` prints a diff of the preserved file against the incoming template so consumers can fold changes in deliberately, and warns (non-fatally) when the preserved config does not parse under `prek validate-config` — a config the runner cannot load breaks every commit in the new image. - **`pre-commit` binary dropped without a compat path — preserved consumer recipes and `.githooks` calling it break** ([#881](#881)) - The 0.4.0 image retired the Python `pre-commit` for `prek` ([#778](#778)), but files preserved on upgrade still invoke it and exit 127 (field-validated on a 0.3.5 → 0.4.0 consumer: the preserved `justfile.project` `precommit` recipe and repo-managed `.githooks` scripts broke every commit). The image now ships a **deprecated one-cycle `pre-commit → prek` shim** (stderr notice, removed in 0.5) so consumer hook scripts keep working while they migrate. - `init-workspace --force` scans the post-scaffold `justfile.project`, `.githooks/` scripts and `.pre-commit-config.yaml` for invocation-shaped `pre-commit` references and warns (non-fatally) with `file:line`, pointing at the MIGRATION.md rename checklist — which now also covers the NixOS `#!/bin/bash` shebang gotcha in old-scaffold `.githooks`. ### Security - **Accept podman `CVE-2026-57231` in the vulnix register pending the nixpkgs 26.05 backport** ([#905](#905)) - podman 5.8.2 (affects 5.8.1–5.8.3) leaks matching host environment variables into a container when a malicious image manifest carries malformed `Env` entries (a key with no value, via the `*` glob) — CVSS 7.5, a supply-chain risk only when running untrusted images. The release CVE gate blocked the 0.4.1 RC on this finding. - Fixed upstream in 5.8.4/6.0.0, but the pinned `nixpkgs` `release-26.05` still ships 5.8.2 (backport [NixOS/nixpkgs#536367](NixOS/nixpkgs#536367) open), so advancing the rev cannot remediate yet. Added a short-dated `.vulnixignore` exception (expires 2026-08-06, re-check weekly) to unblock the gate; the exception flips to a nixpkgs rev-advance once the backport lands.
❌
|
|
It seems to only fail to build The The |
|
I guess I could apply the fix zeroclaw uses to |
44f31d5 to
c818db5
Compare
c818db5 to
257765d
Compare
The commit was taken from #540824 |
…ons (#1329) ## Summary Remediates the nightly vulnix gate failure that has been red on **both refs** since 2026-07-31 ([run 30614074169](https://github.com/vig-os/devkit/actions/runs/30614074169) → #1322 dev / #1323 main, and again 08-01/08-02/08-03), **and** the two register exceptions that lapsed on 2026-08-03 — which since today fail `check-expirations` in the pre-commit hook and at `ci.yml:390`, i.e. on *every* branch, not just the nightly. Both refs share the same nixpkgs pin (`nixos-26.05` @ `8623c4c2`), so this single register fix covers both; `main` goes green at the next promote. Register-only — no image or code change. - **New libssh2 block** (expires 2026-08-31): the three unexcepted HIGH findings — CVE-2026-66033, CVE-2026-66034, CVE-2026-66035 (7.5 each), disclosed 2026-07-24 and in the vulnix feed from 07-30. A findings diff against the last green run (30523258723) confirms these three are the only delta. All are **client-side** flaws requiring a connection to a *malicious SSH server*; libssh2 enters the closure only as curl's scp/sftp backend (git uses openssh), the same reachability class as the accepted CVE-2026-58050. No rev-advance exists: upstream has published no release since 1.11.1 (2024-10-16) and [NixOS/nixpkgs#547491](NixOS/nixpkgs#547491) is open against *staging*, gated behind nixpkgs#546446, with a `release-26.05` backport still to come. - **Five dead exceptions pruned.** All were already fixed at the pinned rev by the #1273 pin advance, which the register was never reconciled against: | Removed | Package | Why it was already dead | |---------|---------|-------------------------| | CVE-2026-55200 | libssh2 | pin applies `CVE-2026-55200.patch` (nixpkgs `f6ae2642`, 2026-07-01) — vulnix credits CVE-named `patches`, so it stopped reporting it | | CVE-2026-41992 | gzip | pin applies `CVE-2026-41992.patch` | | CVE-2026-11979 | libxml2 | pin applies `CVE-2026-11979.patch` (both attrs) | | CVE-2026-56123 | socat | pin ships 1.8.1.3, past the 1.8.1.2 fix | | CVE-2026-10846 | ldns | pin ships 1.9.2 (register said 1.9.0) | The first and fourth are the entries that lapsed on 2026-08-03. Each removal leaves a dated comment in place of the entry, so the register still records the decision. - **podman CVE-2026-57231 renewed** 2026-08-06 → 2026-08-31 (it lapses in two days). Re-verified today: `nixos-26.05` HEAD still ships 5.8.2 and the backport [nixpkgs#536367](NixOS/nixpkgs#536367) is still a *draft*, untouched since 2026-07-20 — no lever. Aligned to 08-31 with the libssh2 and unbound blocks so the register gets one combined re-review pass. ## Every entry checked All 31 remaining entries were diffed against the 2026-08-03 findings and against the package state at the pinned rev. The only entries that no longer correspond to a finding are the three Class-1 Jenkins-Git CPE collisions (CVE-2022-30947/-36882/-36883); they are documented false positives on a yearly re-check (exp 2027-06-23) and are kept as-is — dropping them buys nothing and risks flapping if the NVD CPE data changes back. Everything else (glibc ×6, zlib, sqlite ×2, libmicrohttpd ×2, fzf ×2, libssh2 CVE-2026-58050, gawk ×4, unbound ×5, shellcheck) is still reported and correctly retained. ## Verification Both gates replayed locally against the **real** artifacts from the failing run (30797351489), for each ref: ``` $ uv run check-expirations .trivyignore .vulnixignore Validated 35 exception(s) across 2 file(s) # exit 0 $ uv run vulnix-gate nix-image-cve-scan-dev/vulnix-findings.json --register .vulnixignore No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 31 exception(s) applied # exit 0 $ uv run vulnix-gate nix-image-cve-scan-main/vulnix-findings.json --register .vulnixignore No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 31 exception(s) applied # exit 0 ``` `pre-commit run --all-files` green in the working tree (51 hooks passed, exit 0). ## Follow-ups (not in this PR) - #1328 — gawk **5.4.1 has now reached `nixos-26.05`**, so the gawk block (4 CVEs, exp 08-18) finally has a rev-advance target and should be *dropped*, not renewed again. - On a red gate the job aborts before "Build the Nix image for SBOM generation", so the CycloneDX SBOM and the Trivy defence-in-depth view are missing from the artifact exactly when they are most useful (17 kB on 2026-08-03 vs 466 kB on 2026-07-30). Worth reordering or moving the SBOM steps behind `if: always()`. - The gap noted in #1257 is now live-proven: had this not been fixed today, tonight's scheduled run would have died at `check-expirations` — *before* the tracking-issue automation, which guards on `vulnix-gate.outcome == 'failure'`, could fire. Closes #1327. Also resolves #1322 and #1323 (close manually after merge — `Closes` does not auto-close on `dev`-targeted PRs).
257765d to
081b0ae
Compare
Review dismissed automatically
|
@drupol Could you review this one again?, I noticed the |
…1554) ## Description 29 of the 33 live security-exception entries expired on the same day, `2026-09-02`, across all three registers. On `2026-09-03` the whole register would have gone red at once: every open PR's CI, both nightly `security-scan` lanes and the release train. This spreads the renewals over distinct Wednesdays so no single stalled review can do that. This is a **re-date only**. No risk assessment was re-opened, no entry was added or removed, and no rationale text was rewritten — exactly the scope of the #1337 snap. ## Type of Change - [ ] `feat` -- New feature - [ ] `fix` -- Bug fix - [ ] `docs` -- Documentation only - [x] `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 ### Before / after | Register | Block (lever) | Entries | Before | After | Δ | |---|---|---:|---|---|---| | `.vulnixignore` | podman (release-26.05 backport, weekly re-check) | 1 | `2026-09-02` | **`2026-09-02`** | — | | `.vulnixignore` | unbound (1.25.2 reaching `nixos-26.05`) | 5 | `2026-09-02` | **`2026-09-09`** | +1 wk | | `.vulnixignore` | libssh2 6603x batch (staging-26.05 patch PR) | 4 | `2026-09-02` | **`2026-09-16`** | +2 wk | | `.vulnixignore` | libssh2 `CVE-2026-58050` (no upstream fix) | 1 | `2026-09-02` | **`2026-09-23`** | +3 wk | | `.vulnixignore` | zlib / sqlite / libmicrohttpd (low reachability) | 5 | `2026-09-02` | **`2026-09-30`** | +4 wk | | `.vulnixignore` | fzf (no 26.05 backport open) | 2 | `2026-09-02` | **`2026-10-07`** | +5 wk | | `.vulnixignore` | glibc (no rev-advance lever exists) | 6 | `2026-09-02` | **`2026-10-14`** | +6 wk | | `.trivyignore` | gh / Go stdlib `CVE-2026-42504` | 1 | `2026-09-02` | **`2026-10-21`** | +7 wk | | `.trivyignore` | jq `CVE-2026-32316`, `CVE-2026-40164` | 2 | `2026-09-02` | **`2026-10-28`** | +8 wk | | `.trivyignore` | `jwt-token` (secret-scan false positive) | 1 | `2026-09-02` | **`2026-11-04`** | +9 wk | | `.github/dependency-review-allow.txt` | `GHSA-wvrr-2x4r-394v` (false positive) | 1 | `2026-09-02` | **`2026-11-11`** | +10 wk | | `.vulnixignore` | Class-1 CPE mismatch (yearly cadence) | 4 | `2027-06-23` | `2027-06-23` | untouched | Every date is a genuine Wednesday (verified with `date -d`), every date is a week-multiple of the original `2026-09-02` — so no snapping was needed — and no Wednesday carries more than one block across the three registers. ### Why each block landed where it did The grid is ordered by **how soon the block's remediation lever can move**: the sooner a rev-advance could make the block droppable, the earlier its review, so the near-term passes are the ones that can actually delete entries rather than extend them. - **podman `2026-09-02` (kept, shortest).** Its own note asks for a weekly re-check and NixOS/nixpkgs#536367 can merge at any time. Keeping it anchors the grid at the earliest date instead of pushing everything out. Not a re-date, so it carries a short grid note rather than a re-dating note. - **unbound `2026-09-09` (+1 wk).** The staging-26.05 backport is already *merged*, so 1.25.2 can reach the pinned channel in any week's Renovate bump. The block's "short expiry to force near-term re-check" is preserved. - **libssh2 6603x `2026-09-16` (+2 wk).** NixOS/nixpkgs#550166 is open against staging-26.05; vulnix credits CVE-named `patches` entries, so the findings can drop out on a rev-advance at short notice. Still near-term as its note asks. - **libssh2 `CVE-2026-58050` `2026-09-23` (+3 wk).** Same package and lever as the batch above, so it sits one week later — adjacent review, no shared Wednesday. It has no upstream fix at all, so it is the less urgent of the two. - **zlib / sqlite / libmicrohttpd `2026-09-30` (+4 wk).** The note asks for a "medium-near expiry"; four weeks, mid-grid, keeps that intent. - **fzf `2026-10-07` (+5 wk).** Renewed only today (#1547) onto the shared date — the very cliff this PR breaks up. Both findings are availability-only on a 64-bit image and no 26.05 backport is open, so it takes a later slot than the blocks whose backport could land in any week's bump. - **glibc `2026-10-14` (+6 wk), longest vulnix window.** The 2026-08-13 renewal (#1481) already established that the "advance the rev" lever has nowhere to land — the advisories scope the defects through 2.43 — so an earlier re-review would have no new evidence to act on. The issue calls for the longest window here. - **`.trivyignore` `2026-10-21` / `2026-10-28` / `2026-11-04` (+7/8/9 wk).** Placed after the vulnix passes so the two registers do not compete for the same review week. Ordered by lever: gh needs a release rebuilt on Go 1.26.4 (no weekly bump can bring that forward), jq needs the Nix publish-cutover (#639) before `:latest` can be rebuilt at all, and `jwt-token` is not a vulnerability. - **`GHSA-wvrr-2x4r-394v` `2026-11-11` (+10 wk), latest slot.** A definitive false positive that can only change if the advisory is withdrawn or upstream bumps a `package.json` version field it has never touched — the same class as the Class-1 CPE-mismatch block, which already sits on a *yearly* cadence, so ten weeks is comfortably conservative by that precedent. ### `.trivyignore`: three blocks or one? The 4 entries sit under 3 `Expiration:` directives. They are kept as **three separate blocks with three separate dates**: they are independent exceptions with independent levers (a gh release rebuilt on Go 1.26.4; the Nix publish-cutover; a secret-scan false positive). Folding them into one pass would ask three unrelated questions in one review, and would put three blocks on one Wednesday — which is what this PR exists to stop. ### Notes and headers Each re-dated block carries a dated note in the register's own comment style (`# Re-dated 2026-08-20 (#1553): <old> -> <new>, <why>`), recording the move, the justification, and that it is scheduling only. The three register headers are **extended, not rewritten** — the 2026-08-04 snap paragraph stays verbatim and a `STAGGER (#1553)` paragraph follows it, so the historical record is intact and the file no longer contradicts itself. ## Changelog Entry ```markdown ### Changed - **Security-exception expiries are staggered across distinct Wednesdays** ([#1553](#1553)) - 29 of the 33 live exception entries expired on the same day, `2026-09-02`: 24 in `.vulnixignore` (7 blocks), 4 in `.trivyignore` (3 blocks) and the one `.github/dependency-review-allow.txt` entry. One stalled review on that date would have taken every open PR's CI, both nightly `security-scan` lanes and the release train red at once — the cliff that `docs/CONTAINER_SECURITY.md` already warns about ("stagger across weeks, not weekdays") - Each block now owns a distinct Wednesday, spread by week-multiples and ordered by how soon its remediation lever can move: podman keeps `2026-09-02` as the anchor (weekly re-check, backport open), then unbound `09-09`, the libssh2 6603x batch `09-16`, libssh2 `CVE-2026-58050` `09-23`, the lower-reachability batch `09-30`, fzf `10-07` and glibc `10-14` (no rev-advance lever exists, so it takes the longest window). The `.trivyignore` blocks follow at `10-21`/`10-28`/`11-04` and the dependency-review allow-list at `11-11`, keeping that register's review off the vulnix weeks - The Class-1 CPE-mismatch block keeps its yearly `2027-06-23` - Scheduling only: no risk assessment was re-opened and no entry was added or removed. Every re-dated block records the move and its justification in the register's own note style ``` ## Testing - [x] Tests pass locally (`just test`) -- full `prek run --all-files` suite green - [x] Manual testing performed (describe below) ### Manual Testing Details **Validator** ``` $ uv run check-expirations .trivyignore .vulnixignore .github/dependency-review-allow.txt Validated 33 exception(s) across 3 file(s) exit=0 ``` **Resulting distribution** (enumerated via `vig_utils.check_expirations.parse_entries`): ``` date weekday n file(s) -> identifiers 2026-09-02 Wednesday 1 .vulnixignore -> CVE-2026-57231 2026-09-09 Wednesday 5 .vulnixignore -> CVE-2026-50252 CVE-2026-32665 CVE-2026-40691 CVE-2026-44690 CVE-2026-55973 2026-09-16 Wednesday 4 .vulnixignore -> CVE-2026-66032 CVE-2026-66033 CVE-2026-66034 CVE-2026-66035 2026-09-23 Wednesday 1 .vulnixignore -> CVE-2026-58050 2026-09-30 Wednesday 5 .vulnixignore -> CVE-2026-27820 CVE-2026-11822 CVE-2026-11824 CVE-2025-59777 CVE-2025-62689 2026-10-07 Wednesday 2 .vulnixignore -> CVE-2026-53432 CVE-2026-53433 2026-10-14 Wednesday 6 .vulnixignore -> CVE-2025-15281 CVE-2026-4046 CVE-2026-4437 CVE-2026-5435 CVE-2026-5450 CVE-2026-5928 2026-10-21 Wednesday 1 .trivyignore -> CVE-2026-42504 2026-10-28 Wednesday 2 .trivyignore -> CVE-2026-32316 CVE-2026-40164 2026-11-04 Wednesday 1 .trivyignore -> jwt-token 2026-11-11 Wednesday 1 .github/dependency-review-allow.txt -> GHSA-wvrr-2x4r-394v 2027-06-23 Wednesday 4 .vulnixignore -> CVE-2021-28794 CVE-2022-30947 CVE-2022-36882 CVE-2022-36883 total entries: 33 | distinct dates: 12 non-Wednesday or shared-across-files dates: NONE ``` 12 distinct dates, 12 blocks, one block per date. The `2027-06-23` Class-1 block is untouched and collides with nothing. **TDD skipped, deliberately.** This is a data/config change with no code path to exercise; there is nothing to write a failing test against. The format and expiry semantics are already covered by `check-expirations`, which runs in pre-commit and in all PR CI and passes against all 33 entries. Forcing a unit test here would pin the dates themselves, which are meant to move. ## 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 - [x] I have updated the documentation accordingly (edit `docs/templates/`, then run `just docs`) -- N/A, no documentation change (explicit non-goal; the staggering rule is already documented) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] My changes generate no new warnings or errors - [x] I have added tests that prove my fix is effective or that my feature works -- N/A, see TDD note above - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published ## Additional Notes **Deliberately out of scope** (per the issue's non-goals): - No risk assessment re-opened, no entry added or removed, no rationale text rewritten. - No documentation change -- `docs/CONTAINER_SECURITY.md` already documents the grid and the stagger rule; this PR brings the register into line with it. - No tooling change -- advance warning for an upcoming expiry cliff is tracked separately. - The `2027-06-23` Class-1 block is untouched. **Parallel work.** #1552 is in flight at the same time and touches tooling only (`check_expirations.py` and its tests, `security-scan.yml`, `docs/CONTAINER_SECURITY.md`) -- none of which this PR touches. A `CHANGELOG.md` conflict is the only expected overlap. Refs: #1553
|
Shouldn't CI have caught the change of the file, and added the merge-conflict label?, or does it only catch those for PRs against |
|
Since the target branch already contained the exact same commits, I think git was just like: that's a no-op or something 😅 |
…nce (#1569) ## Description The register reconciliation that milestone 1.11.1 exists for — closes #1563 (dev). #1564 (main) closes when this reaches `main` via the release merge; the train must promote before **2026-09-02**, when the podman entry would have expired and `check-expirations` would red every branch, both nightly lanes and the release train. **A renewal is a re-verification, not a date bump — and this one is better: 14 deletions, zero renewals.** Verified against the first scan on the new closure (dispatched run [32969211536](https://github.com/vig-os/devkit/actions/runs/32969211536), 2026-08-26, both refs green): | deleted | why gone | |---|---| | podman `CVE-2026-57231` (the 09-02 anchor) | pin ships podman **5.8.6** ≥ the 5.8.4 fix (release-26.05 absorbed the commits directly; backport PR NixOS/nixpkgs#536367 closed as a no-op) | | unbound ×5 (09-09) | pin ships unbound **1.26.0**, past the 1.25.2 fix release | | libssh2 6603x ×4 (09-16) | all four `CVE-2026-6603x.patch` entries applied in-derivation; vulnix credits CVE-named patches | | libssh2 `CVE-2026-58050` (09-23) | `CVE-2026-58050.patch` applied in-derivation | | git `CVE-2022-30947`/`-36882`/`-36883` (Class-1 CPE mismatches) | vanished from the findings while git stayed 2.54.0 — the NVD CPE correction the block's yearly re-check waited for | **Retained unchanged on their staggered Wednesdays:** glibc ×6 (10-14), lower-reachability ×5 (09-30), fzf ×2 (10-07, still 0.72.0 unpatched at the new rev), shellcheck Class-1 (2027-06-23). Each deletion is a tombstone in the register, per its established audit-trail convention. ## Type of Change - [x] `fix` -- Bug fix ## Changes Made - `.vulnixignore`: four blocks + three Class-1 entries removed with tombstones; RECONCILED header note; stale "Renovate `nix` manager + lockFileMaintenance (#638)" lever references updated to the `update-nixpkgs.yml` workflow (#1565) — deferred here from #1566 for minimal diff. - `CHANGELOG.md`: Security entry. ## Changelog Entry ### Security - **Security exception register reconciled against the advanced nixpkgs pin — 14 entries deleted, none renewed** ([#1563](#1563), [#1564](#1564)) (full entry with sub-bullets in `CHANGELOG.md`) ## Testing - [x] Manual testing performed (describe below) ### Manual Testing Details - `uv run vulnix-gate -r .vulnixignore <run-32969211536 dev findings>` → **green**: "No unexcepted HIGH/CRITICAL findings (CVSS >= 7.0); 14 exception(s) applied" — every surviving entry still matches a live finding (no dead weight), every deleted entry is absent from the findings. - Cross-checked `.trivyignore` and `.github/dependency-review-allow.txt`: none of the cleared CVE ids appears there. - Full `just precommit` green (includes `check-expirations`). ## Checklist - [x] My code follows the project's style guidelines - [x] I have performed a self-review of my code - [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 (not applicable — register data change; the gate + check-expirations are the executable checks and both ran green) - [x] New and existing unit tests pass locally with my changes - [x] Any dependent changes have been merged and published (#1568 merged) ## Additional Notes New sub-threshold findings on the fresh closure (jq, libusb, nghttp2, busybox, ada, gcc, zlib CVE-2023-6992, glibc CVE-2026-4438/-6238) are all below the gate's CVSS 7.0 threshold — awareness-only per policy, no exceptions needed, confirmed by the green gate run above. Closes #1563 Refs: #1563, #1564
Backporting #536067 and #531125.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.