Re-enrollment idempotency¶
A node that starts again after enrolling is recognised twice: once on the node, where a valid seed skips the exchange entirely, and once on the control plane, where an exchange from a known installation reuses the identity it already issued. This page is both layers and the one condition that stops either.
For what the control plane reuses and the refusals an exchange can meet, see Re-enrollment and idempotency.
Two layers¶
flowchart TB
subgraph NODE["THE NODE, init container"]
direction TB
CHK{{"Valid seed on disk,<br/>continuity holds?"}}
CACHED["joined_cached<br/>no exchange"]
EXC["Exchange<br/>installation identity sent"]
CHK -->|"yes"| CACHED
CHK -->|"no seed"| EXC
end
subgraph CP["CONTROL PLANE"]
direction TB
REUSE{{"Active enrollment for this<br/>installation identity?"}}
SAME["Same dataplane_uuid,<br/>same enrollment_uuid"]
NEW["New dataplane_uuid,<br/>new enrollment_uuid"]
REUSE -->|"yes"| SAME
REUSE -->|"no"| NEW
end
EXC --> REUSE
CHK -.->|"mismatch"| STOP["Container fails:<br/>ENROLLMENT_IDENTITY_STATE_MISMATCH"]
The node's layer handles every ordinary restart, and the control plane's layer handles an exchange from a node whose seed is gone but whose installation identity survived. A mismatch between seed and identity state stops the node in the first layer, before anything is sent.
Layer one: the node skips the exchange¶
A restart, a reschedule with the volume, and a scale-down followed by a
scale-up all find the seed where the previous run left it. The init container
validates it, compares it with the identity state, and reports joined_cached.
Two consequences follow for an operator. No invitation is consumed by a restart, so one invitation per node label covers that node's whole life on its volume. And the control plane sees no enrollment activity for a restart, only a new registration from the returning process.
Layer two: the control plane reuses identity¶
An exchange from an installation identity with an active enrollment returns the
same dataplane_uuid and enrollment_uuid, a new process identity, and a fresh
runtime credential. The audit record marks it idempotent_identity_reuse.
The exchange still passes the full admission path: a valid invitation, the
organization's current governance revision, the same node label, and exact
tenant_scope and dataplane_pool parity with the active enrollment, so a
node's pool is fixed by its active enrollment.
The stop condition¶
The node refuses to proceed when the seed on its volume and the identity state
beside it disagree on any shared identity. The init container exits with the
reason ENROLLMENT_IDENTITY_STATE_MISMATCH and writes the field to its log:
A volume in that state holds a seed issued to one identity and a record of another. Both files are the node's own, so the resolution is on the node: restore the volume the seed was issued with, or replace the node by retiring its enrollment and starting it on an empty volume. See Manage an enrollment over its life.
When a new identity is the result¶
A node receives a new dataplane_uuid only when its installation identity is
new: the volume was lost, or the node was deliberately replaced after its
enrollment was retired. Ordinary restarts, outages and control-plane
unavailability are reconnect-only, and identity replacement is reserved for the
revoke, retire and tombstone path or an intentional disaster cutover.