All workAndrew Cates.

Project 38 of 84

Fleetworks

Apex marketing site for fleetworks.dev (the Fleetworks infrastructure control-plane suite) plus the Terraform/IaC and runbooks for the shared self-hosted Zitadel identity hub at id.fleetworks.dev that the Fleetworks apps and, since November 2026, a dozen non-Fleetworks catesworks products federate to.

Status
In progress
Area
Fleetworks Platform Suite
Last activity
2026
Stack
  • Next.js
  • React
  • TypeScript
  • CSS Modules
  • Zod
  • Resend
  • Terraform
  • Zitadel

Highlights

  1. Created 12 per-product Zitadel organizations on a shared self-hosted identity hub through one reviewed Terraform module (for_each, prevent_destroy), each with an org-scoped ORG_OWNER machine user, so product repos manage their own apps and users without instance-admin credentials.
  2. Kept private keys out of shared Terraform state by minting org-scoped JWT-profile keys out-of-band directly into 1Password with 13-month expiry and calendar-driven rotation, documented in an ADR and a repeatable per-org add procedure.
  3. Designed least-privilege AWS SES sending for the identity hub: separate IAM users for hub mail, Uptime Kuma alerts and the zitadel-emails notification worker, each restricted by an ses:FromAddress allow-list (10 From addresses in the policy as of PR #28), with access keys kept out of Terraform state.
  4. Froze the Zitadel SMTP email provider as a guaranteed rollback path for a new HTTP notification provider after finding that in-place SMTP updates wedge Zitadel's projection, and recorded the untested rotation path instead of claiming one.
  5. Registered production OIDC clients for the Fleetworks apps (rolodex, yellow-pages, chorus, helmsman, warden; web and mobile) on the self-hosted identity hub via Terraform (12 zitadel_application_oidc resources), plus App Store review and Lighthouse-CI test identities, supporting each app's cutover to 'Sign in with Fleetworks'.
  6. Turned off hosted self-registration on the hub's default login policy (PR #14, ADR 0001) after asking every product session whether it relied on it; merged the change but held the apply pending a dependent product's org policy.
  7. Replaced never-expiring machine-user PATs in the hub's Terraform with a read-only, dated-expiry design, removed the legacy LHCI seed-bot/login-client PAT resources (152a333, apply pending), and documented a 'targeted applies only' rule because a plain full-root plan would propose destroying the SES identity and id.fleetworks.dev DNS records.
  8. Coordinated a multi-session rollout across about a dozen product repos: 28 numbered PRs in fw-web (22 merged, 6 superseded drafts closed) between 2026-09-14 and 2026-11-14, with each infra change reviewed before an owner-run targeted Terraform apply, plus session dossiers, ADRs and lessons.
  9. Added Next.js segment and global error boundaries and a branded 404 page to the fleetworks.dev apex site, and wrote repo-derived CODING_STANDARDS.md and GLOSSARY.md covering both the site and the identity-hub IaC.