Waqas Ali Portrait

Waqas Ali

|ResumeCareerProjectsPosts

hub

November 27, 2026


One small server that hosts every side project I run: Woodshed, life, mailbox, StudentBase and a few off-the-shelf apps. The operating system is declared in the repo and the box applies it by itself. Each app lives in its own repo and ships through a single locked deploy door, so adding a project is an entry in hub and a manifest in the app, with no DNS change, no certificate step and no SSH key stored in CI.

App repos deploy through a keyless door into the hub server, where Traefik routes *.waqasali.dev to each app under /srv, backed up hourly with restic.

Links

How it works

  • Declared OS. NixOS on a Hetzner VM, defined in a flake. comin pulls main every minute and only deploys fast-forwards of commits signed by my key, so an old commit can't roll the box back.
  • A deploy door instead of deploy keys. App CI proves which repo it is with GitHub's OIDC token (opkssh), and that login can run exactly one command: deploy its own app. Apps send a manifest that can only say safe things (images, environment, state under ./data, routes to their own hostnames), and the door writes the compose file and routes from it. There's no way to ask for a privileged container, a host namespace or the Docker socket.
  • Wildcard DNS. *.waqasali.dev points at IPs that outlive the server, and Traefik gets a Let's Encrypt certificate per host, so a new subdomain works the moment an app names it.
  • Secrets stay encrypted in each repo (sops + age) and are only decrypted on the box at deploy time. A compromised app repo can't read or deploy another app's.
  • Hourly backups of every app's data with restic, with consistent copies of Postgres and SQLite first. A fresh box restores its data and redeploys every app by itself, with no clicks.

warden

The apps on hub share one sign-in: warden, a small OAuth 2.1 authorization server written in Rust. Claude connects to an app's MCP endpoint, is sent to warden, and approves with a passkey; the app's own web page signs in the same way. The apps keep no passwords, sessions or OAuth state, and verify warden's tokens offline.

  • Approving is signing in. No passwords: "Approve" is a passkey check bound to that one request, and an approval page only works in the browser that opened it.
  • Narrow tokens. Short-lived EdDSA JWTs scoped to a single app, PKCE on every code, and redirects only to Claude or the app itself.
  • Rotating refresh tokens. A refresh token presented twice means it was copied, so the whole grant is revoked.

Technical Details

  • NixOS (flakes), Terraform on Hetzner Cloud and DigitalOcean (DNS, Spaces)
  • Docker Compose, Traefik, Let's Encrypt
  • GitHub Actions with OIDC-based SSH (opkssh), signed commits only
  • sops + age for secrets, restic for backups
  • warden: Rust (axum, webauthn-rs, SQLite)