Repository navigation
Conversation
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]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Codecov Report❌ Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 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
|
Answering the headline's "moderate image-preload coverage gap" on aa0af50, which opened no thread. The gate reads 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. |

Summary
This promotes
developtomain:static/fonts/lexend/, and Cormorant Garamond and EB Garamond are undersites/viljoen.family/fonts/, each with itsOFL.txt. Both policies drop the Google hosts, and the font files join the one-hour cache class.checks/check-csp-scripts.pytochecks/check-csp.pyand extends it. The release build now checks every fetch the pages and stylesheets of both sites make against each site's own policy, and it fails where a policy names another host.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-srcandfont-srcon both sites, no Googleconnect-srchosts on the family site, and fonts in a one-hour cache class. Both releases were verified on the local staging mirror:Closes #513
Closes #527
Closes #529
🤖 Generated with Claude Code