diff --git a/TODO.md b/TODO.md index 75f5713..1401839 100644 --- a/TODO.md +++ b/TODO.md @@ -18,7 +18,9 @@ dotfiles; `LICENSE` is the only mandated file still missing. Every external reference in the repo is now pinned by cryptographic hash (or, for the wrangler CLI install, an exact version), and the Hugo that builds the published site is a deliberate pinned version rather than whatever the base image's package repo -serves. +serves. The site now ships a Cloudflare Pages `_headers` file, so its response +security headers are declared in the repo instead of being whatever the edge +defaults to — unverified in production until the next deploy. # Next Step @@ -28,6 +30,31 @@ remaining policy scaffold is otherwise complete. # Completed Steps +- 2026-08-09: added `static/_headers` so Cloudflare Pages serves baseline + response security headers (closes #14). Hugo copies `static/` verbatim into + `public/`, which is the deploy root Pages reads the file from; this is the + first root-level `static/` in the repo, and the built tree confirms it unions + with the theme's rather than shadowing it — `public/css/style.css` and + `public/index.html` are byte-identical to the previous build and the static + file count goes 1 to 2. The live "before" was measured, not assumed: + Cloudflare already sends `X-Content-Type-Options` and `Referrer-Policy` by + default, so the substance here is `Strict-Transport-Security`, + `Content-Security-Policy`, `X-Frame-Options` and `Permissions-Policy`. The CSP + is `default-src 'none'` with `style-src 'unsafe-inline'`, which the built page + supports exactly: it has no script, img, link, iframe, form or media element + and no `style=`/`on*=` attribute, only the one inline `