Skip to content

chore: website modernization phase 1 (SRI, no analytics, Dependabot, CodeQL) - #29

Merged
matbrgz merged 5 commits into
masterfrom
chore/modernize
Oct 11, 2026
Merged

matbrgz merged 5 commits into
masterfrom
chore/modernize

Conversation

@matbrgz

@matbrgz matbrgz commented Oct 11, 2026

Copy link
Copy Markdown
Member

Summary

Spec 005 (website modernization) Phase 1 — safety and hygiene — plus the spec itself and ADR 0003 (deploy on Cloudflare Workers static assets).

  • T1 RED tests: every third-party <script>/stylesheet in built pages has an exact version and an integrity hash (AC1); no Google Analytics in templates or pages (AC2)
  • T2 Tailwind browser pinned to 4.3.3 (what @4 already served, so no visual change) via the published dist file, whose SRI hash is stable across CDNs; Font Awesome 6.4.0 with SRI; placeholder Universal Analytics removed; reCAPTCHA off (it loaded on 509 pages with a placeholder key for hidden Staticman forms)
  • T3 Dependabot (gems, root and e2e packages, Actions, submodules) and CodeQL (JavaScript, Ruby, Actions)
  • T4 (approved part) vendor/bundle untracked: 5,135 files / 73.5 MB; the rest of the deletion list awaits maintainer approval

ELI5

The site now only loads outside code it can verify byte by byte, stops sending visits to Google, and the repository no longer carries 73 MB of installed libraries.

Tests

  • rake test: 15 runs, 58 assertions, 0 failures (2 new)
  • yarn test:e2e: 104 passed, 2 skipped
  • Existing Build/Security Checks jobs fail on master too (npm ci without a lockfile); replaced in Phase 2 (T6)

AI disclosure

  • Built with AI assistance (Claude Code); reviewed by the maintainer.

🤖 Generated with Claude Code

matbrgz and others added 5 commits October 11, 2026 00:40
Maintainer decision: move the site to Cloudflare Workers static assets after modernizing it. Spec, plan and tasks in five phases; roadmap updated.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Spec 005 T1 (AC1, AC2). Fails today: Tailwind browser floats on @4, Font Awesome has no integrity, reCAPTCHA loads with a placeholder key, and both head includes carry the UA snippet.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Spec 005 T2. Tailwind browser is pinned to 4.3.3 (what @4 already resolved to, so styles are unchanged) using the published dist file, whose hash is stable across CDNs; Font Awesome 6.4.0 gets its integrity hash. The UA snippet (a placeholder id, and Universal Analytics is retired) is removed from both head includes. reCAPTCHA is turned off: it loaded on 509 pages with a placeholder site key for Staticman forms that are hidden until contribute ships.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Spec 005 T3. Weekly grouped updates for gems, root and e2e packages, Actions and the content submodules; CodeQL security-and-quality for JavaScript, Ruby and the workflows themselves.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Spec 005 T4 (approved part). 5,135 installed gem files (73.5 MB) were committed despite the .gitignore entry; they leave the index only, local installs keep working. History is not rewritten.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Deploying iplibrary-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5bd28a9
Status:🚫  Build failed.

View logs

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@matbrgz

matbrgz commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

@codex full review

@matbrgz
matbrgz merged commit e0118a4 into master Oct 11, 2026
9 of 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

Development

Successfully merging this pull request may close these issues.

2 participants