Skip to content

libssh2: apply debian patches for CVE-2026-6603[2345] - #547491

Merged
vcunat merged 1 commit into
NixOS:stagingfrom
whispersofthedawn:p/libssh2
Aug 7, 2026
Merged

vcunat merged 1 commit into
NixOS:stagingfrom
whispersofthedawn:p/libssh2

Conversation

@whispersofthedawn

@whispersofthedawn whispersofthedawn commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #545668

see libssh2/libssh2#1925 (comment) for some more context

Fixes: CVE-2026-66032, CVE-2026-66033, CVE-2026-66034, CVE-2026-66035

this should be backported, but #546446 will need a merge first

Things done

@whispersofthedawn whispersofthedawn added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Jul 30, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. labels Jul 30, 2026
@whispersofthedawn whispersofthedawn added the backport staging-26.05 Backport PR automatically label Aug 1, 2026
c-vigo added a commit to vig-os/devkit that referenced this pull request Aug 4, 2026
Add a time-boxed .vulnixignore block (expires 2026-08-31) for the three HIGH
libssh2 1.11.1 CVEs disclosed 2026-07-24 that turned the nightly vulnix gate
red on dev and main from 2026-07-31: CVE-2026-66033, -66034, -66035. All three
are client-side flaws requiring a connection to a malicious SSH server; libssh2
enters the closure only as curl's scp/sftp backend. Upstream has published no
release since 1.11.1 and the nixpkgs patches (NixOS/nixpkgs#547491) are still
on staging behind #546446, so no rev-advance is available.

Prune five entries that are already fixed at the pinned rev by the #1273 pin
advance, which the register was never reconciled against: CVE-2026-55200
(libssh2), CVE-2026-41992 (gzip) and CVE-2026-11979 (libxml2) carry CVE-named
nixpkgs patches, which vulnix credits; socat is at 1.8.1.3 (CVE-2026-56123) and
ldns at 1.9.2 (CVE-2026-10846). The libssh2 and socat entries lapsed on
2026-08-03, failing check-expirations on every branch.

Renew podman CVE-2026-57231 (lapsing 2026-08-06) to 2026-08-31: nixos-26.05
still ships 5.8.2 and the release-26.05 backport is still a draft.

Refs: #1327
c-vigo added a commit to vig-os/devkit that referenced this pull request Aug 4, 2026
…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).
vig-os-release-app Bot added a commit to vig-os/devkit-smoke-test that referenced this pull request Aug 4, 2026
# Release 1.6.0

This PR prepares release 1.6.0 for merge to main.

## [1.6.0] - TBD

### Added

