Project 40 of 84
Fleetworks Packages
Shared npm packages (@fleet-works/ui, @fleet-works/suite-nav) for the five-app Fleetworks internal developer platform suite, plus the suite-wide identity layer: local Zitadel stack, the force-SSO Actions V2 gate service, ADRs, and the Zitadel production rollout runbook.
- Status
- In progress
- Last activity
- 2026
- Live
No public deployment.
- Stack
- TypeScript
- React
- pnpm workspaces
- Turborepo
- tsup
- Vitest
- Changesets
- npm Trusted Publishing
Highlights
- Proved a Zitadel token-minting hole (a CreateSession credential plus a CreateCallback credential could mint tokens for any user in any org with no password) and built a dependency-free Node webhook gate on Zitadel Actions V2 that verifies HMAC-signed requests and denies password logins in force-SSO orgs and factorless sessions everywhere.
- Ran a staged production rollout of the force-SSO gate in front of the suite's Zitadel instance: gate live in shadow (log-only) mode per the operator-session report, a pre-enforce hard-gate checklist (paging, backups, PAT controls, break-glass drill), and owner decisions for fail-closed mode and a 3 s target timeout recorded in the runbook.
- Wrote an idempotent register and break-glass script for the gate and rehearsed it on a throwaway real Zitadel v4.16.2 Docker Swarm cluster; the rehearsal caught a defect that would have blocked re-enabling executions after an emergency disable, fixed before any production use.
- Hardened the gate and its tooling through six consecutive review-and-fix PRs (#8 to #14): multi-key signature checks per replica, read-back of every state change, refusal of malformed PAT files, and logging only fixed error codes, never secrets or request bodies; covered by about 80 node:test cases in CI.
- Authored the Zitadel production rollout runbook used by a separate operator session to cut five API hosts over from a high-privilege seed-bot PAT to a least-privilege test-mint machine user (IAM_LOGIN_CLIENT only) and revoke the old credential.
- Proved SAML brokering end to end on a local Zitadel stack (SimpleSAMLphp IdP to Zitadel ACS to standard OIDC tokens), so SAML-only enterprise customers can sign in while every suite app stays OIDC-only; also ran a SCIM capability gate that voided an unsupported identity-matching tier before it was built.
- Wrote and got six fleet-wide ADRs accepted for the five-app suite: no Supabase service-role keys in CI (per-repo drain tokens instead), a common e2e auth shape with a production boot guard, Sentry-first observability on OpenTelemetry conventions, a staged Supabase Auth decommission, and a Kubb transforms rollout.
- Expanded the local Zitadel stack to seed 10 per-app OIDC clients (5 web, 5 native mobile) and shared test identities, giving all five apps and their mobile clients a reproducible local login path.