Why Static Sites Rot Between Edits
Personal sites rarely break while you are actively building them—they break six months later when you sit down to write a short note and run into thirty transitive npm advisories and a broken build plugin.
Keeping mrck.si compiled by a single zero-dependency Node.js script (site/scripts/build.mjs) solves two problems at once:
- Zero transitive supply-chain churn:
package.jsoncarries zero runtime dependencies, so builds run in under 150ms on any standard Node.js runtime or GitHub Actions runner. - Strict Content-Security-Policy without
'unsafe-inline': Because CSS and progressive-enhancement JS are emitted as content-hashed external bundles verified with SHA-384integrityattributes, the CDN enforcesdefault-src 'none'; script-src 'self'; style-src 'self'with zero inline script exceptions.
Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self'; img-src 'self' data:; font-src 'self'; connect-src 'self'; manifest-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'; upgrade-insecure-requests
Push-to-Deploy via Keyless OIDC
Publishing a new post shouldn't require local AWS keys or manual cache purges. Committing a Markdown file to main triggers GitHub Actions to assume a repository-scoped AWS IAM role via OpenID Connect (sts:AssumeRoleWithWebIdentity), run the CSP/WCAG build verifier, sync S3 (pruning any deleted paths), and invalidate CloudFront automatically.