Trust-boundary view
Components
Production control-plane startup requires PostgreSQL, OIDC, transactional email, object-storage signing, package scanning, Stripe configuration, Ed25519 signing keys, a dedicated metrics token, and separate 32-byte encryption keys for each protected class.
Deployment order
- Provision PostgreSQL, object storage, identity, mail, payment, scanning, and secret management.
- Generate independent signing and encryption keys; record rotation and recovery ownership.
- Apply database migrations from the release being deployed.
- Start the control plane and verify health from inside its trusted network.
- Start scheduler and worker classes at compatible versions.
- Pair self-hosted runners outbound and confirm their environment/capability reports.
- Expose public routes through TLS, then exercise authentication, a read-only API call, queue delivery, and one bounded execution.
Build and migrate
Operational checks
- Back up PostgreSQL and test restore, including migration compatibility.
- Alert on queue age, runner capacity, expired leases, failed schedule delivery, signing failures, and repeated authorization denials.
- Keep metrics authentication separate from user and runner credentials.
- Test key rotation and incident revocation before an emergency.
- Preserve correlation IDs across the proxy, control plane, scheduler, and runner logs.