Skip to content

Promote the Self-Hosted Fonts, the Every-Fetch CSP Gate, and the Restored Images to Main - #534

Merged
ptr727 merged 6 commits into
mainfrom
develop
Oct 25, 2026
Merged

ptr727 merged 6 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Summary

This promotes develop to main:

This changes what the server sends, so the release needs a deploy. The pages and the security headers both change: no Google Fonts links, a tighter style-src and font-src on both sites, no Google connect-src hosts on the family site, and fonts in a one-hour cache class. Both releases were verified on the local staging mirror:

  • The live URL check passed 1296 URLs with the new headers exact.
  • The CSP browser check loaded 328 blog pages with no violation.
  • A Playwright probe found every font face loaded from the site itself, with no request to another origin.

Closes #513
Closes #527
Closes #529

🤖 Generated with Claude Code

dependabot Bot and others added 6 commits October 25, 2026 17:30
Bumps the docker-deps group with 1 update in the /checks/browser directory: playwright/python.


Updates `playwright/python` from v1.55.0-noble to v1.64.1-noble

---
updated-dependencies:
- dependency-name: playwright/python
  dependency-version: v1.64.1-noble
  dependency-type: direct:production
  dependency-group: docker-deps
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps the actions-deps group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [ptr727/ProjectTemplate/.github/workflows/validate-task.yml](https://github.com/ptr727/projecttemplate) | `2.0.1125` | `2.0.1135` |
| [ptr727/ProjectTemplate/.github/workflows/deploy-site-task.yml](https://github.com/ptr727/projecttemplate) | `2.0.1125` | `2.0.1135` |
| [ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml](https://github.com/ptr727/projecttemplate) | `2.0.1125` | `2.0.1135` |
| [ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml](https://github.com/ptr727/projecttemplate) | `2.0.1125` | `2.0.1135` |
| [ptr727/ProjectTemplate/.github/workflows/build-release-task.yml](https://github.com/ptr727/projecttemplate) | `2.0.1125` | `2.0.1135` |


Updates `ptr727/ProjectTemplate/.github/workflows/validate-task.yml` from 2.0.1125 to 2.0.1135
- [Release notes](https://github.com/ptr727/projecttemplate/releases)
- [Changelog](https://github.com/ptr727/ProjectTemplate/blob/main/HISTORY.md)
- [Commits](ptr727/ProjectTemplate@96f571a...39afd75)

Updates `ptr727/ProjectTemplate/.github/workflows/deploy-site-task.yml` from 2.0.1125 to 2.0.1135
- [Release notes](https://github.com/ptr727/projecttemplate/releases)
- [Changelog](https://github.com/ptr727/ProjectTemplate/blob/main/HISTORY.md)
- [Commits](ptr727/ProjectTemplate@96f571a...39afd75)

Updates `ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml` from 2.0.1125 to 2.0.1135
- [Release notes](https://github.com/ptr727/projecttemplate/releases)
- [Changelog](https://github.com/ptr727/ProjectTemplate/blob/main/HISTORY.md)
- [Commits](ptr727/ProjectTemplate@96f571a...39afd75)

Updates `ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml` from 2.0.1125 to 2.0.1135
- [Release notes](https://github.com/ptr727/projecttemplate/releases)
- [Changelog](https://github.com/ptr727/ProjectTemplate/blob/main/HISTORY.md)
- [Commits](ptr727/ProjectTemplate@96f571a...39afd75)

Updates `ptr727/ProjectTemplate/.github/workflows/build-release-task.yml` from 2.0.1125 to 2.0.1135
- [Release notes](https://github.com/ptr727/projecttemplate/releases)
- [Changelog](https://github.com/ptr727/ProjectTemplate/blob/main/HISTORY.md)
- [Commits](ptr727/ProjectTemplate@96f571a...39afd75)

---
updated-dependencies:
- dependency-name: ptr727/ProjectTemplate/.github/workflows/validate-task.yml
  dependency-version: 2.0.1135
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
- dependency-name: ptr727/ProjectTemplate/.github/workflows/deploy-site-task.yml
  dependency-version: 2.0.1135
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
- dependency-name: ptr727/ProjectTemplate/.github/workflows/merge-bot-task.yml
  dependency-version: 2.0.1135
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
- dependency-name: ptr727/ProjectTemplate/.github/workflows/publish-plan-task.yml
  dependency-version: 2.0.1135
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
- dependency-name: ptr727/ProjectTemplate/.github/workflows/build-release-task.yml
  dependency-version: 2.0.1135
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions-deps
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Restore the 2008 Posts' Originals From the Old-Site Archive

The six posts reposted from www.insanegenius.com in 2008 pointed back at
pages that now redirect to the blog's home page, and several carried
downscaled copies or sign-in-walled downloads of what the old site
served. The 1and1 copy of the old-site archive holds the original pages
and their files, so this restores them under each post's own media.

- Drop the "originally posted here" line and the homepage link from the
  reposts, and unlink the two prose mentions of the old site.
- Point the DG33TL and Abit posts at each other's blog permalinks,
  replacing Blogger's broken relative links, and the Vista SP1 post at
  the DG33TL post.
- Replace the Antec and Philips images with the originals: the 600px
  images the old page showed, each linked to its full-size original,
  downscaled to 1600px where the camera original was larger. This also
  fixes the Antec low-contrast image, which showed the high-contrast one.
- Host the LCD flicker video as an H.264 MP4 and the four download zips
  that Google Drive now puts behind a sign-in, and point the symbol
  proxy post at the copy of its zip the site already carries.
- Remove the eleven static/external images no page links any longer.

Closes #527

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Crop the Antec Low Thumbnail From Its Own Photo and Stop Linkify Relinking

The archive's Antec low-contrast thumbnail is a crop of the high-contrast
photo, so the post showed one screen and opened another. Crop the
thumbnail from the low-contrast photo it links to instead.

Goldmark's linkify turned the bare www.insanegenius.com left in the eNom
post back into a link, so set it as inline code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Drop the Visual Studio User Options File From the 1.0.1.1 Zip

The ExpressionMediaExport 1.0.1.1 download carried its .suo, a per-user
Visual Studio settings file the source does not need, so rewrite the zip
without it and keep every other member as the old site served it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* Serve the Eight Archived Posts' Hotlinked Images Locally

The eight posts in #513 embedded 95 images from hosts that no longer
serve them. The seven 2009 and 2010 posts were written in Google Docs
and published to Blogger, and the source documents still hold every
embedded image, so this restores them under each post's own media.

- Restore the 94 images from the source documents, matched to each
  post's references in order and checked against the text around each
  one, and point every image and its wrapping link at the local copy.
- Host the Elco ECF41527W product image on the MR16 retrofit post,
  taken from the manufacturer's current product page, since the
  original URL answers 404.
- Strip the camera and text metadata from eleven files with the
  normalizer, which drops segments and re-encodes nothing.
- Empty the CSP browser check's allow list, since the site no longer
  loads anything the policy blocks.

Closes #513

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Drop the Policy Note on Hotlinked Images No Post Loads

The blog policy's description still said img-src 'self' blocks the
hotlinked images a few archived posts reference. None remains, so the
sentence described a block that no longer happens.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
* Serve Both Sites' Fonts From the Sites Themselves

Lexend on the blog, and Cormorant Garamond and EB Garamond on the family
site, now load from each site's own fonts/ tree instead of Google Fonts.
Each family ships its Latin and Latin Extended woff2 subsets with its
OFL.txt, declared with Google Fonts' unicode ranges. Both policies drop
the Google hosts, and the font files join the one-hour cache class.

Part of #529.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Drop the New Font Comments and Exclude the Verbatim Licenses From the Prose Gate

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Match the Blog's Font Files With a Prefix Wildcard

Caddy's path matcher does not expand a wildcard in the middle of a path, so /fonts/*.woff2 matched nothing and the fonts answered no-cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Say Which Family Font Files Are Variable

The italic files are static instances, so the soil labels' italic 600 is synthesized, as it was under Google Fonts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
…d Host (#533)

* Check Every Fetch on Both Sites Against Its Policy, and Refuse a Named Host

check-csp-scripts.py becomes check-csp.py. Beyond scripts, frames, media,
and objects, it reads images, srcset candidates, posters, SVG images, each
loading link, and CSS url() and @import in stylesheets, style blocks, and
style attributes. It runs over the built blog and the family tree, each
against its own policy, with the site's own origin read as 'self'. A policy
naming a host or a network scheme fails, so every resource either site
loads is its own.

Part of #529.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Split Two Long Sentences in the Gate's Docstring

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Answer the Gate's First Local Review

Read @import with no space before its string, hold a fetch preload to
connect-src, and read only fetch directives as naming a host. Drop the
unused script_sources wrapper behind one directives() parser. Fix the stale
VS Code task dependency, the CONTENT.md row, and the deploy README's remedy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Read the Navigation Source Lists as Naming a Host Too

base-uri, form-action, frame-ancestors, and navigate-to each list sources, so a host there fails like one under a -src directive. Split the deploy README's hash remedy into two sentences.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* Read report-uri as Naming a Host

Its value is the URL violation reports go to, so a collector on another host would otherwise pass the rule that neither policy names one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 25, 2026 23:06
@coderabbitai

coderabbitai Bot commented Oct 25, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: e4cdd154-9ac1-4ef0-9c83-be8909701b83
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.25592% with 29 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.24%. Comparing base (7950ed6) to head (aa0af50).
⚠️ Report is 151 commits behind head on main.

Files with missing lines Patch % Lines
checks/check-csp.py 86.25% 29 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #534      +/-   ##
==========================================
+ Coverage   52.39%   53.24%   +0.84%     
==========================================
  Files          12       12              
  Lines        3336     3418      +82     
==========================================
+ Hits         1748     1820      +72     
- Misses       1588     1598      +10     
Flag Coverage Δ
python-3.13 53.24% <86.25%> (+0.84%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The CSP gate has a critical host-block scoping flaw and a moderate image-preload coverage gap.

1 open issue
What changed in this PR

This pull request promotes the restored archived media, self-hosted fonts, and expanded CSP validation from develop to main, while updating deployment configuration, documentation, tests, and workflow dependencies.

Changes:

  • Restores archived images, downloads, and links to local media paths.
  • Serves Lexend, Cormorant Garamond, and EB Garamond locally with OFL licenses and cache rules.
  • Replaces the script-only CSP check with validation covering both sites, page and stylesheet fetches, and policy hosts.
  • Updates release tooling, browser checks, workflow pins, and supporting documentation.
File Description
themes/​README.md Documents the local Lexend preload customization and renamed CSP gate.
static/​fonts/​lexend/​OFL.txt Adds the Lexend license.
sites/​viljoen.family/​site.css Declares locally hosted family-site fonts.
sites/​viljoen.family/​README.md Documents local fonts, subsets, weights, and licensing.
sites/​viljoen.family/​index.html Removes Google Fonts dependencies.
sites/​viljoen.family/​fonts/​eb-garamond/​OFL.txt Adds the EB Garamond license.
sites/​viljoen.family/​fonts/​cormorant-garamond/​OFL.txt Adds the Cormorant Garamond license.
sites/​viljoen.family/​af/​index.html Removes Google Fonts dependencies from the Afrikaans page.
README.md Updates the documented CSP verification command.
layouts/​_partials/​extend_head.html Preloads the local Lexend font.
deploy/​README.md Documents tooling, caching, security headers, and release-gate behavior.
deploy/​make-release.sh Runs the renamed CSP gate during release builds.
deploy/​Caddyfile Tightens CSP policies and adds font caching.
cspell.json Excludes carried font license files from spelling checks.
content/​posts/​2015/​08/​02/​mr16-12v-halogen-to-led-retrofit.md Replaces the external Elco image with local media.
content/​posts/​2010/​05/​14/​zotac-zboxhd-id11-first-impressions.md Replaces hotlinked images with local media.
content/​posts/​2010/​01/​30/​nec-multisync-lcd2490wuxi2-and-lcd2690wuxi2.md Replaces hotlinked images with local media.
content/​posts/​2010/​01/​30/​data-robotics-drobopro-vs-qnap-ts-859-pro.md Replaces hotlinked images with local media.
content/​posts/​2010/​01/​03/​intel-dp45sg-and-lian-li-pc-c33b-htpc.md Replaces hotlinked images with local media.
content/​posts/​2009/​10/​11/​hitachi-a7k2000-and-seagate-barracude.md Replaces hotlinked images with local media.
content/​posts/​2009/​09/​21/​western-digital-re4-gp-2tb-drive.md Replaces hotlinked images with local media.
content/​posts/​2009/​06/​14/​dell-2408wfp-and-spyder-3-elite.md Replaces hotlinked images with local media.
content/​posts/​2009/​04/​09/​broken-symbol-proxy.md Moves the source archive download to local media.
content/​posts/​2009/​02/​11/​dxo-optics-pro-and-adobe-lightroom-on-vista-x64.md Moves the source archive download to local media.
content/​posts/​2009/​01/​09/​google-email-uploader-on-vista-x64.md Moves the binary download to local media.
content/​posts/​2008/​05/​24/​81.md Removes an obsolete external homepage link.
content/​posts/​2008/​04/​01/​philips-digital-photo-frame.md Restores local images and removes obsolete old-site links.
content/​posts/​2008/​04/​01/​microsoft-expression-media-iview-media-pro-to-adobe-photoshop-lightroom-converter.md Moves downloads locally and removes obsolete links.
content/​posts/​2008/​04/​01/​intel-dg33tl-motherboard.md Replaces invalid Blogger links with internal permalinks.
content/​posts/​2008/​04/​01/​antec-veris-fusion-black-htpc-case.md Restores local images and video.
content/​posts/​2008/​04/​01/​abit-f-i90hd-motherboard.md Replaces invalid Blogger links with internal permalinks.
content/​posts/​2008/​03/​30/​vista-sp1-and-intel-gma-blue-screen-crash.md Replaces an obsolete old-site link with an internal permalink.
content/​posts/​2008/​03/​30/​getting-my-feet-wet.md Removes an obsolete external homepage link.
CONTENT.md Documents the expanded CSP gate.
checks/​tests/​test_check_csp.py Adds coverage for both-site policies and resource types.
checks/​security-headers.txt Removes Google hosts and allows local fonts.
checks/​README.md Documents the renamed CSP gate.
checks/​csp-browser-allow.txt Removes obsolete blocked-image exceptions.
checks/​check-csp.py Adds two-site resource and policy validation. [P1, moderate, 1 vote] Image preload imagesrcset candidates are not checked. [P1, critical, 3 votes] Caddy policy matching is not scoped to the selected site block, allowing swapped-host policies or comment matches.
checks/​check-csp-scripts.py Removes the superseded CSP gate.
checks/​check-csp-browser.py Updates browser-check documentation for the expanded gate.
checks/​browser/​Dockerfile Updates the pinned Playwright image.
assets/​css/​extended/​custom.css Declares locally hosted Lexend subsets.
.vscode/​tasks.json Renames the CSP task and points it at the new gate.
.github/​workflows/​test-pull-request.yml Updates the reusable validation workflow pin.
.github/​workflows/​publish-release.yml Updates release workflow task pins.
.github/​workflows/​merge-bot-pull-request.yml Updates the merge-bot task pin.
.github/​workflows/​deploy-site.yml Updates validation and deployment task pins.
.github/​prose-gate-excludes Excludes verbatim font licenses from prose checks.
.gitattributes Marks WOFF2 files as binary.
.editorconfig-checker.json Excludes WOFF2 files from text formatting checks.

Review effort: Lite

Comment thread checks/check-csp.py Resolved
@ptr727

ptr727 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

Answering the headline's "moderate image-preload coverage gap" on aa0af50, which opened no thread. The gate reads <link rel="preload" as="image" href> under img-src, and it does not read a preload's imagesrcset. No page either site ships carries an image preload: grep -rn 'imagesrcset\|as="image"' themes/PaperMod/layouts layouts finds none. The only preloads are PaperMod's as="fetch" search index, read under connect-src, and the Lexend font. A shape nothing produces is a hardening case GOVERNANCE.md "Trust Boundaries and Hardening Effort" declines, so no change is made.

Coverage. The review's file table names 51 of the 189 changed files. The other 138 are all binary: 79 PNG, 44 JPEG, 10 WOFF2, 4 ZIP, and 1 MP4, restored media and font files. Every text file is in the table.

@ptr727
ptr727 merged commit 75fc00e into main Oct 25, 2026
13 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

2 participants