Roadmap¶
Ordered by value, not by effort. Nothing here is promised for a version.
Two conventions in what follows:
- A release note describes what an operator can now rely on, not what changed in the source. The
per-commit record lives in
CHANGELOG.md. - Where a version answers a design question, it names the ADR that recorded the question. The ADR is the reasoning; this page is the outcome.
Done (M0–M4)¶
Skeleton and ADRs, SSH front end (session/exec/-L/-R), lease manager with ttl/grace, warm pool,
the four provision shapes (claims, workloads, endpoints, command), adoption after restart,
/healthz and /metrics, and a real-cluster acceptance run with a non-default client identity.
v0.1 — the lease works (M1–M3)¶
- SSH front end: publickey auth, session/exec,
-L,-R, sftp passthrough. - Lease manager with
ttl/grace/renewal and the identity table. - Kubernetes backends:
claims(a controller hands one over) andworkloads(we create the pod); warm pool refill. - Startup adoption of live instances;
/metricswith real counters.
v0.2 — usable by someone else (M4–M5)¶
Done: the endpoints backend (called static until 0.3.0), an end-to-end run with a real client identity, failure-path tests
(docs/acceptance/2026-11-17-m5-hardening.md), and a runbook written from the two defects the cluster
exposed.
Closed on 2026-11-17: the container image and kubectl apply -k path were executed end to end and
recorded in acceptance/2026-11-17-deploy.md. Still open everywhere else they used to be dry-run only
(no container runtime in the build environment); instance-killed-mid-session and clock-jump injection
remain untested.
v0.3 — multi-replica (design note; the deliverable shipped as v0.7)¶
This version never produced a release of its own. It was a design note for a real bottleneck — one process holding the truth — and it listed two ways out:
- Lease objects (
coordination.k8s.io/Lease): each identity's lease becomes a Lease object, the holder renews it, another replica may steal it after expiry. - Instance annotations + optimistic concurrency: write the identity into the instance's annotation with
resourceVersion, and whoever loses the race retries with a fresh instance.
Both need one shared property: the client must be able to find the replica that holds its lease. The note guessed a headless Service with client-side hashing, or a consistent-hash ring in DNS, and called that the expensive part.
The first option shipped in v0.7 as ADR-0016, and the routing problem turned out to have a cheaper answer
than the note expected: put the leader's address in the election Lease's holderIdentity and have followers
forward the raw connection. The second option was dropped rather than deferred — it survives gateway
restarts without a separate object, but the atomicity is weaker than the problem needs, and a second
mechanism for the same job is a second thing to get wrong.
v0.4 — more infrastructure¶
docker(local sockets, development).- A second Kubernetes cluster as capacity extension, and machines behind a jump host (the gateway dials through, identity preserved).
Both of those are provision: command material today — a program that creates the instance and prints
its address — which is the point of the escape hatch: new infrastructure should not require a new driver
unless it also needs a new shape.
v0.5 — the table can live in the cluster¶
Until this release every identity → instance binding was memory, so a restart cold-started every identity
and left whatever it had been using Running and unreferenced. lease.store: crd puts the bindings in
ByreLease objects (ADR-0013), and three properties follow:
- A restart rebuilds the table instead of cold-starting. Adoption consults the store first and the instances second, so a row that disagrees with an annotation resolves in the store's favour; a row whose instance is gone is dropped.
- Deletions are watched, not polled. An instance removed out of band releases its lease within seconds, and the watch re-subscribes when the stream ends rather than quietly going deaf.
- An instance that answers the handshake and then refuses every session is replaced. Three consecutive refusals is a different failure from an unreachable port — a liveness check calls it healthy while no shell ever opens — so it is counted and the instance recycled, with the refusal still returned to the caller.
The store is opt-in and degrades to annotation recovery rather than failing startup. That is deliberate: the
gateway is every profile's terminal, and a permissions mistake should not take it down. The cost is that
lease store kind=crd in the startup log is not proof the store works; handbook/operations.md lists what
is.
Adoption is also limited to the identities this process serves, which is a behaviour change: two deployments sharing a namespace and a warm pool used to be able to steal from each other.
v0.6 — the handle is stable; the instance behind it is not¶
A claim is a stable handle on purpose — the sandbox behind it is allowed to be replaced — but v0.5 re-read
only the name on reuse, never the endpoint it now advertised. Every reconnecting client was handed the old
FQDN while byre_lease_dead_instance_total stayed at zero: two identities lost their terminals for 28
minutes with every dashboard green.
Acquire now calls an optional backend.Refresher on the reuse path (ADR-0015); the claims backend re-reads
the claim and recomputes the endpoint from its current status, updating the lease's address in place. Same
identity, same lease, same client files — the instance is simply the new one. Dropping the lease instead was
rejected: it would reset the per-identity refs count and drain state and force a client teardown for a
change the client cannot see.
The same incident exposed a measurement gap worth naming: leases adopted from their annotation alone were
never written to the store, so byre_leases_unpersisted counted only failed writes, not writes that were
never attempted. adopt() now persists what it takes over.
v0.7 — more than one replica is safe¶
Until this release the second replica was a documented trap: both processes adopted the same object for the same identity, both believed they held it, and both handed the same instance to a client — with every process's own log looking correct. ADR-0010 had recorded the gate since 2026-11-17 ("leader election or CAS, and here is why"); this release satisfies it with the election half (ADR-0016).
ha.enabled: truemakes the holder of acoordination.k8s.ioLease the only process that creates, binds or releases an instance. Timings are the control plane's own and are deliberately not tighter: a false failover costs two leaders for one renewal window, which is the failure the gate exists to prevent.- A follower forwards the raw connection before the SSH handshake. It parses no SSH, resolves no
identity, and touches no lease — which is what makes it disposable. The leader's address travels in the
Lease's
holderIdentity, so no headless Service is needed, and with no leader published a follower refuses rather than serving (serving would make it a second writer). - Losing the lease stops the process leading, not the process. Open sessions keep working and new connections are forwarded; exiting would drop clients for a role change they cannot see.
Known limits, stated as limits: election coordinates allocation, not routing — an open SSH session stays on
the pod that started it, so restarting the leader ends that session (the client reconnects and re-attaches to
the same instance). During a leader change, connections are refused for up to one lease_duration.
Store.Watch still has no caller, so deleting a ByreLease out of band releases the lease on the next
sweep, not immediately.
Two replicas also need one shared host key — a ReadWriteOnce volume cannot be mounted twice — and a
drain must not take both, hence hostKey.existingSecret and a PodDisruptionBudget.
v0.8 — the clock survives, the pod says whose it is, and a restart stops locking people out¶
Four defects in one release line, all of the same shape: something true in memory was assumed to be true on disk or on the object.
- The idle clock is durable (ADR-0017). It lived only in memory and recovery initialised it to "now",
which made
ttlmeasure "time since the last rollout" rather than "time since use". Measured on a live cluster: a sandbox idle for 4.5 days against a 24h ttl, withbyre_oldest_idle_lease_age_secondsequal to the process's own uptime.ByreLease.status.lastSeennow carries the clock and recovery starts from it. A lease written before the field existed starts counting at adoption, not at the instance's creation time — the honest bound, and one ttl of grace is the cost. - A sandbox pod can say whose it is. The claim carried the identity; the pod carried whatever constant
the SandboxTemplate declared, which was the same for every identity. The gateway now writes the identity
to
spec.additionalPodMetadata.labels(ADR-0018). - An identity label must be namespaced. The controller rejects a label key with no domain prefix, and it
rejects the whole claim —
Ready=False, reason=InvalidMetadata— so a naturalhermes.profile: engproduced "cannot connect", not "label missing".-check-confignow validates every label key against the controller's rules before rollout, andidentities[].annotationsexists because annotations face only a three-domain blocklist and can carry the unqualified key. - A CRD field has to be declared in every copy of the schema. With
preserveUnknownFields: falsethe API server prunes an undeclared field, sostatus.lastSeenwould have been silently dropped andadoptwould have read zero — reaping live leases on the first deploy. CI now fails when the three copies (deploy/crd/,charts/byre/crds/, and the site's downloadable copy) diverge.
v0.8.7 closes the line with the one that had been latent longest: a restarted sandbox locked its profile
out of its terminal (ADR-0006). accept-new is trust-on-first-use — an unknown host is recorded, but a
known host presenting a different key is refused exactly like strict — and every pod restart regenerates
its host key, so the next dial failed with knownhosts: key mismatch and stayed failed. The fix
distinguishes ownership instead of weakening the check: backend.Instance.ManagedHostKey is set only by the
Kubernetes backend for pods it created, and only there is a changed key read as "the pod was rebuilt" and the
stale line replaced. A host an operator provisioned by hand still fails hard, because that is the event
known_hosts exists to catch.
One thing worth stating because the documentation got it wrong first: a persistent home directory per
identity is implemented. volumes: in the config gives each identity a claim named after its stable name
(labelled byre.io/home), so rotating a key reattaches the same home instead of losing it. It rules out the
warm pool for that backend — a pooled pod is created before its identity is known, and a pod's volumes are
fixed at creation time — which is the trade, not a blocker. This entry used to sit under "Deliberately not
planned" with an **Implemented** marker in it, which is the kind of contradiction a page like this
accumulates when only the top of it is maintained.
Deliberately not planned¶
- A web UI. The audience is automation; a UI would add an auth surface larger than the product.
- Per-identity quotas and billing. Belongs to a scheduler, not to a transport.
- Reimplementing SSH in a browser or a custom protocol. Standard SSH is the contract.
Open, and named as open¶
- No automated end-to-end gate. The cluster runs are executed by hand and recorded under
docs/acceptance/. A test that spins a real cluster, kills an instance mid-session and asserts the client survives is the single highest-value thing this project does not have: every severe defect so far — v0.6's stale FQDN, v0.8's in-memory clock, v0.8.7's host key — was found by a human noticing that a profile had lost its terminal, not by CI. - A second replica is safe; routing is not replica-aware. v0.7 elects one writer and forwards new
connections, but an open SSH session stays on the pod that started it.
limits.mdstates why that is the boundary rather than a bug. - Instance-killed-mid-session and clock-jump injection remain untested (carried since v0.2).