Skip to content

chore(release): 0.4.0 cutover readiness — security-scan dispatch, rollback docs, changelog framing - #808

Merged
c-vigo merged 8 commits into
devfrom
feature/639-cutover-readiness
Jul 4, 2026
Merged

c-vigo merged 8 commits into
devfrom
feature/639-cutover-readiness

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Pre-release readiness batch for the 0.4.0 Nix publish-cutover (#639). Grew from docs/trigger work into the full vulnix-gate hardening after the first-ever dispatched scan exposed real defects.

Cutover readiness (original scope):

vulnix gate hardening (found by dispatching the scan; NVD was mid-incident, nix-community/vulnix#171):

  • Scan step made errexit-safe: vulnix's documented exit 2 ("advisories found") killed the step under the runner's default bash -e {0} before findings ever reached the gate.
  • Crash-vs-findings disambiguation: a vulnix NVD-timeout crash exits 1 (same as "whitelisted findings"); the step now accepts a run only when the findings JSON validates, and retries throttled fetches 3× with backoff (ETag-resuming).
  • Weekly-keyed actions/cache of the NVD database: warm runs fetch only the ~3 MB modified feed (this cut the scan from ~25 min of fetch roulette to ~4 min).
  • packages.vulnix patches upstream's hardcoded 10 s NVD fetch timeout to 60 s.
  • Findings artifact uploads if: always() so a red gate keeps its triage evidence.

CVE triage (2026-07 batch):

  • 8 new HIGH/CRITICAL findings (libssh2 ×2, socat, libxml2, gzip, fzf ×2, jq) triaged online against NVD/CERT.PL/GHSA + upstream + nixpkgs branch state; accepted into .vulnixignore with per-entry rationale and staggered 30–60-day expiries. None fixable by rev advance today; none realistically exploitable in a single-user interactive dev container.

Also merges origin/dev (post-#809).

Verification

Refs #639, #642, #781.

c-vigo added 3 commits July 3, 2026 14:07
… scan

Scheduled runs execute from the default branch, so the vulnix nightly has
never run against dev. A manual dispatch on dev is the pre-release go/no-go
evidence for the publish-cutover.

Refs: #639
…utover framing

MIGRATION.md gains the consumer rollback story (pin 0.3.9 in .vig-os; the
Debian line is frozen) and the upcoming devcontainer->devkit rename notice;
the changelog leads with the cutover as a breaking consumer change so the
0.4.0 release notes carry it.

Refs: #639
c-vigo added 5 commits July 3, 2026 14:37
…dings

The runner's default shell is 'bash -e {0}', so vulnix's documented
exit 2 (reportable advisories) killed the step before the tolerant rc
check and the .vulnixignore gate ever ran. Capture the status with an
errexit-safe '|| rc=$?' and upload the findings artifact if: always()
so a red gate keeps its triage evidence.

Refs: #639
…adiness

# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md
…d fetches

nvd.nist.gov throttles the ~122 MB cold feed fetch (currently unstable,
nix-community/vulnix#171) and vulnix has no retry: a mid-fetch timeout
crashes with exit 1, which the tolerant rc check cannot distinguish from
the documented 'only whitelisted findings' exit 1. Cache ~/.cache/vulnix
on an ISO-week key (a warm cache fetches only the ~3 MB modified feed),
retry the scan with backoff, and accept a run only when the findings
file is valid JSON.

Refs: #639
nvd.nist.gov stalls under throttling (nix-community/vulnix#171) and
vulnix's upstream timeout=10 kills slow-but-flowing feed downloads;
patch the pinned package via substituteInPlace until upstream grows
retry/timeout options. Also skip the pointless backoff sleep after the
retry loop's final attempt.

Refs: #639
…on register

Eight HIGH/CRITICAL findings published after the 2026-06-23 baseline
(libssh2 x2, socat, libxml2, gzip, fzf x2, jq), verified online against
NVD/CERT.PL/GHSA, upstream repos, and nixpkgs branch contents: all real
product matches, none fixable by a rev advance today, none with a
realistic attack path in a single-user interactive dev container.
Staggered 30-60 day expiries force re-review as the staging fixes land.

Refs: #639
@c-vigo
c-vigo merged commit 41761cf into dev Jul 4, 2026
14 checks passed
@c-vigo
c-vigo deleted the feature/639-cutover-readiness branch July 4, 2026 07:33
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