Identity continuity¶
A node's identity lives on durable storage, not in its process. That is what makes a restart a continuation and what lets a node keep working while the control plane is unreachable.
What is persisted, and where¶
Everything the node needs to be itself sits under /var/lib/xratu/identity:
| File | Holds |
|---|---|
xratud.bootstrap.json |
The bootstrap seed from the exchange: identity set, runtime credential, invitation scope, discovery pin, watch revision |
xratud.identity.json |
Runtime identity state |
xratud.runtime.cache.json |
Cached runtime state |
The design gives three reasons this exists: a restart should not mean identity loss, ordinary scale-down and scale-up should converge without manual re-enrollment, and the control plane needs to be able to distinguish continuity from replacement.
What the volume guarantees¶
flowchart TB
V["Durable volume<br/>/var/lib/xratu/identity"] --> R["Restart<br/>same installation, same dataplane_uuid"]
V --> S["Reschedule<br/>same node returns"]
V --> D["Control plane unreachable<br/>node keeps running on cached state"]
X["Volume lost"] --> NEW["New installation identity<br/>enrols as a new node"]
A restart keeps identity. The installation identity is read back, the node
re-exchanges, and the control plane reuses the same dataplane_uuid and
enrollment_uuid. See
Re-enrollment and idempotency.
Work survives a disconnection. A node holding its assignment and its materialised inputs continues, and reconciles when the control plane returns. The status reporter outbox holds what could not be sent.
Losing the volume is a replacement. With the installation identity gone the node arrives as new. Retire the previous enrollment before reusing its label.
This is why the data plane's durable volume and its retention policy are part of installing a node rather than an operational afterthought. See Durable runtime state.
The discovery pin¶
The seed carries a discovery block recording the terms the node joined under:
| Pinned value | What it fixes |
|---|---|
active_trust_bundle_revision, active_trust_bundle_digest |
The trust bundle in force at join |
cp_instance_uuid, cp_identity_revision |
Which control plane instance admitted it |
transport_protocol_version, assignment_schema_version |
The protocol it speaks |
tenancy_policy_revision, tenancy_policy_source_spec_digest |
The tenancy policy it was admitted against |
max_tenants, max_active_dataplanes_per_tenant, max_active_runtime_instances_per_dataplane |
The quotas in force |
A node presenting credentials from a different control plane identity is rejected on identity drift rather than quietly accepted, and a runtime credential whose policy revision no longer matches the organization's is refused at registration. Both comparisons read the pin.
Instance identity is deliberately not continuous¶
One value in the set is meant to change on every start. The
dataplane_instance_uuid is the running process, and the runtime credential is
bound to it, so a credential from a previous process cannot be used by the
current one. Continuity applies to the node; fencing applies to the process.
Inspecting it¶
The node-local lifecycle commands read the seed to find out which node they are acting on, which is why they run on the node and take no arguments:
Their required seed fields are control_plane_base_url, actor_id,
auth_token, dataplane_uuid, dataplane_instance_uuid and enrollment_uuid.
A seed missing any of them is what a "cannot resolve identity" failure on the
node means. See
Manage an enrollment over its life.