Skip to content

fix(security): renew the glibc exception block to 2026-09-02 - #1482

Merged
c-vigo merged 1 commit into
devfrom
bugfix/1481-renew-glibc-vulnix-exceptions
Aug 13, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/1481-renew-glibc-vulnix-exceptions

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Description

The glibc exception block in .vulnixignore expired 2026-08-12, so
check-expirations fails on every branch — the hook is enable = true in the
flake hook set (nix/hooks.nix:749), so Tier 0 nix-fast-build runs it inside
the pre-commit derivation — and the nightly Scheduled Security Scan has been
red on both dev and main since 2026-08-13 06:14Z.

Merge this first. It is the reason CI is red on the other four 1.8.1 PRs
(#1479, #1478, #1477, #1474); none of them touch .vulnixignore.

Type of Change

  • fix -- Bug fix

Changes Made

Renewed rather than date-bumped. Re-verified against the last green nightly scan
on the current pin 531670d871c0 (run 31569093850,
findings of 2026-08-12): all six CVEs are still live findings against
glibc-2.42-67, so none became droppable the way the gawk block did after its
rev advance (#1328).

CVE CVSS Vector requires
CVE-2026-5450 9.8 scanf %mc with an explicit width > 1024 on attacker-controlled input
CVE-2025-15281 7.5 wordexp() with WRDE_REUSE|WRDE_APPEND
CVE-2026-4437 7.5 hostile/compromised resolver + the legacy gethostbyaddr API
CVE-2026-4046 7.5 converting untrusted input from IBM1390/IBM1399
CVE-2026-5928 7.5 a non-Unicode charset with single/multi-byte overlaps
CVE-2026-5435 7.3 a caller of the deprecated ns_printrr* / fp_nquery

Advancing the pin cannot clear them either: the advisories scope the defects to
"2.34 to 2.43" and "2.7 to 2.43", so glibc 2.43 is itself affected and only
backported patches help.

  • Expiry renewed to 2026-09-02, the Wednesday grid date the register's five
    other blocks already share (chore(security): anchor exception-register expiries to a Wednesday grid #1337), so the whole register is reviewed in one pass.
  • Each entry now records its NVD CVSS and the advisory's required vector, replacing
    the specifics unverified offline placeholder the 2026-06-23 triage had to use.
    The reachability lines assess those vectors against the single-user container
    model; they are explicitly not an audit of which closure members call the
    affected functions.
  • CVE-2026-4438 (5.4) and CVE-2026-6238 (6.5) are reported against the same
    derivation and stay out of the register — both are below the gate's 7.0 threshold.

Changelog Entry

### Security

- **Renew the glibc exception block in the vulnix register**
  ([#1481](https://github.com/vig-os/devkit/issues/1481))
  - The block expired 2026-08-12, failing `check-expirations` on every branch
    (the hook runs inside the flake's `pre-commit` check) and on the nightly
    security scan
  - Re-verified against the current pin before renewing: all six CVEs are still
    live findings against `glibc-2.42-67`, so none could be dropped the way the
    gawk block was after its rev advance; the advisories cover glibc through
    2.43, so advancing the pin cannot clear them either
  - Renewed onto the shared `2026-09-02` grid date, and each entry now records
    its CVSS and the advisory's required vector in place of the previous
    "specifics unverified offline" placeholder

Testing

  • uv run check-expirations .trivyignore .vulnixignore -> Validated 32 exception(s) across 2 file(s), exit 0
  • prek run --all-files -> fully green, exit 0

Closes #1481

Refs: #1481

The block expired 2026-08-12, so check-expirations failed on every branch
(the hook is enable=true in the flake hook set, so Tier 0 nix-fast-build
runs it inside the pre-commit derivation) and on the nightly security
scan for both dev and main.

Re-verified before renewing rather than bumping the date: against the
last green nightly scan on the current pin 531670d871c0 (run
31569093850, findings of 2026-08-12) all six CVEs are still live
findings against glibc-2.42-67, so none became droppable the way the
gawk block did after its rev advance (#1328). Advancing the rev cannot
help either -- the advisories scope the defects to "2.34 to 2.43" and
"2.7 to 2.43", so 2.43 is itself affected and only backported patches
clear them.

Renewed onto the shared 2026-09-02 grid date so the whole register comes
up for review in one pass (#1337). Each entry now carries its NVD CVSS
and the advisory's required vector in place of the "specifics unverified
offline" placeholder the 2026-06-23 triage had to use; the reachability
lines assess those vectors against the single-user container model and
do not claim an audit of the closure's callers. CVE-2026-4438 (5.4) and
CVE-2026-6238 (6.5) are reported against the same derivation and stay
out of the register: both sit below the gate's CVSS 7.0 threshold.

Refs: #1481
@c-vigo
c-vigo enabled auto-merge August 13, 2026 07:54
@c-vigo
c-vigo merged commit c4a5e55 into dev Aug 13, 2026
12 checks passed
@c-vigo
c-vigo deleted the bugfix/1481-renew-glibc-vulnix-exceptions branch August 13, 2026 08:02
c-vigo added a commit that referenced this pull request Aug 13, 2026
## Description

Fixes the trunk release train. Under `DEVKIT_WORKFLOW=trunk`,
`render_workflow_model()` was a pure literal `dev` -> `main` rewrite, so
`prepare-release.yml` froze the CHANGELOG onto `main` and then cut
`release/X.Y.Z` from that **same post-freeze SHA**, while the draft PR
was still
opened `--base main --head release/X.Y.Z`. Head and base resolved to one
commit
and `gh pr create` failed with *"No commits between main and
release/X.Y.Z"*.
The same freeze was also a direct push to the protected trunk.

`vig-os/org-config` is blocked on exactly this; its `v1.0.0`/`v1.0.1`
were
hand-cut, so the train has never executed there and the defect stayed
latent.

## Type of Change

- [x] `fix` -- Bug fix

## Changes Made

The shipped (gitflow) asset is restructured into a **model-agnostic
ordering**,
so the trunk render stays a literal substitution with no step reordering
in sed:

1. capture `prepare_start_sha` = base head (`dev`; trunk: `main`)
2. **create `release/X.Y.Z` at that pre-freeze SHA** — moved ahead of
the freeze
3. freeze -> `TARGET_BRANCH` = `refs/heads/dev` (trunk: the release
branch)
4. `freeze_wait` — the #617 read-after-write loop, now watching
`FREEZE_REF`
5. fast-forward `release/X.Y.Z` onto the freeze commit (`force=false`);
under
   trunk the SHAs already match and the step short-circuits

`open-pr` gained an explicit **same-SHA guard** before `gh pr create` —
the
regression assert the issue asks for, since a local-git simulation
cannot express
GitHub's server-side refusal (which is why the #1206 spike could not
catch this).

Verified on the actual trunk render: base reads resolve to `heads/main`,
the
freeze `TARGET_BRANCH` and `FREEZE_REF` resolve to the release branch,
the
rollback's restore target likewise, and there are **zero residual bare
`dev`
tokens**. The freeze therefore never touches the trunk, so **no Commit
App bypass
on `main` is required** — consistent with how #1227 was resolved.

**gitflow is behaviourally unchanged**: the freeze still lands on `dev`
and the
release branch still ends at the freeze commit (now by fast-forward
instead of by
late creation). `test_gitflow_scaffold_matches_default_path` and
`test_gitflow_render_files_are_byte_identical_to_template` still pass.

Incidental improvement: a failure *between* the freeze and branch
creation used
to leave `dev_sha` empty, silently skipping the rollback's changelog
restore;
`freeze_sha` is now emitted immediately after the freeze.

## Changelog Entry

```
### Fixed

- **Trunk release: cut the release branch before the changelog freeze**
  ([#1479](#1479))
```
(full entry with sub-bullets is in `CHANGELOG.md`)

## Testing

- [x] `uv run pytest tests/test_workflow_model.py` -> 12 failed before
the fix, **32 passed** after
- [x] `uv run pytest tests/test_workflow_model.py
tests/test_workflow_prepare_extension.py tests/test_release_core.py
tests/test_release_rollback_guard.py tests/test_scaffold_lint.py
tests/test_scaffold_drift.py` -> 136 passed
- [x] full suite `uv run pytest -m "not integration"` -> 1355 passed, 20
skipped
- [x] `just test-bats` -> 506 ok, 0 not ok — including a **new** case
running actionlint over the *trunk*-rendered workflows (previously only
gitflow renders were linted)
- [x] `prek run --all-files` -> only `check-expirations` fails;
`.vulnixignore` is byte-identical to `dev` on this branch. **Fixed by
#1482 — merge that first.**

### Manual Testing Details

Rendered a trunk scaffold and read the resulting `prepare-release.yml`
directly to
confirm the branch/freeze/PR topology and the absence of `dev` residue.

**No live CI proof exists in this repo** — `devkit-smoke-test` is
gitflow, so every
automated leg here exercises only the unchanged gitflow path. Live proof
will be
`vig-os/org-config`'s next release train.

Closes #1479

Refs: #1479
c-vigo added a commit that referenced this pull request Aug 13, 2026
…ig-os (#1484)

## Description

CI reported a green `Tests` check for a repo whose entire Python project
had been
deleted. Two individually-correct leniencies composed into one blind
spot: no
`pyproject.toml` -> the recipe body is skipped and exits 0;
`pyproject.toml`
present but nothing collected -> pytest's exit 5 is swallowed (#1281).
Together,
CI could not distinguish *"no Python suite by design"* from *"the Python
suite
vanished"* — and reported success for both. That is why #1466's damage
travelled
as far as it did.

## Type of Change

- [x] `fix` -- Bug fix

### Modifiers

- [ ] Breaking change

> **SemVer note:** this is arguably **minor**, not patch — it adds a
consumer-facing
> `.vig-os` key and a new `resolve-toolchain` output, and it can turn a
previously-green
> repo red (by design). Milestone `1.8.1` may need the same rename
`1.7.1` -> `1.8.0` got.

## Changes Made

**The key is a sticky DECLARATION, not a detection cache.** A cache
would not have
caught #1466: the deploy that deleted `pyproject.toml` re-ran the
scaffold in the
same commit, so a cache would have been rewritten to empty and CI would
still have
been green. So `DEVKIT_LANGUAGES` is seeded from detection, **grows**
when a
language appears, and is **never** narrowed by the scaffold — removal is
a
deliberate `.vig-os` hand-edit. A declared-but-undetected language
prints a loud
scaffold notice rather than being silently reconciled.

- **`.vig-os`** — new `DEVKIT_LANGUAGES=` key, shipped empty, documented
in house style.
- **`init-workspace.sh`** — read before the template overwrite (else an
upgrade would
erase the declaration); enum guard (unknown name aborts,
`DEVKIT_FEATURES_DISABLED`
shape); union with `DETECTED_LANGUAGES`; canonical ordering so the
written-back
  value is deterministic and does not read as drift each upgrade.
- **`resolve-toolchain`** — new `languages` output, always emitted
(explicit empty
string when nothing is declared), following the `drift-check` precedent.
- **`ci.yml`** — one `Check declared languages` gate as a step of
`resolve-toolchain`.
Every toolchain job already `needs:` that job, so a failure stops
lint/test/
commit-checks before they start — which closes the identical
`lint`/`format` blind
spot (the issue's option 4) at the same time — and it costs no extra
runner,
container pull or `needs:` edge. **The gate lives in managed `ci.yml` on
purpose:**
`justfile.project` is a preserved file, so a recipe-only fix would never
reach an
  existing consumer.
- **`justfile.project`** — recipes now report the skip instead of
no-oping silently,
and exit 5 is swallowed only while there is no `tests/` directory (the
issue's
options 2 and 3). The scaffold ships no `tests/` directory, so a fresh
scaffold
  stays green.

`nix` is declared and notified but never gated in CI: it has no single
marker file
(`flake.nix` ships with every direnv scaffold), so its absence is not
decidable from
a path. Stated in the manifest comment, the action output, `ci.yml` and
`MIGRATION.md`.

A language-neutral repo stays green at all three levels — bare template
line, explicit
empty output, gate prints "nothing to check" and exits 0. A consumer
whose `.vig-os`
predates the key resolves to the seeded-from-detection default; no hard
failure is
reachable from an absent key.

## Changelog Entry

```
### Changed

- **Gate CI on the project languages a repo declares in .vig-os**
  ([#1478](#1478))
```
(full entry with sub-bullets is in `CHANGELOG.md`)

## Testing

- [x] RED first: `uv run pytest tests/test_declared_languages.py` ->
**28 failed**; `bats` filter -> 4 not ok
- [x] `uv run pytest tests/test_declared_languages.py
tests/test_vig_os_manifest.py` -> **51 passed**
- [x] `uv run pytest` (+ `test_ci_runner`, `test_scaffold_drift`,
`test_scaffold_lint`, `test_install_script`, `test_integration`) -> 223
passed, 19 skipped
- [x] full suite -> 1372 passed, 20 skipped
- [x] `just test-bats` -> 511 ok, 0 not ok
- [x] `prek run --all-files` -> only `check-expirations` fails;
`.vulnixignore` is byte-identical to `dev` on this branch. **Fixed by
#1482 — merge that first.**

### Manual Testing Details

Reproduced #1466's shape end to end: scaffolded a Python repo, deleted
`pyproject.toml`, re-scaffolded — the declaration **survived** and the
notices
printed; the real `resolve-toolchain` script then emitted
`languages=python` and
the real `ci.yml` gate step exited 1 with the diagnosable error.

Closes #1478

Refs: #1478
c-vigo added a commit that referenced this pull request Aug 13, 2026
## Description

The smoke listener's "trigger a workflow, then wait for it" pattern
could match a
**stale, unrelated run** and report success without the dispatched run
having
started. On the 1.8.0 final it made `Trigger and wait for release
workflow` return
success in **1.5 seconds** — matching rc4's release run from 47 minutes
earlier —
and promote-release was then fired against a repo that had no `1.8.0`
release yet.

Silent on candidates (promote is skipped for RCs, so the defect hid
across
rc1–rc4); fires on **every** final. The cross-repo gate then reports a
false
negative, which is the worst failure mode for a gate.

## Type of Change

- [x] `fix` -- Bug fix

## Changes Made

The old guard assumed the newest run on `${WORKFLOW_REF}` at capture
time was the
newest the poll would ever see other than the dispatched one. It is not:
the
dispatched run needs a moment to appear in the API, and if the first
poll lands in
that window, `--limit 1` returns a previous, already-`completed` run
that is still
newer than a stale baseline.

All three call sites (prepare-release, release, promote-release) are
fixed
identically and kept textually in lockstep:

- each trigger step stamps `DISPATCH_TS` immediately **before** `gh
workflow run`;
- the wait accepts a run only if `createdAt >= DISPATCH_TS` **and**
  `databaseId > BEFORE_RUN_ID` — both guards must hold;
- capture and poll now carry identical `--workflow` / `--branch` /
`--event workflow_dispatch` filters, so the baseline describes the
population
  being polled;
- the **oldest** matching run is taken (ours is the first created after
our stamp)
  and the id is **locked on**, so a later run cannot hijack the wait;
- the loop can never exit success without a bound run; the timeout stays
a loud
  failure and now says no matching run was ever observed;
- the bound run's id and URL are logged, and both terminal messages name
them.

`DISPATCH_TS` is backdated **60 s**: the stamp comes from the runner's
clock and is
compared against a server-side `createdAt`, so skew in the wrong
direction would
filter the dispatched run out of its own wait and turn every release
into a
timeout. 60 s is ~47x smaller than the gap to the stale run that
actually bit.

Two pre-existing bats tests asserted the **defective** guard verbatim,
so they were
retargeted at the new shape (one now asserts the old guard is absent).
Net test
count unchanged: 505 before, 505 after.

## Changelog Entry

```
### Fixed

- **Smoke listener waits bind to the run they dispatched**
  ([#1477](#1477))
```
(full entry with sub-bullets is in `CHANGELOG.md`)

## Testing

- [x] `uv run pytest tests/test_smoke_dispatch_wait.py` -> 24 failed / 1
passed before, **25 passed** after
- [x] `uv run pytest tests/` (minus image/integration) -> 683 passed,
identical before and after the bats edit
- [x] `just test-bats` -> 505 ok, 0 not ok
- [x] `actionlint` on the modified workflow -> exit 0
- [x] `zizmor --offline` -> identical finding profile before and after
(61/48 suppressed, all pre-existing)
- [x] `prek run --all-files` -> only `check-expirations` fails;
`.vulnixignore` is byte-identical to `dev` on this branch. **Fixed by
#1482 — merge that first.**

### Manual Testing Details

The new test module is not only shape assertions: it executes each wait
step's real
bash against a stubbed `gh` that models the API visibility lag,
replaying the 1.8.0
timeline. `test_stale_completed_run_is_never_accepted` runs the
**pre-fix** bash
against those exact numbers and gets `exit 0` + "completed
successfully"; the fixed
bash keeps waiting and binds to run `31604068811` once it appears.

> [!IMPORTANT]
> **The listener executes from `devkit-smoke-test`'s DEFAULT branch.**
Merging this
> does not deploy it. It needs a manual redeploy to smoke-test `main`
before the next
> final, or the fix ships without ever running and #1477 fires again.
Precedents for
> that hotfix path: smoke-test#345, #353.

Closes #1477, closes #1475

Refs: #1477
c-vigo added a commit that referenced this pull request Aug 13, 2026
)

## Description

`vig-os` dismisses PR approvals when new commits are pushed. The
`finalize` job of
a **final** `release.yml` run always pushes to the release branch (the
CHANGELOG
date stamp, plus the sync-issues commit), so **the approval that
authorises the
final release is destroyed by that very run** — every time, in every
repo consuming
the scaffolded release workflow. `promote-release.yml` then re-checks
approvals
independently, making re-approval a mandatory, undocumented step between
the final
and the promote dispatch.

Observed live on the 1.8.0 train: #1441 was `APPROVED` when `validate`
passed, and
`DISMISSED` / `REVIEW_REQUIRED` immediately after `finalize` pushed
`15abe1b3` +
`7a07142d`.

## Type of Change

- [x] `docs` -- Documentation only

**Both approval gates are kept.** Each guards a genuinely different
irreversible act
— burning the immutable `X.Y.Z` tag, and moving `:latest` + merging to
`main`. No
workflow or code file is touched by this PR.

## Changes Made

`docs/RELEASE_CYCLE.md`:
- lifecycle diagram — approval node relabelled as authorising the final
dispatch; new
  `Re-approve PR` node between publish and merge
- Release Phases item 2, Phase 2 step 7 — the approval authorises the
*dispatch* and
  does not survive it
- Phase 3 prerequisites — "PR has required approvals (**consumed by this
run**)",
  plus a paragraph naming the pushes that dismiss it
- Phase 5 — new step 4 "Re-approve the release PR" with the concrete
commands, before
  the promote dispatch
- `release.yml` reference — one bullet in Key characteristics

`docs/DOWNSTREAM_RELEASE.md` — mirrors the **operator step** only,
linking to
`RELEASE_CYCLE.md` for the reasoning (SSoT: no duplicated explanation).

Three pre-existing sentences had to be reconciled rather than left
contradicting the
new text. Notably, Phase 2 step 7's *"the approval lands on the exact
diff that
ships"* now says the approval lands on the release content **as it will
ship**, with
the mechanical finalization written on top. The issue's phrasing that
"the approved
SHA is what gets tagged" was deliberately **not** reused — the tag
points at
`finalize_sha`, i.e. the approved content *plus* the finalize commit, so
that
sentence would have been false.

## Changelog Entry

```
### Changed

- **Release docs: the release PR must be re-approved before promote**
  ([#1474](#1474))
```
(full entry with sub-bullets is in `CHANGELOG.md`)

## Testing

- [x] `prek run --all-files` (incl. `pymarkdown` on every changed file)
-> only
`check-expirations` fails; `.vulnixignore` is byte-identical to `dev` on
this
      branch. **Fixed by #1482 — merge that first.**

TDD does not apply: documentation only, nothing testable, as the repo's
TDD rule allows.

### Manual Testing Details

Verified the load-bearing claim against the code rather than the issue
text: devkit's
own `promote-release.yml` checks approval **only** in the `merge` job
(`:435`), which
runs *after* `promote` has published the draft release and moved
`:latest` — so a
dismissed approval leaves the release half-promoted. The consumer
template checks in
**both** `validate` (fails fast) and `merge`. The two documents say the
right thing
for their own audience.

Closes #1474

Refs: #1474
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