Skip to content

Installation, instance, and enrollment identity

A node carries four identities, and inside xratud each one is wired into different things: a credential, a cursor, a file name, a backoff seed. Knowing which identity a piece of node state is keyed on tells you what survives a restart, what a replacement loses, and why a credential from a previous process stops working.

For what each identity is and who issues it, see The enrollment identity set.

Where each identity is used

flowchart LR
  subgraph IDS["THE FOUR IDENTITIES"]
    direction TB
    INST["dataplane_installation_uuid<br/>the installed node"]
    DP["dataplane_uuid<br/>the logical data plane"]
    ENR["enrollment_uuid<br/>one join lifecycle"]
    INX["dataplane_instance_uuid<br/>the running process"]
  end
  subgraph USE["WHAT THEY KEY ON THE NODE"]
    direction TB
    EXC["Enrollment exchange<br/>continuity"]
    CRED[("Runtime credential<br/>claims")]
    CUR[("Assignment cursor<br/>stream key, binding, file name")]
    BO["Transport backoff<br/>jitter seed"]
    SEED[("Seed and identity state")]
  end
  INST --> EXC
  INST --> SEED
  DP --> CRED
  DP --> CUR
  DP --> BO
  INX --> CRED
  INX --> CUR
  INX --> BO
  ENR --> SEED

The installation identity keys only the exchange and the identity files, which is why it is the one that decides continuity. The logical and process identities together key everything the node does at run time.

The installation identity decides continuity

dataplane_installation_uuid is created on the node, as dpi-<32 hex>, the first time the init container finds no identity state. It is written to the volume before it is sent, and it is sent on every exchange.

The control plane reuses dataplane_uuid and enrollment_uuid for an active enrollment that has the same installation identity. Losing the volume loses this value, and the next exchange arrives as a new node.

The process identity fences the credential

dataplane_instance_uuid identifies the running process and changes with each new process lifecycle. The runtime credential carries it as a claim alongside dataplane_uuid, and renewal names both:

dataplane_uuid, dataplane_instance_uuid, jti, aud, exp, nbf, issuer_revision

A credential minted for one process instance is bound to that instance, so state left by a previous process cannot act with the current process's authority. See Runtime identity refresh.

The pair keys the node's own state

The assignment cursor's stream key is built from both identities and two fixed components:

dataplane_uuid=<uuid>;dataplane_instance_uuid=<uuid>;dispatch_partition=default;channel_kind=assignment_watch

The cursor file under /var/lib/xratu/cursor is named from the same pair, and the cursor record is additionally bound to dataplane_uuid and the control plane's cp_identity_revision. A cursor is loaded only under the identities it was written for. See Assignment cursor runtime.

The control-plane transport seeds its backoff jitter from the same pair, with the operation name and the attempt number. Nodes fail and retry on different schedules rather than in step, and one node retrying one operation waits the same amount every time for a given attempt. See The control-plane client.

The enrollment identity is the audit subject

enrollment_uuid is required in the seed and compared in the continuity check, and it is the subject of the join, revoke, retire and continuity events the control plane records. On the node its two uses are the seed and that check, so a node's history is read from the enrollment record rather than from node state.

What each change costs the node

Change Installation Logical Enrollment Process
Process restart Kept Kept Kept New
Pod rescheduled with its volume Kept Kept Kept New
Re-enrollment of the same installation Kept Reused Reused New
Volume lost New New New New
Deliberate replacement after retiring New New New New

A new process identity means a fresh runtime credential. A new logical identity means a new node to the control plane, with no history carried over from the node it replaced.