Skip to content

Re-enrollment and idempotency

A node that has enrolled and comes back exchanges again. When its installation identity is unchanged, the control plane recognises it and reuses what it already issued rather than creating a second node.

The decision

flowchart TB
  X["Exchange arrives"] --> Q{"Active enrollment for this<br/>dataplane_installation_uuid?"}
  Q -->|yes| R["Reuse enrollment_uuid<br/>and dataplane_uuid"]
  Q -->|no| N["Issue new enrollment_uuid<br/>and dataplane_uuid"]
  R --> T["Issue a fresh runtime credential"]
  N --> P["Record pending, then active"]
  P --> T

The installation identity is the whole basis of the decision. It is persisted by the node on durable storage and survives restarts, which is what lets the control plane distinguish continuity from replacement.

What is reused and what is fresh

Value On re-enrollment
dataplane_installation_uuid Unchanged, supplied by the node
dataplane_uuid Reused
enrollment_uuid Reused
Enrollment state Stays active, no new transition
dataplane_instance_uuid New, this is a new process
Runtime credential Freshly issued, bound to the new instance
Node label Must match the active enrollment's

The audit record marks the difference explicitly with idempotent_identity_reuse, so the history distinguishes a node coming back from a node arriving.

What a re-enrollment still requires

Idempotent identity does not mean an unchecked path. A returning node presents a valid invitation like any other, and the same admission applies:

Requirement Failure when unmet
A valid, unconsumed invitation DATAPLANE_ENROLLMENT_INVITATION_CODE_INVALID or ..._REPLAYED
Matching governance revision 409 DATAPLANE_ENROLLMENT_TRUST_CHAIN_INVALID
The same node label 409 DATAPLANE_ENROLLMENT_NODE_LABEL_CONFLICT
Scope parity on identity reuse 409 identity reuse requires exact tenant_scope/dataplane_pool parity

That last check is why a returning node cannot change pools by re-enrolling. An exchange that requests an existing dataplane_uuid must match an active enrollment whose organization and pool are exactly the invitation's.

Why scale-down and scale-up converge

The durable installation identity means an ordinary restart, a pod reschedule, or a scale-down followed by a scale-up all look like the same node returning. No operator step is needed to restore identity, which is what makes routine cluster operations safe to perform on an enrolled node.

A node rebuilt from empty storage is a different case: its installation identity is gone, so it arrives as a new node and receives new identity. If it reuses its old label, the previous enrollment has to be retired first. See Node labels.

Replacing rather than continuing

To replace a node deliberately, retire its enrollment and enrol the replacement as new. Retiring closes the old record and releases its label, and the replacement gets its own dataplane_uuid and enrollment_uuid. See Manage an enrollment over its life.