- **Tombstoned tag names fail with the real cause**
([#1319](vig-os/devkit#1319))
- The downstream `release-publish.yml` template now recognizes the
`GH013`
"creations restricted" signature on tag push and release creation — the
mark
of a tag name permanently retired because its published release was
deleted
under org-enforced immutability — and fails with a "version burned —
re-cut
    required" diagnosis instead of a generic push/create error.
- Devkit's `promote-release.yml` cross-repo gate no longer only advises
"wait and retry" when no downstream release exists: it names the
tombstone
    as a possible cause and points at the point-of-no-return runbook.

### Changed

- **Smoke-test deploy of 1.6.0** -- automated devcontainer
release-pipeline validation; no functional changes
- **Security exception expiries land on a Wednesday**
([#1337](vig-os/devkit#1337))
- `docs/CONTAINER_SECURITY.md` now documents an expiry grid for the
exception
registers: every `Expiration:` date is picked on a Wednesday, so an
entry
turns red on the Thursday *after* the week's Renovate `nixpkgs` bump has
merged and the first nightly scan has produced a findings delta against
the
new closure — the point at which a review can delete entries instead of
blindly extending them. Earlier weekdays force that blind extension (or,
on
a Sunday, take unrelated PRs red before the week's Renovate PRs even
open);
    later ones lapse over an unattended weekend, blocking every commit.
- All 12 non-conforming dates across `.vulnixignore`, `.trivyignore` and
`.github/dependency-review-allow.txt` were snapped onto the grid (shift
≤ 3 days each). This is a scheduling change only — no risk assessment
was
    re-opened or altered. Notably the glibc block no longer expires on a
Saturday, where it would have turned red unattended on Sunday
2026-08-16.
- Convention enforced by review, not by `check-expirations`: the
validator is
unchanged, since it is scaffolded into consumer repos whose release
cadence
    may differ.
- **Consumer Renovate ignores devkit-managed workflows and actions**
([#1332](vig-os/devkit#1332))
- The shipped preset (`.github/renovate-default.json`) now disables
Renovate
    for the managed workflow set and the two managed composite actions
    (`setup-devkit-toolchain`, `resolve-toolchain`) via a trailing
`enabled: false` packageRule. Their SHA-pinned action digests advance
upstream in devkit and ship with each release, so downstream Renovate no
longer opens duplicate pin-bump PRs that the next `devkit-upgrade`
clobbers.
- The rule is last, so a consumer can opt a specific managed file back
in from
    their preserved `renovate.json` (later rules win). Devkit's own root
`renovate.json` re-enables its root workflows/actions so devkit keeps
    advancing the pins it owns.
- **Renovate: update `github/codeql-action` from `f205ea1` to
`d1ba80a`** ([#1330](vig-os/devkit#1330))
- **Renovate: update `aquasecurity/trivy` from `v0.72.0` to `v0.73.0`**
([#1331](vig-os/devkit#1331))
- **Renovate: update `github-backup` from `==0.65.0` to `==0.65.1`**
([#1324](vig-os/devkit#1324))
- **Release runbook: restart point of no return**
([#1318](vig-os/devkit#1318))
- `docs/RELEASE_CYCLE.md` now documents that deleting a **published**
GitHub
Release under org-enforced immutability permanently tombstones its tag
name
(`GH013`), and adds a recovery-procedures subsection: finalize restarts
are
    free only while every release object in the pipeline (devkit **and**
`devkit-smoke-test`) is still a draft; once smoke-test publishes its
final,
the version is committed and a restart means burning it (re-cut as the
next
    patch). Lesson from the 1.5.0 ghost.

### Fixed

- **Upgrades no longer skip same-size template changes on previously
scaffolded consumers**
([#1344](vig-os/devkit#1344))
- The scaffold's template copy (`rsync -avL`) relied on rsync's
size+mtime
quick-check. The dereferenced template files carry the Nix store's
canonical
epoch+1 mtime, and `-a` (`-t`) stamps that same mtime onto the workspace
copies — so a later template change that keeps the byte count identical
(a
digest-for-digest action bump, like #1330's `codeql-action` update in
`scorecard.yml`) matched the consumer file on both size and mtime and
was
silently never delivered by host-side upgrades of previously
nix-scaffolded
consumers. CI paths were unaffected (fresh checkouts have current
mtimes),
which is how the scaffold-drift gate (#1295) caught the divergence on
its
first live exercise: four of five 1.6.0-rc1 consumer lanes went red on a
    scaffold the upgrade itself had produced.
- All three template `rsync` invocations (consumer upgrade, smoke clean
deploy, smoke overlay) now pass `--checksum`, so delivery is decided by
    content, not size+mtime coincidence.
- **The nightly scan keeps its SBOM when the vulnix gate goes red**
([#1342](vig-os/devkit#1342))
  - `security-scan.yml` generated the CycloneDX SBOM and ran the Trivy
defence-in-depth view *after* the blocking `vulnix-gate` step, with no
`if:`
    condition, so a red gate ended the job before they ran. The uploaded
artifact was complete on green runs and stripped on red ones — the
inverse
of what triage needs (17 kB on the red 2026-08-03 dev run vs ~466 kB on
the
    green 2026-07-30 one).
- The SBOM steps now run before the gate, which stays last, blocking and
    unchanged — so it remains the job's verdict and the tracking-issue
    automation that keys on its outcome is unaffected.
- **Trunk consumers' Renovate preset now targets `main`**
([#1336](vig-os/devkit#1336))
- The trunk render (`render_workflow_model`) retargets
`baseBranchPatterns`
from `["dev"]` to `["main"]` in the scaffolded
`.github/renovate-default.json`.
Previously a `DEVKIT_WORKFLOW=trunk` consumer kept `["dev"]` while
having no
`dev` branch, leaving Renovate with nothing to operate on — effectively
inert. Existing trunk repos self-heal on their next `devkit-upgrade`.

### Security

- **Advance the nixpkgs pin and drop the gawk exception block**
([#1328](vig-os/devkit#1328))
  - Advanced the pinned `nixpkgs` rev (`flake.lock`) from nixos-26.05
@ `8623c4c2` (2026-07-26) to @ `531670d8` (2026-08-03), which is the
first
pinned-channel rev to ship **gawk 5.4.1**. The rebuilt closure confirms
it.
- Removed the gawk 5.4.0 CERT-PL block (CVE-2026-40467, -40468, -40469,
-40553) instead of renewing it a third time. It had been extended at
#1240
and again at the #1273 pin advance only because the fix sat in nixpkgs
`staging` as a stdenv mass-rebuild, leaving the "advance the rev" lever
with
    nowhere to land.
  - The before/after `vulnix` closure diff is exactly those four CVEs
(59 → 55 unique advisories) with nothing new appearing, and the gate
passes
    on 27 exceptions (down from 31).
- The rest of the register was re-verified against the new rev and
nothing
else became droppable: fzf (0.72.0), libssh2 (1.11.1, still carrying no
6603x patch), unbound (1.25.1) and podman (5.8.2) are all unchanged, so
    those blocks are retained with a 2026-08-04 re-verification note.
- **vulnix register: except the libssh2 malicious-server batch, prune
five dead exceptions**
([#1327](vig-os/devkit#1327),
[#1322](vig-os/devkit#1322),
[#1323](vig-os/devkit#1323))
- New time-boxed `.vulnixignore` block (expires 2026-08-31) for the
three
HIGH libssh2 1.11.1 CVEs disclosed 2026-07-24 (CVE-2026-66033, -66034,
    -66035) that turned the nightly security scan red on both refs from
2026-07-31. All three are client-side flaws requiring a connection to a
malicious SSH server; libssh2 enters the closure only as curl's scp/sftp
backend. Upstream has published no release since 1.11.1 and the nixpkgs
patches (NixOS/nixpkgs#547491) are still on `staging`, so no rev-advance
is
    available.
- Five exceptions removed as dead — each already fixed at the pinned rev
by
the #1273 pin advance, which the register was never reconciled against:
libssh2 CVE-2026-55200, gzip CVE-2026-41992 and libxml2 CVE-2026-11979
    (CVE-named nixpkgs patches, which vulnix credits), plus socat
CVE-2026-56123 (1.8.1.3) and ldns CVE-2026-10846 (1.9.2). Two of them
had
    lapsed on 2026-08-03, failing `check-expirations` on every branch.
- podman CVE-2026-57231 renewed to 2026-08-31 (re-verified:
`nixos-26.05`
    still ships 5.8.2 and the release-26.05 backport is still a draft).
vig-os-release-app Bot added a commit to vig-os/devkit that referenced this pull request Aug 4, 2026
# [Release 1.6.0](https://github.com/vig-os/devkit/releases/tag/1.6.0) -
2026-08-04

This PR prepares release 1.6.0 for merge to main.

## [1.6.0](https://github.com/vig-os/devkit/releases/tag/1.6.0) -
2026-08-04

### Added

- **Tombstoned tag names fail with the real cause**
([#1319](#1319))
- The downstream `release-publish.yml` template now recognizes the
`GH013`
"creations restricted" signature on tag push and release creation — the
mark
of a tag name permanently retired because its published release was
deleted
under org-enforced immutability — and fails with a "version burned —
re-cut
    required" diagnosis instead of a generic push/create error.
- Devkit's `promote-release.yml` cross-repo gate no longer only advises
"wait and retry" when no downstream release exists: it names the
tombstone
    as a possible cause and points at the point-of-no-return runbook.

### Changed

- **Security exception expiries land on a Wednesday**
([#1337](#1337))
- `docs/CONTAINER_SECURITY.md` now documents an expiry grid for the
exception
registers: every `Expiration:` date is picked on a Wednesday, so an
entry
turns red on the Thursday *after* the week's Renovate `nixpkgs` bump has
merged and the first nightly scan has produced a findings delta against
the
new closure — the point at which a review can delete entries instead of
blindly extending them. Earlier weekdays force that blind extension (or,
on
a Sunday, take unrelated PRs red before the week's Renovate PRs even
open);
    later ones lapse over an unattended weekend, blocking every commit.
- All 12 non-conforming dates across `.vulnixignore`, `.trivyignore` and
`.github/dependency-review-allow.txt` were snapped onto the grid (shift
≤ 3 days each). This is a scheduling change only — no risk assessment
was
    re-opened or altered. Notably the glibc block no longer expires on a
Saturday, where it would have turned red unattended on Sunday
2026-08-16.
- Convention enforced by review, not by `check-expirations`: the
validator is
unchanged, since it is scaffolded into consumer repos whose release
cadence
    may differ.
- **Consumer Renovate ignores devkit-managed workflows and actions**
([#1332](#1332))
- The shipped preset (`.github/renovate-default.json`) now disables
Renovate
    for the managed workflow set and the two managed composite actions
    (`setup-devkit-toolchain`, `resolve-toolchain`) via a trailing
`enabled: false` packageRule. Their SHA-pinned action digests advance
upstream in devkit and ship with each release, so downstream Renovate no
longer opens duplicate pin-bump PRs that the next `devkit-upgrade`
clobbers.
- The rule is last, so a consumer can opt a specific managed file back
in from
    their preserved `renovate.json` (later rules win). Devkit's own root
`renovate.json` re-enables its root workflows/actions so devkit keeps
    advancing the pins it owns.
- **Renovate: update `github/codeql-action` from `f205ea1` to
`d1ba80a`** ([#1330](#1330))
- **Renovate: update `aquasecurity/trivy` from `v0.72.0` to `v0.73.0`**
([#1331](#1331))
- **Renovate: update `github-backup` from `==0.65.0` to `==0.65.1`**
([#1324](#1324))
- **Release runbook: restart point of no return**
([#1318](#1318))
- `docs/RELEASE_CYCLE.md` now documents that deleting a **published**
GitHub
Release under org-enforced immutability permanently tombstones its tag
name
(`GH013`), and adds a recovery-procedures subsection: finalize restarts
are
    free only while every release object in the pipeline (devkit **and**
`devkit-smoke-test`) is still a draft; once smoke-test publishes its
final,
the version is committed and a restart means burning it (re-cut as the
next
    patch). Lesson from the 1.5.0 ghost.

### Fixed

- **Upgrades no longer skip same-size template changes on previously
scaffolded consumers**
([#1344](#1344))
- The scaffold's template copy (`rsync -avL`) relied on rsync's
size+mtime
quick-check. The dereferenced template files carry the Nix store's
canonical
epoch+1 mtime, and `-a` (`-t`) stamps that same mtime onto the workspace
copies — so a later template change that keeps the byte count identical
(a
digest-for-digest action bump, like #1330's `codeql-action` update in
`scorecard.yml`) matched the consumer file on both size and mtime and
was
silently never delivered by host-side upgrades of previously
nix-scaffolded
consumers. CI paths were unaffected (fresh checkouts have current
mtimes),
which is how the scaffold-drift gate (#1295) caught the divergence on
its
first live exercise: four of five 1.6.0-rc1 consumer lanes went red on a
    scaffold the upgrade itself had produced.
- All three template `rsync` invocations (consumer upgrade, smoke clean
deploy, smoke overlay) now pass `--checksum`, so delivery is decided by
    content, not size+mtime coincidence.
- **The nightly scan keeps its SBOM when the vulnix gate goes red**
([#1342](#1342))
  - `security-scan.yml` generated the CycloneDX SBOM and ran the Trivy
defence-in-depth view *after* the blocking `vulnix-gate` step, with no
`if:`
    condition, so a red gate ended the job before they ran. The uploaded
artifact was complete on green runs and stripped on red ones — the
inverse
of what triage needs (17 kB on the red 2026-08-03 dev run vs ~466 kB on
the
    green 2026-07-30 one).
- The SBOM steps now run before the gate, which stays last, blocking and
    unchanged — so it remains the job's verdict and the tracking-issue
    automation that keys on its outcome is unaffected.
- **Trunk consumers' Renovate preset now targets `main`**
([#1336](#1336))
- The trunk render (`render_workflow_model`) retargets
`baseBranchPatterns`
from `["dev"]` to `["main"]` in the scaffolded
`.github/renovate-default.json`.
Previously a `DEVKIT_WORKFLOW=trunk` consumer kept `["dev"]` while
having no
`dev` branch, leaving Renovate with nothing to operate on — effectively
inert. Existing trunk repos self-heal on their next `devkit-upgrade`.

### Security

- **Advance the nixpkgs pin and drop the gawk exception block**
([#1328](#1328))
  - Advanced the pinned `nixpkgs` rev (`flake.lock`) from nixos-26.05
@ `8623c4c2` (2026-07-26) to @ `531670d8` (2026-08-03), which is the
first
pinned-channel rev to ship **gawk 5.4.1**. The rebuilt closure confirms
it.
- Removed the gawk 5.4.0 CERT-PL block (CVE-2026-40467, -40468, -40469,
-40553) instead of renewing it a third time. It had been extended at
#1240
and again at the #1273 pin advance only because the fix sat in nixpkgs
`staging` as a stdenv mass-rebuild, leaving the "advance the rev" lever
with
    nowhere to land.
  - The before/after `vulnix` closure diff is exactly those four CVEs
(59 → 55 unique advisories) with nothing new appearing, and the gate
passes
    on 27 exceptions (down from 31).
- The rest of the register was re-verified against the new rev and
nothing
else became droppable: fzf (0.72.0), libssh2 (1.11.1, still carrying no
6603x patch), unbound (1.25.1) and podman (5.8.2) are all unchanged, so
    those blocks are retained with a 2026-08-04 re-verification note.
- **vulnix register: except the libssh2 malicious-server batch, prune
five dead exceptions**
([#1327](#1327),
[#1322](#1322),
[#1323](#1323))
- New time-boxed `.vulnixignore` block (expires 2026-08-31) for the
three
HIGH libssh2 1.11.1 CVEs disclosed 2026-07-24 (CVE-2026-66033, -66034,
    -66035) that turned the nightly security scan red on both refs from
2026-07-31. All three are client-side flaws requiring a connection to a
malicious SSH server; libssh2 enters the closure only as curl's scp/sftp
backend. Upstream has published no release since 1.11.1 and the nixpkgs
patches (NixOS/nixpkgs#547491) are still on `staging`, so no rev-advance
is
    available.
- Five exceptions removed as dead — each already fixed at the pinned rev
by
the #1273 pin advance, which the register was never reconciled against:
libssh2 CVE-2026-55200, gzip CVE-2026-41992 and libxml2 CVE-2026-11979
    (CVE-named nixpkgs patches, which vulnix credits), plus socat
CVE-2026-56123 (1.8.1.3) and ldns CVE-2026-10846 (1.9.2). Two of them
had
    lapsed on 2026-08-03, failing `check-expirations` on every branch.
- podman CVE-2026-57231 renewed to 2026-08-31 (re-verified:
`nixos-26.05`
    still ships 5.8.2 and the release-26.05 backport is still a draft).
@vcunat
vcunat added this pull request to the merge queue Aug 7, 2026
Merged via the queue into NixOS:staging with commit e9d3ac3 Aug 7, 2026
34 of 36 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for staging-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Aug 7, 2026
@whispersofthedawn
whispersofthedawn deleted the p/libssh2 branch August 7, 2026 12:43
c-vigo added a commit to vig-os/devkit that referenced this pull request Aug 7, 2026
## Summary

The 1.7.0-rc1 candidate run
([31200317431](https://github.com/vig-os/devkit/actions/runs/31200317431))
was blocked by the Vulnix CVE Gate on **CVE-2026-66032** (CVSS 8.8,
double-free in libssh2 `sftp_open()`) — the fourth member of the libssh2
malicious-server batch whose siblings (CVE-2026-66033/66034/66035) are
already excepted in the 2026-09-02 block (#1327). It was absent from the
findings at the 2026-08-04 triage (published on NVD 2026-07-24,
scored/ingested later).

- `.vulnixignore`: add CVE-2026-66032 to the existing 2026-09-02 block
with a dated triage note. Same closure provenance (libssh2 enters only
as curl's scp/sftp backend) and reachability (authenticated SFTP session
to a malicious server) as the siblings.
- nixpkgs status re-checked online 2026-08-07: NixOS/nixpkgs#547491
(debian patches for CVE-2026-6603[2345]) merged to **master** 12:41Z,
but the 26.05 backport NixOS/nixpkgs#550166 targets staging-26.05 and is
still open — the patched derivation has not reached the pinned
`nixos-26.05` channel, so exception is the only lever today. The whole
block drops on the next effective rev-advance.
- `CHANGELOG.md`: Security entry in the frozen `## [1.7.0]` section (+
managed mirror via sync-manifest).

## Testing

Config/register change — no code path to test (`check-expirations`
validates the register in pre-commit + CI). Full `just precommit` suite
green locally. Proof of fix is the re-dispatched candidate's Vulnix CVE
Gate.

Refs: #1386
vig-os-release-app Bot added a commit to vig-os/devkit-smoke-test that referenced this pull request Aug 8, 2026
# Release 1.7.0

This PR prepares release 1.7.0 for merge to main.

## [1.7.0] - TBD

### Added

- **`CODE_OF_CONDUCT.md`**
([#1372](vig-os/devkit#1372))
- Contributor Covenant 2.1 at the repository root. Enforcement reports
go
through the same [GitHub Private Vulnerability
Reporting](https://github.com/vig-os/devkit/security/advisories/new)
channel `SECURITY.md` already designates, so there is one private route
to
    the maintainers rather than two.

### Changed

- **Smoke-test deploy of 1.7.0** -- automated devcontainer
release-pipeline validation; no functional changes
- **Stamped workflows authenticate with App Client IDs — new org secret
required** ([#1365](vig-os/devkit#1365))
- **Action required before upgrading:** create a
`DEVKIT_UPGRADE_APP_CLIENT_ID`
secret (org or repo) holding the upgrade App's Client ID (`Iv23li…`).
**Create the secret first, then upgrade** — config-first, always. For
this
    release the legacy numeric `DEVKIT_UPGRADE_APP_ID` still works as a
fallback (with a deprecation warning), so an upgrade that races the
secret
    is not bricked; the fallback is removed in a future release
    ([#1366](vig-os/devkit#1366)).
- `sync-issues.yml` now passes `COMMIT_APP_CLIENT_ID` through the
`client-id`
    input added in `vig-os/sync-issues-action` v0.5.0 — the numeric
`COMMIT_APP_ID` secret is no longer read anywhere and can be retired
once
    every consumer is on this release.
  - `devkit-upgrade.yml` prefers `DEVKIT_UPGRADE_APP_CLIENT_ID` in its
    preflight gate and `create-github-app-token` mint.
- Nothing in the auth path is numerically load-bearing: GitHub accepts
either
    the App ID or the Client ID as the App JWT issuer.
- **`CONTRIBUTE.md` renamed to `CONTRIBUTING.md`**
([#1372](vig-os/devkit#1372))
- GitHub's community profile only recognises `CONTRIBUTING.md`, so the
guide
was invisible to it and no "Contributing guidelines" link appeared on
new
    issues and pull requests.
  - The file is generated, so the rename covers the whole chain:
`docs/templates/CONTRIBUTE.md.j2` ->
`docs/templates/CONTRIBUTING.md.j2`,
`docs/generate.py`, the pymarkdown exclude in `.pre-commit-config.yaml`,
the
    `expected_doc` guard in `release.yml`, the `README.md` link (and its
template), `docs/NIX.md`, and the `docs.yml` issue template. Historical
records — released changelog entries, `docs/issues/`,
`docs/pull-requests/`
    — keep the old name.
- **Renovate: update `github/codeql-action` from `d1ba80a` to
`5595cca`** ([#1367](vig-os/devkit#1367))
- **Renovate dependency update**
([#1368](vig-os/devkit#1368))
  - Update `actions/attest` from `v4.2.1` to `v4.2.2`
  - Update `actions/attest-build-provenance` from `v4.1.1` to `v4.2.2`
  - Update `vig-os/commit-action` from `v0.3.1` to `v0.3.2`
  - Update `vig-os/sync-issues-action` from `v0.4.0` to `v0.5.0`

### Fixed

- **Floating tags move via `git push` — first release of a new level no
longer fails** ([#1377](vig-os/devkit#1377))
- The scaffolded `promote-release.yml` created brand-new floating levels
via
`POST /git/refs`, the one ref-mutation path where GitHub does not honor
the
Release App's Integration ruleset bypass for the `creation` rule — so
the
first release of every new `<prefix>X` / `<prefix>X.Y` level died with
the
opaque `Reference does not exist` (HTTP 422) despite the App holding an
`always` bypass on the whole Tag ruleset (hit on `commit-action` 0.3.1
and
    `sync-issues-action` 0.5.0).
- `move_tag()` now force-pushes `TARGET_SHA:refs/tags/<name>` over git
with
the App installation token plumbed explicitly into the push URL
(checkout's
persisted credentials are the default `github.token`, which has no
bypass)
— the exact path `release-publish.yml` already uses to create release
tags,
empirically bypassed fine. Create and move collapse into one branch-free
    path; the idempotence read-and-skip guard and the loud `::error` +
MIGRATION.md fallback from #1158 stay, with the moot "grant a creation
bypass" remediation rewritten (the bypass already exists — the REST
create
    path simply ignores it).
- **Flake pymarkdown excludes follow the `CONTRIBUTING.md` rename**
([#1380](vig-os/devkit#1380))
- `nix/hooks.nix` (runner, check, and consumer profiles) and the
scaffold
template `assets/workspace/.pre-commit-config.yaml` still excluded the
removed `CONTRIBUTE.md`, drifting from the root
`.pre-commit-config.yaml`
updated in [#1372](vig-os/devkit#1372); the
    renamed contributing guide was no longer excluded from pymarkdown.
- **A no-diff devkit upgrade no longer strands its adoption issue**
([#1347](vig-os/devkit#1347))
- The scaffolded `devkit-upgrade.yml` opens the adoption issue *before*
    `install.sh --force` runs (the branch name embeds its number and the
in-shell commit needs the `Refs:` line), so a `workflow_dispatch`
against an
already-current consumer created an issue, found zero diff, skipped
publish
and PR, and exited green — leaving an issue open with no PR ever
attached.
Every credential probe or repair run against a current consumer left one
    behind.
- The find-or-create step now reports which branch it took, and a final
cleanup step on the no-diff path **closes an issue this run created**
(with
a "no diff at `<version>`" comment) while **leaving a reused one open**
— a
mid-train `rc1 → rc2 → final` issue can legitimately see a no-op bump,
and
    auto-closing it would be wrong. Comment only in that case.
- **Upgrades prune scaffold paths retired since the consumer's pin**
([#1348](vig-os/devkit#1348))
- `install.sh --force` regenerated what the *current* scaffold manages
and
pruned what the current mode / workflow model / feature set excludes —
but a
path an **old** devkit shipped and a later one **retired** was claimed
by
neither and rode along through every upgrade. Going 0.3.4 → 1.6.0
preserved
    `.cursor/`, `.github/actions/resolve-image/`,
    `.github/workflows/renovate-changelog.yml` and `.hadolint.yaml`. The
workflow file is the sharp one: left in place it is live, duplicates the
`renovate-changelog-build`/`-commit` pair that replaced it, and calls
the
pruned `resolve-image` action — so it breaks at its next trigger rather
    than at upgrade time.
- A cumulative retired-paths manifest (version → paths that version
stopped
shipping) is now consulted against the pin `.vig-os` carried **before**
the
run — the legacy `DEVCONTAINER_VERSION` key included, since repos still
on
it are precisely the oldest. Each prune is announced on stdout and
listed
    under `DELETED` in the `--force --preview` report.
- The prune is gated on that pin: a repo pinned at or past the retiring
version was never shipped the path, so an identically named `.cursor/`
or
`.hadolint.yaml` there is the consumer's own and is left untouched. A
repo
    that already upgraded past a retirement before this fix keeps its
leftovers — a one-time manual cleanup, documented in
`docs/MIGRATION.md`.
- **Preserved-file diffs show template content, not a symlink
typechange** ([#1349](vig-os/devkit#1349))
- A `--force` upgrade prints the divergence between each preserved
consumer
    file and the incoming template so the consumer can fold in template
    evolution deliberately. In the shipped image the devkit assets are
`/nix/store` symlinks, so `git diff --no-index` compared the *link*
against
the consumer's regular file and rendered a typechange — "symlink deleted
/
file added", with the store path as its only line — instead of the
content
    diff. Seen on the `vig-os/scitadel` 0.3.3 → 1.6.0 migration.
- The template side is now dereferenced before the comparison, so the
hunk
shows the actual template changes. A template symlink whose target does
not
resolve is still treated as a missing template (no diff, no error), and
the
    diff header keeps naming the file rather than an opaque store path.
- **CI dev-shell PATH keeps its priority order**
([#1351](vig-os/devkit#1351))
- The direnv-mode `setup-devkit-toolchain` wrote the dev-shell's
`/nix/store`
bin dirs to `GITHUB_PATH` highest-priority-first, but the runner
*prepends*
every line in file order — so the following steps ran with the dev-shell
PATH exactly reversed. The dirs are now written reversed, and the
per-line
    prepend rebuilds the dev-shell order verbatim.
- Only multi-store-path toolchains were affected: with one tool per
store
path the order is unobservable. A stdenv toolchain is not — the raw
`gcc`
shadowed `gcc-wrapper` (likewise `binutils`) and C builds failed with
the
    unwrapped-compiler signature `ld.bfd: cannot find Scrt1.o` /
    `cannot find -lc`, while the same build stayed green locally under
    `nix develop` (first hit: `vig-os/h5v`'s vendored HDF5 build).
- **shellHook env forward no longer ships `UV_PYTHON` to CI**
([#1353](vig-os/devkit#1353))
- Two correct mechanisms in the direnv-mode `setup-devkit-toolchain`
cancelled
out. The step drops the bare Nix CPython from the exported `PATH` and
forwards `UV_PYTHON_DOWNLOADS_JSON_URL` so `uv sync` builds the runner
venv
from a downloaded manylinux CPython (#698/#703/#729) — but the shellHook
env
forward (#1180) diffs the dev-shell env against the ambient one and
shipped
every added var, `mkProjectShell`'s `UV_PYTHON` store-path pin included.
    `UV_PYTHON` beats PATH resolution, so the venv was built on the Nix
interpreter regardless and any C-extension wheel then failed under the
Nix
loader on Ubuntu with `ImportError: libstdc++.so.6: cannot open shared
object file`. Existing direnv Python consumers were green only because
their
    test dependencies are pure-Python; first live hit
    `exo-pet/playground-carlos#9` (numpy 2.4.4).
  - `UV_PYTHON` and `UV_PYTHON_DOWNLOADS` are now denied by name in that
forward's denylist. Both are Nix-host-only by construction, and the
second
    is required for the first: on its own, a forwarded
`UV_PYTHON_DOWNLOADS=never` would forbid the very managed-CPython
download
the `_JSON_URL` forward exists to enable, turning the wheel
`ImportError`
into "no interpreter found". The patterns are exact, so the deliberate
`UV_PYTHON_DOWNLOADS_JSON_URL` forward is untouched — now pinned by a
test.
- Audit of the other vars `mkProjectShell` puts in the dev-shell env:
kept
`BATS_LIB_PATH` (a store path, but the store is realized on the runner
and
`bats` runs from the dev-shell `PATH` there), `NVIM_APPNAME` (portable
config) and `UV_PYTHON_DOWNLOADS_JSON_URL`. `LD_LIBRARY_PATH` is
exported
only behind the shellHook's own `/etc/NIXOS` guard, so it never reaches
a
hosted runner and is the correct value on a NixOS self-hosted one — left
    forwardable. Nothing else the builder sets is host-specific.
- **shellHook env forward stops leaking Nix-host state**
([#1358](vig-os/devkit#1358))
- `PYTHONPATH` is now forwarded **component-wise**: the direnv-mode
preamble
splits it on `:`, drops every `/nix/store` entry and forwards what
remains,
skipping the var when nothing is left. With `python` in the dev-shell
    `packages` the nixpkgs setup hook fills `PYTHONPATH` with store
site-packages dirs; forwarded whole, those Nix-built `cp3xx` packages
joined
    the `sys.path` of the *downloaded* manylinux CPython — same ABI tag,
    importable, the same mixed-loader shape as #1353's
    `ImportError: libstdc++.so.6`. A blanket deny was not an option: a
`shellHook` exporting `PYTHONPATH=$PWD/src` is a legitimate #1180 use
case
    and still arrives on CI intact.
  - The denylist gained the stdenv machinery it was still missing —
`_PYTHON_HOST_PLATFORM`, `_PYTHON_SYSCONFIGDATA_NAME`,
`DETERMINISTIC_BUILD`,
`CONFIG_SHELL`, the `do[A-Z]*` build flags (`doCheck`, `doInstallCheck`,
`doDist`; the symmetric partner of the already-denied `dont*`) — and the
stdenv cc/binutils hook names `AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB
READELF SIZE STRINGS STRIP`. stdenv sets those toolchain names in
**every**
dev shell as bare commands (`CC=gcc`), so every direnv consumer was
shipping
them to its whole CI job. Inside dev-shell context the wrapped toolchain
    already wins via `PATH` after #1351; for a step that runs outside it
    (`setup-python` plus `pip` building a C extension) a forwarded `CC`
resolving to the Nix wrapper recreates the #1353 mixed-toolchain hazard.
    This deliberately supersedes the `shellHook` `CC`/`CXX` forward that
vig-os/h5v used pre-#1351 — #1351 removed the need for it. The `native`
module's generic `CC=cc`/`CXX=c++` exports likewise no longer reach CI;
they
exist so build backends fall back to `PATH` discovery (#879/#893), which
the
forwarded dev-shell `PATH` still provides. A CI step that needs a
specific
compiler should set it in the workflow. Patterns are case-sensitive, so
    `DOCKER_*`/`DO_SOMETHING` are unaffected.
- `IN_NIX_SHELL` is denied too: forwarding `IN_NIX_SHELL=impure` made
every
    subsequent CI step claim to be running inside a nix shell.
- The related NixOS-self-hosted-runner gap in the CPython `PATH` filter
is
    tracked separately in
    [#1360](vig-os/devkit#1360).
- **Python consumers work on NixOS self-hosted runners**
([#1360](vig-os/devkit#1360))
- The direnv-mode preamble dropped the bare Nix CPython from the
exported
`PATH` whenever `pyproject.toml` was present — unconditionally. That is
right on a hosted FHS runner, where `uv` downloads a managed manylinux
    CPython (#698/#703/#729), and wrong by construction on a **NixOS**
self-hosted runner, where such a download cannot execute at all. #1353
made
the gap reachable: the `UV_PYTHON` pin it stopped forwarding was what
had
accidentally masked it. No consumer matched the combination yet (the one
    NixOS-runner consumer has no `pyproject.toml`), so this was a latent
    landmine rather than a live break.
- The step now probes the runner's own OS via `/etc/NIXOS` — the same
marker
`mkProjectShell`'s `shellHook` uses to gate `LD_LIBRARY_PATH` — and
takes
the matching branch. On a NixOS runner the `pyproject.toml`-gated
CPython
exclusion is skipped, so the store interpreter stays on `PATH`, **and**
`mkProjectShell`'s `UV_PYTHON` / `UV_PYTHON_DOWNLOADS=never` pins are
forwarded instead of denied. Both halves are needed: `PATH` alone leaves
`uv`'s python-preference free to prefer a managed download, and the pins
are what make it use the Nix interpreter deterministically. The podman
exclusion stays unconditional, and `UV_PYTHON_DOWNLOADS_JSON_URL` is
still
    forwarded (harmless once the pin wins).
  - On every non-NixOS runner the behavior is byte-identical to before,
    #1353's denial of the same two pins included.
- **Prefixed-tag releases publish their changelog notes**
([#1355](vig-os/devkit#1355))
- In a consumer that sets `DEVKIT_TAG_PREFIX`, the release pipeline
wrote one
changelog heading and read back another. `release-core.yml` finalizes
with
`prepare-changelog finalize … --tag-prefix "$TAG_PREFIX"`, which
composes the
prefix into the heading (`## [v1.0.0](…/releases/tag/v1.0.0) - …`),
while
`release-publish.yml` extracted the notes by matching `## [$VERSION]` on
the
    *bare* semver — a match that can never land on a prefixed heading.
- It failed soft: the empty extraction hit the fallback path, so the
release
was published with the literal body `No changelog notes found for
X.Y.Z`.
The tag and the release object were both correct and nothing went red,
which
is why it survived (observed releasing `vig-os/org-config` `v1.0.0`).
- The extraction step now takes `tag_prefix` and accepts the composed
tag
`## [${TAG_PREFIX}${VERSION}]` alongside the bare one. Both are needed:
a
candidate publishes *before* the finalize step (which is gated on a
final
`release_kind`), so its heading is still the unprefixed `## [X.Y.Z] -
TBD` that
`prepare` wrote — matching only the composed tag would have moved the
empty
notes onto the candidate path. Only prefixed repos were affected; an
empty
    prefix makes the two forms the same string.
- **MIGRATION.md env-forward denylist prose replaced by an SSoT
pointer** ([#1362](vig-os/devkit#1362))
- The "direnv mode: `shellHook` environment forwarding" section
enumerated the
denylist by hand and had fallen behind the shipped action: it predated
the
`UV_PYTHON`/`UV_PYTHON_DOWNLOADS` denial (#1353), the stdenv additions
and
the cc/binutils hook names (#1358), and the NixOS-runner exception that
forwards those uv pins after all (#1360) — and its two-bullet shape
could
not express the `PYTHONPATH` store-component strip, which is a transform
    rather than a deny.
- The enumeration is replaced by a description of the denied
*categories* with
representative examples, the `PYTHONPATH` transform, and a pointer to
the
    `devkit_env_denied` function in the consumer's own
`.github/actions/setup-devkit-toolchain/action.yml` as the single source
of
    truth. The surrounding narrative is unchanged.
- **A cancelled CI job no longer leaves `Test Summary` green**
([#1371](vig-os/devkit#1371))
- `Test Summary` is the only required status check on `dev`, and it
flagged a
needed job only on `result == "failure"`. A job that was **cancelled** —
job
timeout, concurrency cancel, runner eviction, a manual "Cancel workflow"
—
produced no verdict at all, yet the aggregate printed "All executed test
suites passed" and exited 0, so a pull request whose CI never finished
was
    mergeable.
- All eight needed jobs now trip the gate on `cancelled` as well as
`failure`.
    `skipped` stays tolerated by design: `workflow_dispatch` takes a
    `test-suite` subset input that every job is gated on, and
    `commit-checks`/`dependency-review` are pull-request only.

### Security

- **Release tags are lightweight refs, so no unsigned object remains in
the release chain**
([#1370](vig-os/devkit#1370))
  - `release.yml` created the tag with `git tag -a` under
`vigOS Release Bot <[email protected]>`, producing an **annotated tag
object** whose tagger was permanently unverifiable — live tag `1.6.0`
reports `verification.reason: "unsigned"`. Signing it was never
reachable:
the tag is written under the Release **App** installation token and a
GitHub
App has no registrable GPG/SSH key, while the server-side `POST
/git/tags`
    route stores the payload verbatim without signing it either.
- The publish job now creates the tag as a plain `refs/tags/<version>`
ref at
the release commit (`POST /git/refs`). A lightweight tag has no tagger
and
no payload, so there is nothing left that can report `unsigned`, and the
commit the ref resolves to is the GitHub-verified release commit. The
candidate-collision guard and the "already tagged at the finalize SHA"
skip are unchanged; the now-unused `git-user-name` / `git-user-email`
dispatch inputs are removed from `release.yml` (`prepare-release.yml`,
which
    actually writes commits, keeps its own).
- **Consumer release tags are lightweight refs too — the scaffold stops
publishing unsigned tag objects**
([#1378](vig-os/devkit#1378))
  - The scaffold's `release-publish.yml` still created every consumer's
`X.Y.Z` tag with `git tag -a` under a GitHub App identity — an
**annotated
tag object** reporting `verification.reason: "unsigned"` forever, for
the
same unreachable-signature reasons as
[#1370](vig-os/devkit#1370).
The scaffold was internally inconsistent: `promote-release.yml` already
creates the *floating* tags (`vX`, `vX.Y`) as lightweight refs, while
the
    version tag — the one users pin and audit — was an unsigned object.
- The publish step now POSTs `refs/tags/<prefix><version>` straight at
the
    release commit (`POST /git/refs`). Preserved behaviours: the
`tag_already_exists` skip, the create-race verification (a lost race is
    accepted only when the existing ref already resolves to the release
commit), `TAG_PREFIX` composition
([#1044](vig-os/devkit#1044)),
and the tombstone diagnosis
([#1319](vig-os/devkit#1319))
— its signature match re-derived against the `POST /git/refs` HTTP 422
    rule-violation error shape.
- The dead `git_user_name` / `git_user_email` `workflow_call` inputs are
    removed from `release-publish.yml` and their pass-throughs from the
scaffold `release.yml` publish call; the scaffold's `git-user-name` /
`git-user-email` **dispatch** inputs stay — the rollback job still
writes
    commits with that identity.
- `promote-release.yml` and `docs/MIGRATION.md` keep the annotated-tag
peel
as backward compatibility for tags published by older scaffolds, with
    corrected wording. Existing annotated tags are left as they are
(forward-fix policy); the change reaches consumers on their next devkit
    upgrade.
- **Smoke-test orchestration gates the final release on a human approval
instead of self-approving**
([#1391](vig-os/devkit#1391))
- The dispatch listener approved its own release PR with the workflow
token,
    which the org now forbids (vig-os/org-config#122 sets
`can_approve_pull_request_reviews: false` org-wide) — the 1.7.0-rc3
smoke
    chain died at that step.
- The approve step is replaced by a kind-aware gate: candidate
dispatches
leave the PR unapproved (approval gates the final release only, matching
the deferred-approval model of
[#902](vig-os/devkit#902)),
while the final dispatch polls up to 30 minutes for a human to approve
the
freshly created release PR before triggering the final release workflow,
    and fails with re-run guidance if nobody does. Every dispatch still
    recreates the smoke release branch and PR from scratch, by design.
- **vulnix register: except CVE-2026-66032, completing the libssh2
malicious-server batch**
([#1386](vig-os/devkit#1386))
  - The 1.7.0-rc1 Vulnix CVE Gate blocked on CVE-2026-66032 (CVSS 8.8, a
double-free in libssh2's `sftp_open()`), the fourth member of the
upstream
batch whose siblings CVE-2026-66033/66034/66035 were already excepted in
the 2026-09-02 block
([#1327](vig-os/devkit#1327)) —
it was absent from the findings when that block was triaged on
2026-08-04
    and surfaced in the feed later.
- Same closure provenance and reachability as its siblings: libssh2
enters
    the image only as curl's scp/sftp backend, and the flaw requires an
authenticated SFTP session against a malicious SSH server. Excepted in
the
same 2026-09-02 block; the whole block drops on a nixpkgs rev-advance
once
    the merged upstream patches (NixOS/nixpkgs#547491) reach the pinned
    nixos-26.05 channel via the still-open staging-26.05 backport.
vig-os-release-app Bot added a commit to vig-os/devkit that referenced this pull request Aug 8, 2026
# [Release 1.7.0](https://github.com/vig-os/devkit/releases/tag/1.7.0) -
2026-08-07

This PR prepares release 1.7.0 for merge to main.

## [1.7.0](https://github.com/vig-os/devkit/releases/tag/1.7.0) -
2026-08-07

### Added

- **`CODE_OF_CONDUCT.md`**
([#1372](#1372))
- Contributor Covenant 2.1 at the repository root. Enforcement reports
go
through the same [GitHub Private Vulnerability
Reporting](https://github.com/vig-os/devkit/security/advisories/new)
channel `SECURITY.md` already designates, so there is one private route
to
    the maintainers rather than two.

### Changed

- **Stamped workflows authenticate with App Client IDs — new org secret
required** ([#1365](#1365))
- **Action required before upgrading:** create a
`DEVKIT_UPGRADE_APP_CLIENT_ID`
secret (org or repo) holding the upgrade App's Client ID (`Iv23li…`).
**Create the secret first, then upgrade** — config-first, always. For
this
    release the legacy numeric `DEVKIT_UPGRADE_APP_ID` still works as a
fallback (with a deprecation warning), so an upgrade that races the
secret
    is not bricked; the fallback is removed in a future release
    ([#1366](#1366)).
- `sync-issues.yml` now passes `COMMIT_APP_CLIENT_ID` through the
`client-id`
    input added in `vig-os/sync-issues-action` v0.5.0 — the numeric
`COMMIT_APP_ID` secret is no longer read anywhere and can be retired
once
    every consumer is on this release.
  - `devkit-upgrade.yml` prefers `DEVKIT_UPGRADE_APP_CLIENT_ID` in its
    preflight gate and `create-github-app-token` mint.
- Nothing in the auth path is numerically load-bearing: GitHub accepts
either
    the App ID or the Client ID as the App JWT issuer.
- **`CONTRIBUTE.md` renamed to `CONTRIBUTING.md`**
([#1372](#1372))
- GitHub's community profile only recognises `CONTRIBUTING.md`, so the
guide
was invisible to it and no "Contributing guidelines" link appeared on
new
    issues and pull requests.
  - The file is generated, so the rename covers the whole chain:
`docs/templates/CONTRIBUTE.md.j2` ->
`docs/templates/CONTRIBUTING.md.j2`,
`docs/generate.py`, the pymarkdown exclude in `.pre-commit-config.yaml`,
the
    `expected_doc` guard in `release.yml`, the `README.md` link (and its
template), `docs/NIX.md`, and the `docs.yml` issue template. Historical
records — released changelog entries, `docs/issues/`,
`docs/pull-requests/`
    — keep the old name.
- **Renovate: update `github/codeql-action` from `d1ba80a` to
`5595cca`** ([#1367](#1367))
- **Renovate dependency update**
([#1368](#1368))
  - Update `actions/attest` from `v4.2.1` to `v4.2.2`
  - Update `actions/attest-build-provenance` from `v4.1.1` to `v4.2.2`
  - Update `vig-os/commit-action` from `v0.3.1` to `v0.3.2`
  - Update `vig-os/sync-issues-action` from `v0.4.0` to `v0.5.0`

### Fixed

- **Floating tags move via `git push` — first release of a new level no
longer fails** ([#1377](#1377))
- The scaffolded `promote-release.yml` created brand-new floating levels
via
`POST /git/refs`, the one ref-mutation path where GitHub does not honor
the
Release App's Integration ruleset bypass for the `creation` rule — so
the
first release of every new `<prefix>X` / `<prefix>X.Y` level died with
the
opaque `Reference does not exist` (HTTP 422) despite the App holding an
`always` bypass on the whole Tag ruleset (hit on `commit-action` 0.3.1
and
    `sync-issues-action` 0.5.0).
- `move_tag()` now force-pushes `TARGET_SHA:refs/tags/<name>` over git
with
the App installation token plumbed explicitly into the push URL
(checkout's
persisted credentials are the default `github.token`, which has no
bypass)
— the exact path `release-publish.yml` already uses to create release
tags,
empirically bypassed fine. Create and move collapse into one branch-free
    path; the idempotence read-and-skip guard and the loud `::error` +
MIGRATION.md fallback from #1158 stay, with the moot "grant a creation
bypass" remediation rewritten (the bypass already exists — the REST
create
    path simply ignores it).
- **Flake pymarkdown excludes follow the `CONTRIBUTING.md` rename**
([#1380](#1380))
- `nix/hooks.nix` (runner, check, and consumer profiles) and the
scaffold
template `assets/workspace/.pre-commit-config.yaml` still excluded the
removed `CONTRIBUTE.md`, drifting from the root
`.pre-commit-config.yaml`
updated in [#1372](#1372); the
    renamed contributing guide was no longer excluded from pymarkdown.
- **A no-diff devkit upgrade no longer strands its adoption issue**
([#1347](#1347))
- The scaffolded `devkit-upgrade.yml` opens the adoption issue *before*
    `install.sh --force` runs (the branch name embeds its number and the
in-shell commit needs the `Refs:` line), so a `workflow_dispatch`
against an
already-current consumer created an issue, found zero diff, skipped
publish
and PR, and exited green — leaving an issue open with no PR ever
attached.
Every credential probe or repair run against a current consumer left one
    behind.
- The find-or-create step now reports which branch it took, and a final
cleanup step on the no-diff path **closes an issue this run created**
(with
a "no diff at `<version>`" comment) while **leaving a reused one open**
— a
mid-train `rc1 → rc2 → final` issue can legitimately see a no-op bump,
and
    auto-closing it would be wrong. Comment only in that case.
- **Upgrades prune scaffold paths retired since the consumer's pin**
([#1348](#1348))
- `install.sh --force` regenerated what the *current* scaffold manages
and
pruned what the current mode / workflow model / feature set excludes —
but a
path an **old** devkit shipped and a later one **retired** was claimed
by
neither and rode along through every upgrade. Going 0.3.4 → 1.6.0
preserved
    `.cursor/`, `.github/actions/resolve-image/`,
    `.github/workflows/renovate-changelog.yml` and `.hadolint.yaml`. The
workflow file is the sharp one: left in place it is live, duplicates the
`renovate-changelog-build`/`-commit` pair that replaced it, and calls
the
pruned `resolve-image` action — so it breaks at its next trigger rather
    than at upgrade time.
- A cumulative retired-paths manifest (version → paths that version
stopped
shipping) is now consulted against the pin `.vig-os` carried **before**
the
run — the legacy `DEVCONTAINER_VERSION` key included, since repos still
on
it are precisely the oldest. Each prune is announced on stdout and
listed
    under `DELETED` in the `--force --preview` report.
- The prune is gated on that pin: a repo pinned at or past the retiring
version was never shipped the path, so an identically named `.cursor/`
or
`.hadolint.yaml` there is the consumer's own and is left untouched. A
repo
    that already upgraded past a retirement before this fix keeps its
leftovers — a one-time manual cleanup, documented in
`docs/MIGRATION.md`.
- **Preserved-file diffs show template content, not a symlink
typechange** ([#1349](#1349))
- A `--force` upgrade prints the divergence between each preserved
consumer
    file and the incoming template so the consumer can fold in template
    evolution deliberately. In the shipped image the devkit assets are
`/nix/store` symlinks, so `git diff --no-index` compared the *link*
against
the consumer's regular file and rendered a typechange — "symlink deleted
/
file added", with the store path as its only line — instead of the
content
    diff. Seen on the `vig-os/scitadel` 0.3.3 → 1.6.0 migration.
- The template side is now dereferenced before the comparison, so the
hunk
shows the actual template changes. A template symlink whose target does
not
resolve is still treated as a missing template (no diff, no error), and
the
    diff header keeps naming the file rather than an opaque store path.
- **CI dev-shell PATH keeps its priority order**
([#1351](#1351))
- The direnv-mode `setup-devkit-toolchain` wrote the dev-shell's
`/nix/store`
bin dirs to `GITHUB_PATH` highest-priority-first, but the runner
*prepends*
every line in file order — so the following steps ran with the dev-shell
PATH exactly reversed. The dirs are now written reversed, and the
per-line
    prepend rebuilds the dev-shell order verbatim.
- Only multi-store-path toolchains were affected: with one tool per
store
path the order is unobservable. A stdenv toolchain is not — the raw
`gcc`
shadowed `gcc-wrapper` (likewise `binutils`) and C builds failed with
the
    unwrapped-compiler signature `ld.bfd: cannot find Scrt1.o` /
    `cannot find -lc`, while the same build stayed green locally under
    `nix develop` (first hit: `vig-os/h5v`'s vendored HDF5 build).
- **shellHook env forward no longer ships `UV_PYTHON` to CI**
([#1353](#1353))
- Two correct mechanisms in the direnv-mode `setup-devkit-toolchain`
cancelled
out. The step drops the bare Nix CPython from the exported `PATH` and
forwards `UV_PYTHON_DOWNLOADS_JSON_URL` so `uv sync` builds the runner
venv
from a downloaded manylinux CPython (#698/#703/#729) — but the shellHook
env
forward (#1180) diffs the dev-shell env against the ambient one and
shipped
every added var, `mkProjectShell`'s `UV_PYTHON` store-path pin included.
    `UV_PYTHON` beats PATH resolution, so the venv was built on the Nix
interpreter regardless and any C-extension wheel then failed under the
Nix
loader on Ubuntu with `ImportError: libstdc++.so.6: cannot open shared
object file`. Existing direnv Python consumers were green only because
their
    test dependencies are pure-Python; first live hit
    `exo-pet/playground-carlos#9` (numpy 2.4.4).
  - `UV_PYTHON` and `UV_PYTHON_DOWNLOADS` are now denied by name in that
forward's denylist. Both are Nix-host-only by construction, and the
second
    is required for the first: on its own, a forwarded
`UV_PYTHON_DOWNLOADS=never` would forbid the very managed-CPython
download
the `_JSON_URL` forward exists to enable, turning the wheel
`ImportError`
into "no interpreter found". The patterns are exact, so the deliberate
`UV_PYTHON_DOWNLOADS_JSON_URL` forward is untouched — now pinned by a
test.
- Audit of the other vars `mkProjectShell` puts in the dev-shell env:
kept
`BATS_LIB_PATH` (a store path, but the store is realized on the runner
and
`bats` runs from the dev-shell `PATH` there), `NVIM_APPNAME` (portable
config) and `UV_PYTHON_DOWNLOADS_JSON_URL`. `LD_LIBRARY_PATH` is
exported
only behind the shellHook's own `/etc/NIXOS` guard, so it never reaches
a
hosted runner and is the correct value on a NixOS self-hosted one — left
    forwardable. Nothing else the builder sets is host-specific.
- **shellHook env forward stops leaking Nix-host state**
([#1358](#1358))
- `PYTHONPATH` is now forwarded **component-wise**: the direnv-mode
preamble
splits it on `:`, drops every `/nix/store` entry and forwards what
remains,
skipping the var when nothing is left. With `python` in the dev-shell
    `packages` the nixpkgs setup hook fills `PYTHONPATH` with store
site-packages dirs; forwarded whole, those Nix-built `cp3xx` packages
joined
    the `sys.path` of the *downloaded* manylinux CPython — same ABI tag,
    importable, the same mixed-loader shape as #1353's
    `ImportError: libstdc++.so.6`. A blanket deny was not an option: a
`shellHook` exporting `PYTHONPATH=$PWD/src` is a legitimate #1180 use
case
    and still arrives on CI intact.
  - The denylist gained the stdenv machinery it was still missing —
`_PYTHON_HOST_PLATFORM`, `_PYTHON_SYSCONFIGDATA_NAME`,
`DETERMINISTIC_BUILD`,
`CONFIG_SHELL`, the `do[A-Z]*` build flags (`doCheck`, `doInstallCheck`,
`doDist`; the symmetric partner of the already-denied `dont*`) — and the
stdenv cc/binutils hook names `AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB
READELF SIZE STRINGS STRIP`. stdenv sets those toolchain names in
**every**
dev shell as bare commands (`CC=gcc`), so every direnv consumer was
shipping
them to its whole CI job. Inside dev-shell context the wrapped toolchain
    already wins via `PATH` after #1351; for a step that runs outside it
    (`setup-python` plus `pip` building a C extension) a forwarded `CC`
resolving to the Nix wrapper recreates the #1353 mixed-toolchain hazard.
    This deliberately supersedes the `shellHook` `CC`/`CXX` forward that
vig-os/h5v used pre-#1351 — #1351 removed the need for it. The `native`
module's generic `CC=cc`/`CXX=c++` exports likewise no longer reach CI;
they
exist so build backends fall back to `PATH` discovery (#879/#893), which
the
forwarded dev-shell `PATH` still provides. A CI step that needs a
specific
compiler should set it in the workflow. Patterns are case-sensitive, so
    `DOCKER_*`/`DO_SOMETHING` are unaffected.
- `IN_NIX_SHELL` is denied too: forwarding `IN_NIX_SHELL=impure` made
every
    subsequent CI step claim to be running inside a nix shell.
- The related NixOS-self-hosted-runner gap in the CPython `PATH` filter
is
    tracked separately in
    [#1360](#1360).
- **Python consumers work on NixOS self-hosted runners**
([#1360](#1360))
- The direnv-mode preamble dropped the bare Nix CPython from the
exported
`PATH` whenever `pyproject.toml` was present — unconditionally. That is
right on a hosted FHS runner, where `uv` downloads a managed manylinux
    CPython (#698/#703/#729), and wrong by construction on a **NixOS**
self-hosted runner, where such a download cannot execute at all. #1353
made
the gap reachable: the `UV_PYTHON` pin it stopped forwarding was what
had
accidentally masked it. No consumer matched the combination yet (the one
    NixOS-runner consumer has no `pyproject.toml`), so this was a latent
    landmine rather than a live break.
- The step now probes the runner's own OS via `/etc/NIXOS` — the same
marker
`mkProjectShell`'s `shellHook` uses to gate `LD_LIBRARY_PATH` — and
takes
the matching branch. On a NixOS runner the `pyproject.toml`-gated
CPython
exclusion is skipped, so the store interpreter stays on `PATH`, **and**
`mkProjectShell`'s `UV_PYTHON` / `UV_PYTHON_DOWNLOADS=never` pins are
forwarded instead of denied. Both halves are needed: `PATH` alone leaves
`uv`'s python-preference free to prefer a managed download, and the pins
are what make it use the Nix interpreter deterministically. The podman
exclusion stays unconditional, and `UV_PYTHON_DOWNLOADS_JSON_URL` is
still
    forwarded (harmless once the pin wins).
  - On every non-NixOS runner the behavior is byte-identical to before,
    #1353's denial of the same two pins included.
- **Prefixed-tag releases publish their changelog notes**
([#1355](#1355))
- In a consumer that sets `DEVKIT_TAG_PREFIX`, the release pipeline
wrote one
changelog heading and read back another. `release-core.yml` finalizes
with
`prepare-changelog finalize … --tag-prefix "$TAG_PREFIX"`, which
composes the
prefix into the heading (`## [v1.0.0](…/releases/tag/v1.0.0) - …`),
while
`release-publish.yml` extracted the notes by matching `## [$VERSION]` on
the
    *bare* semver — a match that can never land on a prefixed heading.
- It failed soft: the empty extraction hit the fallback path, so the
release
was published with the literal body `No changelog notes found for
X.Y.Z`.
The tag and the release object were both correct and nothing went red,
which
is why it survived (observed releasing `vig-os/org-config` `v1.0.0`).
- The extraction step now takes `tag_prefix` and accepts the composed
tag
`## [${TAG_PREFIX}${VERSION}]` alongside the bare one. Both are needed:
a
candidate publishes *before* the finalize step (which is gated on a
final
`release_kind`), so its heading is still the unprefixed `## [X.Y.Z] -
TBD` that
`prepare` wrote — matching only the composed tag would have moved the
empty
notes onto the candidate path. Only prefixed repos were affected; an
empty
    prefix makes the two forms the same string.
- **MIGRATION.md env-forward denylist prose replaced by an SSoT
pointer** ([#1362](#1362))
- The "direnv mode: `shellHook` environment forwarding" section
enumerated the
denylist by hand and had fallen behind the shipped action: it predated
the
`UV_PYTHON`/`UV_PYTHON_DOWNLOADS` denial (#1353), the stdenv additions
and
the cc/binutils hook names (#1358), and the NixOS-runner exception that
forwards those uv pins after all (#1360) — and its two-bullet shape
could
not express the `PYTHONPATH` store-component strip, which is a transform
    rather than a deny.
- The enumeration is replaced by a description of the denied
*categories* with
representative examples, the `PYTHONPATH` transform, and a pointer to
the
    `devkit_env_denied` function in the consumer's own
`.github/actions/setup-devkit-toolchain/action.yml` as the single source
of
    truth. The surrounding narrative is unchanged.
- **A cancelled CI job no longer leaves `Test Summary` green**
([#1371](#1371))
- `Test Summary` is the only required status check on `dev`, and it
flagged a
needed job only on `result == "failure"`. A job that was **cancelled** —
job
timeout, concurrency cancel, runner eviction, a manual "Cancel workflow"
—
produced no verdict at all, yet the aggregate printed "All executed test
suites passed" and exited 0, so a pull request whose CI never finished
was
    mergeable.
- All eight needed jobs now trip the gate on `cancelled` as well as
`failure`.
    `skipped` stays tolerated by design: `workflow_dispatch` takes a
    `test-suite` subset input that every job is gated on, and
    `commit-checks`/`dependency-review` are pull-request only.

### Security

- **Release tags are lightweight refs, so no unsigned object remains in
the release chain**
([#1370](#1370))
  - `release.yml` created the tag with `git tag -a` under
`vigOS Release Bot <[email protected]>`, producing an **annotated tag
object** whose tagger was permanently unverifiable — live tag `1.6.0`
reports `verification.reason: "unsigned"`. Signing it was never
reachable:
the tag is written under the Release **App** installation token and a
GitHub
App has no registrable GPG/SSH key, while the server-side `POST
/git/tags`
    route stores the payload verbatim without signing it either.
- The publish job now creates the tag as a plain `refs/tags/<version>`
ref at
the release commit (`POST /git/refs`). A lightweight tag has no tagger
and
no payload, so there is nothing left that can report `unsigned`, and the
commit the ref resolves to is the GitHub-verified release commit. The
candidate-collision guard and the "already tagged at the finalize SHA"
skip are unchanged; the now-unused `git-user-name` / `git-user-email`
dispatch inputs are removed from `release.yml` (`prepare-release.yml`,
which
    actually writes commits, keeps its own).
- **Consumer release tags are lightweight refs too — the scaffold stops
publishing unsigned tag objects**
([#1378](#1378))
  - The scaffold's `release-publish.yml` still created every consumer's
`X.Y.Z` tag with `git tag -a` under a GitHub App identity — an
**annotated
tag object** reporting `verification.reason: "unsigned"` forever, for
the
same unreachable-signature reasons as
[#1370](#1370).
The scaffold was internally inconsistent: `promote-release.yml` already
creates the *floating* tags (`vX`, `vX.Y`) as lightweight refs, while
the
    version tag — the one users pin and audit — was an unsigned object.
- The publish step now POSTs `refs/tags/<prefix><version>` straight at
the
    release commit (`POST /git/refs`). Preserved behaviours: the
`tag_already_exists` skip, the create-race verification (a lost race is
    accepted only when the existing ref already resolves to the release
commit), `TAG_PREFIX` composition
([#1044](#1044)),
and the tombstone diagnosis
([#1319](#1319))
— its signature match re-derived against the `POST /git/refs` HTTP 422
    rule-violation error shape.
- The dead `git_user_name` / `git_user_email` `workflow_call` inputs are
    removed from `release-publish.yml` and their pass-throughs from the
scaffold `release.yml` publish call; the scaffold's `git-user-name` /
`git-user-email` **dispatch** inputs stay — the rollback job still
writes
    commits with that identity.
- `promote-release.yml` and `docs/MIGRATION.md` keep the annotated-tag
peel
as backward compatibility for tags published by older scaffolds, with
    corrected wording. Existing annotated tags are left as they are
(forward-fix policy); the change reaches consumers on their next devkit
    upgrade.
- **Smoke-test orchestration gates the final release on a human approval
instead of self-approving**
([#1391](#1391))
- The dispatch listener approved its own release PR with the workflow
token,
    which the org now forbids (vig-os/org-config#122 sets
`can_approve_pull_request_reviews: false` org-wide) — the 1.7.0-rc3
smoke
    chain died at that step.
- The approve step is replaced by a kind-aware gate: candidate
dispatches
leave the PR unapproved (approval gates the final release only, matching
the deferred-approval model of
[#902](#902)),
while the final dispatch polls up to 30 minutes for a human to approve
the
freshly created release PR before triggering the final release workflow,
    and fails with re-run guidance if nobody does. Every dispatch still
    recreates the smoke release branch and PR from scratch, by design.
- **vulnix register: except CVE-2026-66032, completing the libssh2
malicious-server batch**
([#1386](#1386))
  - The 1.7.0-rc1 Vulnix CVE Gate blocked on CVE-2026-66032 (CVSS 8.8, a
double-free in libssh2's `sftp_open()`), the fourth member of the
upstream
batch whose siblings CVE-2026-66033/66034/66035 were already excepted in
the 2026-09-02 block
([#1327](#1327)) —
it was absent from the findings when that block was triaged on
2026-08-04
    and surfaced in the feed later.
- Same closure provenance and reachability as its siblings: libssh2
enters
    the image only as curl's scp/sftp backend, and the flaw requires an
authenticated SFTP session against a malicious SSH server. Excepted in
the
same 2026-09-02 block; the whole block drops on a nixpkgs rev-advance
once
    the merged upstream patches (NixOS/nixpkgs#547491) reach the pinned
    nixos-26.05 channel via the still-open staging-26.05 backport.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 8.has: port to stable This PR already has a backport to the stable release. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. backport staging-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants