Skip to content

Bootstrap identity reference validation

Every time xratud starts, it asks the control plane to describe itself and compares the answer with what the node was told at enrollment. A control plane that answers with a different trust bundle, a different identity, a different tenancy policy, or an older protocol is refused before the node registers. This page is that comparison, field by field, and the three reasons it refuses with.

The comparison

flowchart LR
  subgraph NODE["THE NODE"]
    direction TB
    PIN[("Seed discovery pin<br/>written at enrollment")]
    V{{"Discovery validation<br/>at every start"}}
    PIN -->|"what was promised"| V
  end
  subgraph CP["CONTROL PLANE"]
    direction TB
    D["GET /v1/system/dataplane/discovery"]
  end
  REG["Registration"]
  V -->|"request: the pinned versions and identity"| D
  D -->|"answer: what it serves now"| V
  V -->|"all four checks pass"| REG
  V -.->|"any check fails"| STOP["xratud does not start"]

The pin on the left was fixed when the node enrolled, and the answer on the right describes the control plane as it runs now. Registration is reachable only through the validation between them, so a node that registered is one whose control plane matched its pin on this start.

What the node sends

The request carries the node's own view, read from the seed's discovery block:

dataplane_product_version
transport_protocol_version            dataplane.v1
assignment_schema_version             assignment.v1
credential_issuer_contract_version    system.runtime_identity_issuer.contract.v1
cp_instance_uuid, cp_identity_revision

Four checks

The trust pin. The seed's trust_anchor_source must be one of the three approved sources. The active trust bundle revision and digest in the answer must equal the pinned ones, and both digests must have the form sha256:<64 hex>. A control plane that has moved to a new trust bundle since the node enrolled is refused with BOOTSTRAP_IDENTITY_REF_DISCOVERY_TRUST_PIN_MISMATCH.

The version sets. The answer lists the protocol versions and assignment schema versions the control plane serves. The node's requested versions must be members of both sets.

The identity and policy pins. The answer's cp_instance_uuid and cp_identity_revision must equal the pinned ones, and so must its tenancy_policy_revision and tenancy_policy_source_spec_digest. A control plane restored under a different identity, or running a different tenancy policy than the one the node was admitted against, fails here.

The compatibility floor. The answer's compatibility window must be exactly N-1, N, N+1, and the node's protocol, schema and issuer versions must each be within one minor version of the window's minimums, in the same version family. The transport profile must equal the minimum profile, https-json.

The three reasons

Reason Means
BOOTSTRAP_IDENTITY_REF_DISCOVERY_CONTRACT_INVALID A field is missing or malformed: the request tuple, a trust pin, a digest, or the compatibility window
BOOTSTRAP_IDENTITY_REF_DISCOVERY_TRUST_PIN_MISMATCH The control plane's active trust bundle differs from the pinned one
BOOTSTRAP_IDENTITY_REF_DISCOVERY_DOWNGRADE_REJECTED A version is outside the served sets or the window, or the identity or tenancy policy pin differs

DOWNGRADE_REJECTED covers both an older protocol and a changed pin, because each is a control plane offering the node different terms from those it enrolled under. The message names which pin or version differed. For what the pin fixes at enrollment, see Identity continuity.

What the control plane answers

The discovery answer is system.dataplane_discovery.contract.v1:

discovery_version
cp_instance_uuid, cp_identity_revision
tenancy_policy_revision, tenancy_policy_source_spec_digest
max_tenants, max_active_dataplanes_per_tenant, max_active_runtime_instances_per_dataplane
transport_profile                https-json
protocol_versions, assignment_schema_versions
compatibility_window             supported_minor_window and the minimum versions
active_trust_bundle_revision, active_trust_bundle_digest
rate_limits                      watch 120, pull 240, report 480 per minute
reason_codes

The same compatibility window is re-checked on every registration and watch. See Protocol handshake and compatibility gating.

Namespaced references

References in the bootstrap contract that name a Kubernetes object have the form <prefix><namespace>/<name>. The namespace must be a valid Kubernetes namespace name, lowercase letters, digits and hyphens, starting and ending with a letter or digit, and the name must be present. A reference that fails either is refused as an invalid argument naming the field, before anything is resolved against it.