Skip to content

Enrollment

Enrollment is how a node becomes a known member of an organization. A node presents an invitation, the control plane admits it, issues it a stable identity and a runtime credential, and records an enrollment that lives for as long as that node does.

Enrollment answers one question and one only: who this data plane is. What work it does arrives separately as assignments, and where that work belongs is carried by workspace scope on each assignment. The design states the separation directly:

enrollment says who the dataplane is, assignment says what work to do, workspace scope says where the work belongs, and the kernel only executes the handed-off job.

Where it sits

flowchart LR
  R["Bootstrap reconcile<br/>organization authority"] --> P["Pool<br/>placement group"]
  P --> I["Invitation<br/>minted by an operator"]
  I --> E["Exchange<br/>performed by the node"]
  E --> A["Enrollment record<br/>active"]
  A --> RR["Runtime registration<br/>and assignments"]

Everything to the left of the exchange is done by an operator against the control plane. The exchange itself is done by the node on first start, using an invitation that was placed where it can read it.

What the exchange does

The node sends three things: its installation identity, its instance identity, and its node label. The control plane checks the invitation, checks the organization's governance, then issues or reuses identity and returns a bootstrap seed.

Step What the control plane does
Consume the invitation Verifies the code is valid, unexpired and unused
Check governance Confirms the invitation's revision matches the organization's current one
Apply admission Re-checks the tenant and data plane quotas
Check node label continuity Confirms the label is free, or belongs to this installation
Issue or reuse identity A new dataplane_uuid, or the existing one for a known installation
Issue a runtime credential Scoped to the tenant, the pool and the current policy revision
Record the enrollment pending, then active

The response is a seed the node writes to durable storage: its identity, its credential, the invitation scope it joined under, and a discovery block pinning the trust bundle revision and digest, the control plane instance, and the tenancy policy it was admitted against.

The enrollment record

An enrollment is a lifecycle record, not a snapshot. It carries the identity set, the scope it joined under, its state, and evidence of what it was admitted against: the consumed invitation, the hashes of both bootstrap contract documents, and the trust bundle pin.

That evidence is what makes an enrollment auditable after the fact. An operator asking "what terms did this node join under" reads it from the record rather than reconstructing it.

Lifecycle states

stateDiagram-v2
  [*] --> pending
  pending --> active
  pending --> revoked
  pending --> retired
  active --> revoked
  active --> retired
  revoked --> retired
  retired --> tombstoned
  tombstoned --> [*]
State Meaning
pending The exchange has been accepted and identity issued
active The node is enrolled and may register a runtime
revoked Identity withdrawn; the node stops being admitted
retired The enrollment is closed and the node is decommissioned
tombstoned The terminal record, kept for audit

The transitions are a closed set, and one that is not in it is refused with 409 DATAPLANE_ENROLLMENT_ILLEGAL_TRANSITION naming the pair. Movement is one way: a revoked enrollment can be retired, and a retired one tombstoned, and the path back to active is a fresh enrollment.

Failure leaves no partial state

If anything after invitation consumption fails, the consumed invitation is released rather than burned, so a transient failure during the exchange does not cost you the invitation. See Enrollment tokens.

Next