alareimi.com

analytics rules / rule details

alareimi.com, built like production

This site, run like a production service, with CI gates, strict security headers, a content-safety check, self-reported health and zero tracking.

Problem

A portfolio site is a small thing, but it’s also the first piece of my engineering a hiring manager can inspect. If it leaks data, tracks visitors, ships broken links or publishes something it shouldn’t, that says more than any project on it. I wanted it to meet the bar I’d hold a production service to, and to look like the kind of tooling I build.

What I built

  • A static site in Astro. Content is typed: a project without a status, stack or date fails the build.
  • Hosting on Cloudflare Workers static assets, deployed by GitHub Actions. A separate preview environment gets every change first and tells search engines not to index it.
  • Security headers on every response, including a strict Content-Security-Policy with no inline scripts or styles, HSTS and frame-ancestors 'none'.
  • A content-safety gate. Before anything deploys, a script scans the built site for terms that must never be published, broken internal links and pages missing titles or descriptions. Sensitive terms are kept in a CI secret, not in the public repo. If anything matches, the deploy stops.
  • Self-reported health. Each build records its commit, pipeline run, checks and headers, and the health page shows them. Incidents from running the site are logged there too.
  • No tracking. No cookies, no analytics, no third-party scripts. Fonts are hosted on the site itself.

How it works

# .github/workflows/ci.yml (abridged)
jobs:
  build:            # every push and pull request
    steps:
      - run: npm ci
      - run: npm test         # telemetry → type check → build → content-safety gate
      - run: npm audit --omit=dev --audit-level=high
  deploy-preview:   # branch "redesign" → preview.alareimi.com (noindex)
    needs: build
  deploy:           # branch "main" → alareimi.com
    needs: build
    steps:
      - run: npx wrangler deploy   # API token scoped to this site

Actions are pinned to commit SHAs, and Dependabot raises dependency updates as pull requests that go through the same gate.

Results

  • No cookies, no analytics and no third-party requests apart from the contact form.
  • Every live version has passed type checks, the content-safety gate and a dependency audit.
  • The pipeline has already earned its keep: it blocked a Dependabot upgrade that would have broken the build.

What I’d do next

  • Replace the third-party form service with a small Worker behind Cloudflare Turnstile, so form data never leaves my own account.
  • Add an automated accessibility and performance budget to CI.

Built and tested in my own lab. No employer data, code or configuration.