Operating model and availability
- Who operates it? You run the host service or container, supply configuration and keys, and maintain the identity provider and workload dependencies. Management acts on that instance; it does not provide fleet-wide or tenant-scoped administration.
- What survives a restart? With durable storage, sessions and saved-access registrations can survive. Preserve keys and complete evidence repositories too; use the checklist below.
- What happens if an instance fails? Reconnect to the same Bifröst endpoint and sign in on a healthy instance to continue working with the workload data available there. Bifröst sessions are not shared between instances; reconnecting starts a new execution, not the previous shell.2
- Is HA built in? Not built in, but you can provide HA access by running independent instances behind a TCP load balancer such as HAProxy or NGINX stream. Prefer sticky sessions and a redundant load-balancer endpoint.
Choose a deployment
| Deployment | What to plan |
|---|---|
| One supervised instance | Durable storage, backups and a tested restart. Existing connections are interrupted. |
| Independent instances behind a TCP load balancer | Sticky sessions for normal operation; health checks route reconnecting clients to a healthy instance. Use separate repositories and audit signing identities, and make required workload data reachable from each instance. |
| Replacement using an instance's existing state | Coordinate exclusive repository and workload ownership. Test recovery on your actual storage and infrastructure. |
Keep repositories instance-local. Each repository has one writer.1 When replacing an instance using its existing state, prevent the old writer from accessing that state or its workloads first. Local locks are not cross-host fencing; never delete a lock file to force a second writer to start.
Routing and probes
- Prepare the shared endpoint. Configure SSH host keys trusted by your clients. For HTTPS, use TCP/TLS passthrough and provision certificates for the shared domain on every backend.
- Prefer sticky sessions. Keep browser requests and SSH-initiated OIDC approvals on the same instance during normal operation. Configure TCP persistence through HAProxy stick tables or NGINX upstream hashing.
- Monitor each instance. Use readiness checks to take unavailable backends out of rotation.
/readyreports new-access readiness,/statusprocess liveness; also test an actual login.
Restart or recover one instance
In a load-balanced deployment, take only the affected instance out of rotation; healthy instances can keep accepting connections. Keep an independent administration path and define acceptable recovery time and data loss.
- Block new traffic to this instance and stop its writer. Let users finish or disconnect their connections. Allow the configured SSH and HTTP shutdown budgets. A failed readiness probe is not proof that the old process has stopped.
- Copy or restore complete state while stopped: configuration and referenced keys, sessions, journals and signing identities, Recording repositories and ACME storage. Protect backups as credentials; back up workload data separately and keep decryption private keys offline. Remote sealed artifacts alone are not a service backup.
- Check identities and revocations. Retain the matching host and signing keys. An older session backup can restore later-revoked saved access: reconcile it before reopening traffic. Perform upgrades separately from the first recovery attempt.
- Start one writer for the recovered state through its existing host service manager or container supervisor, initially with the same release and configuration. Inspect startup logs and check readiness directly; keep this instance out of rotation during acceptance checks. Resolve key or integrity errors instead of discarding repositories.
- Test before reopening:
- Test workload access over each enabled transport: SSH, SSH over HTTPS and/or browser. Then test eligible saved access. Old browser access and pending logins must be rejected; a reusable session must reach the intended environment, not restore an old shell.
- Verify retained evidence against independent producer trust and check remote delivery, if configured.
- Test revocation and cleanup. Record recovery time and data gaps against your objectives, then return this instance to the pool.
Result: the recovered instance accepts new logins again. With healthy backends available, users can reconnect and continue working while the affected instance recovers; existing shells remain tied to their original instance.
-
Process-lock and crash-reopen tests cover local filesystem ownership and recovery. ↩
-
Instance-boundary tests and saved-access restart tests cover local-service isolation and resumption after restart. ↩