From 55fedac1a5f62f973bd24a1c78e9b91e4efc8a81 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sat, 24 Oct 2026 08:09:38 -0700 Subject: [PATCH 1/3] Print a Proxied Verdict for Every Host the Check Reaches The probe printed the matching header lines and left the reader to judge them, and it named one host. It now prints proxied only when a host answers both server: cloudflare and cf-ray, and it covers the family host too. The includeSubDomains reason now says plainly that it names subdomains of the site's hostname. Co-Authored-By: Claude Opus 5.5 --- OPERATIONS.md | 7 +++++-- deploy/README.md | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/OPERATIONS.md b/OPERATIONS.md index 6dc37574..78078061 100644 --- a/OPERATIONS.md +++ b/OPERATIONS.md @@ -131,10 +131,13 @@ The deploy root and the base URL are the only host-specific values. A local run **Production's deploy checks a sample of the contract, and every other run checks all of it.** The production edge bans a client that requests more than 40 distinct pages in a burst. It also bans one when more than 10 distinct pages answer `404`, `403` or `400`. A full run from the GitHub runner therefore gets it banned. The deploy hook sets `SAMPLE_CONTRACT=1` for `production` alone, and the check then requests one URL from each class. That covers each redirect class, each shape of page that must render, each media tree, and the family pages. It also covers `/all/`, `/feed.xml`, and `/sitemap.xml`, the fixed redirect destinations no list names. The script holds that to 30 distinct pages at most, and none is expected to answer an error. Staging and the local mirrors keep the whole contract, which is where it is proven. **A hand run against the VPS production site sets `SAMPLE_CONTRACT=1` too**, for the same reason the hook does. The local production mirror sits behind no such edge and keeps the whole contract. `checks/check-live-urls.sh --print-sample` lists what a sampled run requests without requesting anything. [`deploy/README.md`](./deploy/README.md#environment-variables) carries the budget. -**A hand run counts as measured through Cloudflare only once the target answers `server: cloudflare` with a `cf-ray` header.** Right after a hostname flips to proxied, the resolver on the machine running the check can keep answering with the origin for minutes. Another resolver can already answer with Cloudflare by then. A run in that window measures the origin directly, so read those headers from the same machine before the run: +**A hand run counts as measured through Cloudflare only once the target answers `server: cloudflare` with a `cf-ray` header.** Right after a hostname flips to proxied, the resolver on the machine running the check can keep answering with the origin for minutes. Another resolver can already answer with Cloudflare by then. A run in that window measures the origin directly. Before the run, check every host it reaches from the same machine, the family host included, and go ahead only when each prints `proxied`: ```sh -curl -q -sSI https:/// | grep -iE '^(server|cf-ray):' +for host in ; do + h=$(curl -q -sSI "https://$host/") + if grep -qi '^server: cloudflare' <<<"$h" && grep -qi '^cf-ray:' <<<"$h"; then echo "$host proxied"; else echo "$host NOT proxied"; fi +done ``` **Always set `SITE_BASE_URL` for anything that is not production.** The base URL is baked into the canonical tag, the feed links, and every absolute permalink, so a mirror built without it serves pages that all point back at the production address. Nothing downstream catches this, because the pages render at the right paths and the build gate passes. `make-release.sh` bridges it to Hugo's own `HUGO_BASEURL` internally, and the effective value is printed on every build for that reason. diff --git a/deploy/README.md b/deploy/README.md index 7ac96cfc..e4b1c13a 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -298,7 +298,7 @@ The sites send the same security headers on every response, redirects and the `4 | `X-Content-Type-Options` | `nosniff` | A browser trusts the served `Content-Type` rather than guessing one from the body | | `Referrer-Policy` | `strict-origin-when-cross-origin` | Another site learns only the origin a reader came from, never the path | -The HSTS value carries neither `includeSubDomains` nor `preload`. `includeSubDomains` would bind every hostname under the site's own, which this bundle does not serve. `preload` asks for the whole domain to be built into browsers, where a removal takes months to reach readers. HSTS at the edge is the host side's setting, and it stays off because Cloudflare applies it to every name in the zone. +The HSTS value carries neither `includeSubDomains` nor `preload`. `includeSubDomains` would extend the policy to every subdomain of the site's hostname, and this bundle serves none of them. `preload` asks for the whole domain to be built into browsers, where a removal takes months to reach readers. HSTS at the edge is the host side's setting, and it stays off because Cloudflare applies it to every name in the zone. **Only the family site sends a `Content-Security-Policy`.** Its page loads few resources, so its policy names each kind: its own files, Google Fonts, inline styles, and `data:` images. Blog posts embed third-party content, so a blog policy waits on a survey of what the posts load. From f12a2dd00c44dccd7eb4deefe97f97b75620e573 Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sat, 24 Oct 2026 08:13:41 -0700 Subject: [PATCH 2/3] Give the Probe a Failure Verdict That Does Not Contain proxied Co-Authored-By: Claude Opus 5.5 --- OPERATIONS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OPERATIONS.md b/OPERATIONS.md index 78078061..e8dd652f 100644 --- a/OPERATIONS.md +++ b/OPERATIONS.md @@ -136,7 +136,7 @@ The deploy root and the base URL are the only host-specific values. A local run ```sh for host in ; do h=$(curl -q -sSI "https://$host/") - if grep -qi '^server: cloudflare' <<<"$h" && grep -qi '^cf-ray:' <<<"$h"; then echo "$host proxied"; else echo "$host NOT proxied"; fi + if grep -qi '^server: cloudflare' <<<"$h" && grep -qi '^cf-ray:' <<<"$h"; then echo "$host proxied"; else echo "$host UNCONFIRMED"; fi done ``` From d0109bec55d3f14736a8db20bcfb67ff435d7abd Mon Sep 17 00:00:00 2001 From: Pieter Viljoen Date: Sat, 24 Oct 2026 08:19:44 -0700 Subject: [PATCH 3/3] Use a POSIX Pipe Rather Than a Here-String in the Probe Co-Authored-By: Claude Opus 5.5 --- OPERATIONS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OPERATIONS.md b/OPERATIONS.md index e8dd652f..64fb6b55 100644 --- a/OPERATIONS.md +++ b/OPERATIONS.md @@ -136,7 +136,7 @@ The deploy root and the base URL are the only host-specific values. A local run ```sh for host in ; do h=$(curl -q -sSI "https://$host/") - if grep -qi '^server: cloudflare' <<<"$h" && grep -qi '^cf-ray:' <<<"$h"; then echo "$host proxied"; else echo "$host UNCONFIRMED"; fi + if printf '%s\n' "$h" | grep -qi '^server: cloudflare' && printf '%s\n' "$h" | grep -qi '^cf-ray:'; then echo "$host proxied"; else echo "$host UNCONFIRMED"; fi done ```