Optical glass cube prism casting a clean refracted light band across dark matte stone

Overview

The infrastructure and publishing pipeline powering mrck.si—designed for zero server maintenance while applying defense-in-depth controls normally reserved for larger production workloads.

Key Controls

  1. Dual-Layer Origin Lockdown: AWS WAFv2 (default_action = BLOCK) accepts requests on CloudFront only when the TCP peer IP belongs to Cloudflare's official IPv4/IPv6 ranges and carries a 256-bit X-Origin-Verify header injected at the Cloudflare edge.
  2. End-to-End TLS 1.3 & KMS Storage: Viewer → Cloudflare (min_tls_version = 1.3, HSTS preload) → CloudFront (TLSv1.3_2025, ECDSA P-256 ACM certificate) → Private S3 via SigV4 OAC, encrypted at rest with a customer-managed KMS key.
  3. Keyless GitHub OIDC CI/CD: Pushing to main runs CSP, SRI, broken-link, and WCAG verification, assumes a repository-scoped IAM role via OpenID Connect, syncs S3 (pruning stale keys), and invalidates CloudFront automatically.