Skip to content

feat(site): the security watch at /security/, and sillybos as a product - #89

Merged
stephen-masters merged 2 commits into
mainfrom
feat/security-watch
Nov 1, 2026
Merged

stephen-masters merged 2 commits into
mainfrom
feat/security-watch

Conversation

@stephen-masters

Copy link
Copy Markdown
Contributor

Summary

  • A security watch at /security/, built at build time from sillybos's advisory record (feat(advisories): the triage record, one file per advisory, with the test that proves each refusal sillybos#6, merged): one page per advisory, one per library, an index with the watchlist and every row, an RSS feed and a JSON export, plus a hand-written guide, Protecting yourself. The record is fetched from the sillybos repository through a content adapter rather than copied, so the site cannot drift from it; a failed fetch fails the build.
  • sillybos gets a product page and a card, and a Security entry joins the masthead. baseof guards the edit link for pages that have no file.
  • A weekly workflow asks Cloudflare to rebuild after sillybos's Monday advisory run, once CLOUDFLARE_DEPLOY_HOOK is set.
  • Fixes found in testing: the adapter's dates go in the dates map (a top-level date key is ignored, leaving every page at year 1), library pages take the date of their newest advisory, and Hugo's remote-resource cache no longer keeps a fetched record for ever, so a rebuild always reads the current one.

Test plan

  • npm run lint, npm run build against record.json on sillybos main: 110 pages, 22 advisory rows, all dated and newest first; feed and JSON export carry the same rows
  • Playwright: 37 pass, including a new test that the watch renders the record everywhere it is promised, and the menu tests updated for four products
  • After deploy: https://tetrak.dev/security/ and /security/index.xml; then set CLOUDFLARE_DEPLOY_HOOK for the weekly refresh

🤖 Generated with Claude Code

stephen-masters and others added 2 commits November 1, 2026 18:27
A section built at build time from sillybos's advisory record: one page
per advisory (/security/cve-2026-112403/), one per library, an index with
the watchlist and every row, an RSS feed and a JSON export, plus a
hand-written guide, Protecting yourself. The record is fetched from the
sillybos repository through a content adapter rather than copied, so the
site cannot drift from it; the fetch is the one URL the build may read
(security.http.urls), and a failed fetch fails the build. A weekly
workflow asks Cloudflare to rebuild after sillybos's Monday advisory run,
once CLOUDFLARE_DEPLOY_HOOK is set.

sillybos gets a product page and a card, and a Security entry joins the
masthead. baseof now guards the edit link for pages that have no file.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018UhHdevgBGz837t9dcHohQ
…the watch

The content adapter set the advisory date under a top-level `date` key,
which Hugo does not read, so every page it made sat at year 1: the table
was not newest first, the feed went out undated and the sitemap had no
lastmod. The date now goes in the `dates` map, a library page takes the
date of its newest advisory, and the guide page has a date of its own,
so nothing in the section's feed is undated.

Hugo keeps a fetched remote resource for ever by default, so a machine
that had built the site once would never see a changed record and the
weekly rebuild could publish a stale watch. The remote-resource cache
now expires at once; the record is the only remote fetch the build makes.

The browser tests learn that sillybos makes four products, give the
whole-site image walk the time a hundred pages need, and gain a check
that the watch renders the record everywhere it is promised: rows that
link to dated advisory pages, newest first, a JSON export and a feed
that carry the same rows, and a verdict on the page behind each row.

Co-authored-by: Yvette Mankerian <yvettekm@gmail.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tetrak with  Cloudflare Pages  Cloudflare Pages

Latest commit: d145ccd
Status: ✅  Deploy successful!
Preview URL: https://d4e5ca9a.tetrak.pages.dev
Branch Preview URL: https://feat-security-watch.tetrak.pages.dev

View logs

@stephen-masters
stephen-masters merged commit 8557f90 into main Nov 1, 2026
8 checks passed
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