Skip to content

fix(ci): advance the pinned nixpkgs rev on a weekly schedule - #1566

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1565-automate-nixpkgs-pin-advance
Aug 26, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1565-automate-nixpkgs-pin-advance

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Closes the automation gap behind milestone 1.11.1: the pinned nixpkgs rev — the primary CVE-remediation lever per docs/CONTAINER_SECURITY.md — had no working automated advance. Renovate's nix manager (the documented mechanism) has never opened a flake.lock PR, so the pin only ever moved by hand and every expiring security exception was re-reviewed against an unchanged closure.

Investigation outcome (issue option 1 vs 2): Renovate's nix manager is beta/opt-in, detects zero flake inputs in this repo (Dependency Dashboard #529 lists only the custom.regex pip-licenses entry under flake.nix), and its lock-file maintenance delegates to an external nix binary the hosted Mend app does not run. Option 2 — a scheduled workflow mirroring the proven update-nixpkgs-unstable.yml pattern — is wholly under our control and lands in the Monday window the Wednesday expiry grid assumes.

Type of Change

  • fix -- Bug fix

Changes Made

  • New .github/workflows/update-nixpkgs.yml: Mondays 04:30 UTC + workflow_dispatch; runs nix flake update nixpkgs, commits via vig-os/commit-action (signed) on chore/update-nixpkgs, opens a PR to dev with the two-app token split. Full PR CI (closure rebuild included) remains the merge gate; the workflow only proposes the advance.
  • docs/CONTAINER_SECURITY.md: §1 and §4 now describe this workflow as the mechanism (with a "Why not Renovate?" note); the Wednesday-grid derivation's step 1 references the workflow's cron instead of Renovate's schedule.
  • Renovate config untouched: the nix manager stays enabled (harmless; a second signal if it ever starts working), lockFileMaintenance still covers the pip/npm lockfiles.

Changelog Entry

Fixed

  • The pinned nixpkgs rev now advances automatically every week (#1565)

(full entry with sub-bullets in CHANGELOG.md)

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

Workflow + docs change — no testable in-repo code path (the bats harness does not cover scheduled workflows; TDD exemption noted). Local just test: 1113 passed, 3 skipped, 1 failed — the failure is test_github_cli_authentication, a host-environment quirk (gh credential-store migration wants dbus-launch, absent on this host); it exercises no path this diff touches and is green in CI on dev. Verification: actionlint, yamllint, zizmor and the full just precommit suite green locally; the workflow is a line-for-line adaptation of update-nixpkgs-unstable.yml, which runs weekly in production. First real execution will be a workflow_dispatch right after merge to open the pin-advance PR that #1563 needs.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (docs/CONTAINER_SECURITY.md is not templated)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • 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 — workflow/docs only, see Testing)
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Same-milestone, separate-PR split as #1547/#1548: this PR closes the hole that keeps regenerating expiry issues; the deadline-bound register reconciliation (#1563/#1564) follows in its own PR once the pin-advance PR this workflow opens has merged and the nightly scan has produced a findings delta.

Refs: #1565

Renovate's nix manager never opened a flake.lock PR, so the primary
CVE-remediation lever only ever moved by hand and expiring security
exceptions were re-reviewed against an unchanged closure. Add
update-nixpkgs.yml (Mondays 04:30 UTC + workflow_dispatch), mirroring
the proven update-nixpkgs-unstable.yml pattern, and correct
docs/CONTAINER_SECURITY.md to describe the mechanism that actually runs.

Refs: #1565
@c-vigo
c-vigo merged commit b245b9e into dev Aug 26, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/1565-automate-nixpkgs-pin-advance branch August 26, 2026 12:24
c-vigo added a commit that referenced this pull request Aug 26, 2026
…1568)

## Description

Pin advance `531670d8` (2026-08-03) → `f4f69867` (2026-08-25) — the
primary CVE-remediation lever, and step 1 of the register renewal that
#1563/#1564 require before the 2026-09-02 expiry. Opened by hand this
once (the scheduled `update-nixpkgs.yml` from #1566 first fires Monday
08-31, after the deadline window needs this to be already merged).

Verified at the new rev (`nix eval` per package):

| register block | package at new rev | expected outcome |
|---|---|---|
| podman `CVE-2026-57231` (expires **09-02**, the deadline anchor) |
podman **5.8.6** | finding drops — block deletable |
| unbound ×5 (09-09) | unbound **1.26.0** | findings drop — block
deletable |
| libssh2 6603x ×4 (09-16) + `CVE-2026-58050` (09-23) | libssh2 1.11.1
**with `CVE-2026-58050.patch` + `CVE-2026-66032..66035.patch`** (vulnix
credits CVE-named patches) | findings drop — both blocks deletable |
| fzf ×2 (10-07) | fzf **0.72.0**, no patches | block retained |

## Type of Change

- [x] `build` -- Build system or dependency changes

## Changes Made

- `flake.lock`: `nixpkgs` node only (`nix flake update nixpkgs`).

## Changelog Entry

No changelog needed — routine pin advance (same class as the scheduled
weekly bumps); the register reconciliation PR that follows carries the
Security changelog entry.

## Testing

- [ ] Tests pass locally — not run on this branch (lock-only change; PR
CI runs the full suite and the closure rebuild, which is the
authoritative gate)

Full `just precommit` green locally. The authoritative gate is this PR's
CI closure rebuild; the authoritative findings delta is the first
nightly `security-scan` after merge, which the register reconciliation
(#1563) will read before deleting any entry.

## Additional Notes

Per `docs/CONTAINER_SECURITY.md`, a pin advance is its own reviewable
act: this PR carries only the lock change. The register reconciliation
lands separately once the scan delta confirms the table above.

Refs: #1563
c-vigo added a commit that referenced this pull request Aug 26, 2026
…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
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