Skip to content

What 1.0 promises

This page exists because a version number without a stated promise is a feeling. It lists what breaks semver and what does not, so that "minor upgrade" means something concrete for whoever is running this.

Stable: a breaking change here needs a major version

Configuration

Every key below, with its current meaning. Adding a key is a minor change; changing what an existing one means, or removing it, is a major one.

section keys
top level listen, host_key
lease ttl, grace, pool_size, store, namespace
ha enabled
backends[] name, provision, namespace, kubeconfig
backends[].provider (claims) template, warm_pool, api_group, api_version, resource, object_kind, endpoint_field
backends[].provider (workloads) image, start_command, ready_timeout, run_as_root, resources, volumes
backends[].provider (shared) allowed_label_domains
backends[].ssh port, user, private_key, host_key_policy
identities[] fingerprint, backend, labels, annotations
identities[].volumes size, storage_class

Two of those carry semantics worth stating separately, because they are the ones people reason about:

  • lease.ttl and lease.grace measure idle time since the last use, not time since the last restart. A gateway restart does not prolong a lease. This holds for leases written before the durable clock existed too — they start counting at adoption.
  • host_key_policy: accept-new records an unknown host and refuses a known host that presents a different key, except on an instance byre created itself (where a new key means the pod was rebuilt). strict refuses both. A hand-provisioned host with a changed key fails under both. This will not be relaxed to accommodate a convenience.

Command line

byre --config, --listen, --check-config, --version, --allow-ephemeral-hostkey, --shutdown-delay, plus the default config path config.yaml. --check-config refusing a configuration is part of the contract: it must keep rejecting what the runtime would reject.

The ByreLease CRD

byre.io/v1 with spec and status as shipped. status.lastSeen in particular is load-bearing — removing it would resurrect the defect where a restart gave every lease a fresh ttl.

A field added to the schema is a minor change. A field the schema does not declare is pruned by the API server, so "we will just write it and see" is not available; all copies of the CRD (deploy/crd/, charts/byre/crds/, and the site's downloadable copy) are byte-identical and CI fails when they diverge.

The wire

SSH on the listen port: publickey authentication, session/exec, -L, -R, sftp passthrough. The client's public key is the identity, and a reconnect inside the lease window returns the same instance. Clients are standard ssh; there is no bespoke protocol and none is planned.

The command backends

acquire prints an address, list prints what exists, release takes one away. Exit codes and the JSON shape are contract, because anyone's provisioning script depends on them.

Not stable: may change in a minor version, and you should not depend on it

  • Metric names and labels. byre_* will be renamed or re-labelled when a name turns out to measure the wrong thing. Dashboards should be treated as code that needs updating.
  • Log line shape. Structured logs stay structured, but the message text and field names change when a message turns out to be misleading.
  • Go package paths and types. Nothing outside cmd/byre is a library API. go get works so the binary can be installed with go install; it is not a promise that internal/ stays put.
  • Helm chart values not listed above (probes, annotations, labels on the Deployment). Chart-only knobs move with the chart.

Deliberately outside the promise

  • Instance contents. byre guarantees which instance a client gets; it says nothing about what is inside it. An instance replaced after its lease expired starts empty — see Limits.
  • Continuity across a lease expiry. The gateway guarantees the same instance only inside the lease window. That is a limit of the design, not a bug waiting to be fixed.

How this page is enforced

Three things keep it honest rather than aspirational:

  1. test/e2e/k8s.sh asserts the behaviours above against a real cluster (same identity → same instance, adoption, host key rotation, -L, isolation). A minor release that breaks one of them is red before it ships.
  2. scripts/check-publishing.py and mkdocs build --strict keep the documentation itself from drifting — including that no published page links into the private tree.
  3. scripts/prose-metrics.py ratchets the prose, so this page cannot quietly grow into a wall of bold text that nobody reads.

If a change cannot be made without violating a line above, it is a major version. That is the promise.