2 Commits
Author SHA1 Message Date
kevinveenbirkenbachandClaude Opus 5.5 d76ad966ea fix(ci): hand the vulnerability databases to the deploy jobs as run artifacts
Deploy jobs restored the day-keyed vulnerability-db caches with fail-on-cache-miss, but the repository cache was at 11.37 GB against the 10 GB limit: every PR run saves its own trivy, grype and OSV entries (about 2.9 GB a day), so GitHub evicted the least recently used vulnerability-db-osv-2026-11-12 of main while run 43288523728 still ran. Its last OSV hit was at 05:28, and 11 jobs (Matrix#1, NFS Server#0, Nextcloud#13 and 8 more) failed between 12:26 and 18:26 on the missing key, while grype, which every job restores, stayed.

The vulnerability-db job now uploads each engine database as the run artifact vulnerability-db-<chunk index>-<engine> (retention 3 days, overwrite for a full re-run) and the deploy jobs download it, so no job of a run depends on the evictable cache; the job keeps the day cache only to avoid a second download on the same day. The OSV cache key also carries the hash of roles/sys-ctl-hlth-runtime/meta/services.yml, so a change of the ecosystem list misses the stale database, and provided_databases checks every file of a pinned engine (each OSV ecosystem zip) instead of a non-empty directory.

Tests: TestDatabaseHandover in tests/lint/repository/test_deploy_vulnerability_databases.py (13 passed) and test_an_osv_database_without_one_ecosystem_fails in test_deploy.py (7 passed); negative control on main: 4 lint tests and the ecosystem test fail. ruff check and format clean.

Residuals: not yet exercised in a CI run; each chunk uploads about 2.9 GB of artifacts.

🎯 Fix: 90 %
💥 Break: 4 %
💸 Cost: –
⏱️ Time: –
🛡️ Security: 100 %
🏆 Score: 86
🚦 Gate: ✅ 90/5, cost and time <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 21:44:59 +00:00
kevinveenbirkenbachandClaude Opus 5.5 043e001669 feat(ci): rotate the vulnerability engine per row and hand its databases over
Each CI deploy row now draws one vulnerability engine (trivy, grype or osv)
as a fifth rotation axis, shown in the job name next to distro and
filesystem (🔬 axis, 🔺 trivy, 🍇 grype, 🐙 osv). The deploy-time scan of
sys-ctl-hlth-runtime runs that engine behind Syft and the Grype runtime pass.

- A vulnerability-db job keeps one Actions cache per database and day and
  downloads only the missing ones. Every deploy job restores Grype plus its
  drawn engine, fails on a cache miss and never downloads a database itself.
- Local stacks share one host directory, INFINITO_VULNERABILITY_DB_HOST_PATH,
  mounted read-only at INFINITO_VULNERABILITY_DB_DIR in compose.yml and in
  every swarm node. A local deploy without a pinned engine draws one and
  refreshes only the databases it reads, at most once a day, under a lock.
- A pinned engine whose database is missing stops the deploy before it
  starts.

Part of #1324

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 02:44:58 +01:00