R-1303: the nightly security watch — security_watch.py, the shared pin list + upstream gate, 35 tests, the CI job (03:40 UTC)
gates / gates (push) Successful in 3m53s

This commit is contained in:
admin committed 2026-10-26 23:20:06 +01:00
1 parent 97ae7086c0
commit 1f62d62915
7 files changed
+1495

No files matched your search

+16
View File
@@ -1,3 +1,19 @@
## 2026-10-26 (night) — the nightly security watch (R-1303)
- **`security_watch.py`** (new): every night (CI `.gitea/workflows/security-watch.yml`, 03:40 UTC) it reads GitHub's
per-repo security advisories (with `GH_ADVISORY_TOKEN` when present; without it the apps' lists in a 2-night
rotation), the GitHub release feeds, the Cloudflare blog and cloudflared's `VULN-` notes, OSV for the Go builders and
the registry tags, and sorts every pin into ADVISORY / NOT CHECKED / GAP / FLOATING / BEHIND / CURRENT. Mails (operator
only): a new advisory that night (a reminder after 7 days), BEHIND weekly on Monday, a source down two nights. Its
memory is `documentation/security-watch/state.json`, committed back by the job. Spike:
`documentation/audits/security-watch-2026-10-26/SPIKE.md`.
- **`security_watch_inventory.py`** (new): the one reader of every pin and its upstream, and the `--gate=` the catalog
and the controller run (`upstream`).
- **`test_security_watch.py`** (new, 35 checks, no network): the classes with fake answers (today's cloudflared blog
item as a recorded answer), one mail per advisory, the 7-day reminder, a source down one night vs two, the weekly, the
seed, the inventory gate. Red-proved four ways (dedupe, streak, the 30-day window, a swallowed source error).
- `hub/Dockerfile`: a `# upstream:` comment above each `FROM`.
## 2026-10-26 (evening) — CI: heavy suites by path, no second full gate run, a nightly run (R-1297 A); a decoy hole closed
- **`script_tests_gate.py` `PATH_FILTERED`:** on a CI branch push with a known file list, `test_gate_decoys.py`,