Skip to content

chore(security): anchor exception-register expiries to a Wednesday grid - #1338

Merged
c-vigo merged 1 commit into
devfrom
chore/1337-wednesday-expiry-grid
Aug 4, 2026
Merged

c-vigo merged 1 commit into
devfrom
chore/1337-wednesday-expiry-grid

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Adopts a documented Wednesday expiry grid for the security exception
registers and re-schedules every current entry onto it.

Expiry dates were previously picked ad hoc and landed on arbitrary weekdays
(Sat ×1, Mon ×5, Tue ×6, Wed ×1). Since check-expirations runs in every PR CI,
in pre-commit, in the release train and in both nightly scan legs, a lapse
blocks all work in the repo — as it has four times already (#550, #1257, #1260,
#1327).

Type of Change

  • chore -- Maintenance task (deps, config, etc.)

Modifiers

  • Breaking change (!)

Changes Made

docs/CONTAINER_SECURITY.md §5 — new "Expiry dates land on a Wednesday"
subsection (SSoT for the convention; SECURITY.md keeps linking here rather
than restating it):

  • Wednesday is chosen from the mechanics, not from the Renovate window alone.
    check-expirations fails when today > expiration, so a Wednesday entry
    turns red on Thursday — after the week's Renovate nixpkgs bump (Monday
    window) has merged and the first nightly scan has produced a findings delta
    against the new closure. PR CI does not run vulnix, so the bump PR itself
    reveals nothing; the delta is what lets a review delete entries instead of
    blindly extending them.
  • Earlier weekdays force that blind extension, or — on a Sunday — leave the
    register red before the week's Renovate PRs even open, which is exactly how
    Renovate PRs blocked by expired CI gates and stale base image #550 took 16 unrelated PRs red at once. Later weekdays lapse over an
    unattended weekend.
  • Documents the snapping rule (nearest Wednesday, shift ≤ 3 days, prefer the
    shorter window on ties), the explicit dependency on the Renovate schedule
    so the rationale cannot silently rot, and a "stagger across weeks, not
    weekdays" note.

Registers — all 12 non-conforming dates snapped onto the grid, each with a
header note recording the snap and that no risk assessment was re-opened:

File Change
.vulnixignore glibc 08-15 (Sat) → 08-12 (−3); fzf 08-17 → 08-19 (+2); gawk 08-18 → 08-19 (+1); libssh2 09-01 → 09-02 (+1); four 08-31 blocks (zlib/sqlite/libmicrohttpd, podman, unbound, libssh2 6603x) → 09-02 (+2). The Class-1 CPE-mismatch block (2027-06-23) was already a Wednesday and is untouched.
.trivyignore three blocks 09-01 → 09-02 (+1)
.github/dependency-review-allow.txt 09-01 → 09-02 (+1)

Not changed, deliberately: check_expirations.py. The validator is
scaffolded into consumer repos (assets/workspace/.pre-commit-config.yaml)
whose Renovate schedule can be overridden — hard-enforcing a weekday would push
devkit's cadence org-wide and add a new failure class to the very tool whose
failures this reduces. The convention is enforced by review.

Changelog Entry

### Changed

- **Security exception expiries land on a Wednesday** ([#1337](https://github.com/vig-os/devkit/issues/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.

Testing

  • Tests pass locally
  • Manual testing performed (below)

Manual Testing Details

  • just precommit — full suite green (EXIT=0), including
    check-expirations, pymarkdown, typos and sync-manifest.
  • uv run check-expirations .trivyignore .vulnixignore → Validated 35 exception(s) across 2 file(s), exit 0.
  • uv run check-expirations .github/dependency-review-allow.txt → Validated 1 exception(s) across 1 file(s), exit 0.
  • Every Expiration: directive verified against date -d <date> +%A: all 13
    (9 + 3 + 1) resolve to Wednesday.

No unit tests added: this is a documentation and register-data change, and
check_expirations.py — the only executable component involved — is unchanged
and already covered by packages/vig-utils/tests/test_check_expirations.py.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests — n/a, see Manual Testing Details
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Three follow-ups worth knowing about, none blocking:

  1. The Saturday entry was the urgent one. The glibc block would have turned
    red unattended on Sunday 2026-08-16 at 05:00 UTC, blocking every commit
    until renewed. It now lapses on a Thursday.
  2. The gawk block may be deleted rather than renewed. Advance pinned nixpkgs rev to drop the gawk exception block (5.4.1 has landed in nixos-26.05) #1328 reports gawk
    5.4.1 has landed in nixos-26.05; if that pin advance merges first, drop the
    block instead of carrying its new 08-19 date.
  3. Eight of thirteen directives now share 2026-09-02. That is the intended
    combined re-review pass, but it means one stalled review blocks the whole
    register. De-clustering should happen at each block's next renewal by
    choosing different week-multiples — doing it now would either exceed the ±3
    day cap or pull unrelated reviews forward.

assets/workspace/.devcontainer/CHANGELOG.md is in the diff because
sync-manifest mirrors the root changelog; it is not a hand edit.

Closes #1337

Refs: #1337

Document an expiry grid for the exception registers in
docs/CONTAINER_SECURITY.md: every Expiration: date lands 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. Earlier weekdays force a blind extension (or, on
a Sunday, take unrelated PRs red before the week's Renovate PRs open);
later ones lapse over an unattended weekend, blocking every commit.

Snap the 12 non-conforming dates across .vulnixignore, .trivyignore and
.github/dependency-review-allow.txt onto the grid, shifting each by at
most 3 days. Scheduling only: no risk assessment is re-opened or altered.

check_expirations.py is deliberately unchanged — it is scaffolded into
consumer repos whose cadence may differ, so this stays a convention
enforced by review.

Refs: #1337
@c-vigo
c-vigo merged commit 698b04f into dev Aug 4, 2026
13 checks passed
@c-vigo
c-vigo deleted the chore/1337-wednesday-expiry-grid branch August 4, 2026 08:28
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