Bootstrap reconcile¶
Bootstrap reconcile is the command that gives one organization the authority to enroll nodes. It computes the control-plane and data-plane bootstrap contracts for that organization, hashes them into a trust bundle, and stores the result as the organization's enrollment governance record.
What the call does¶
sequenceDiagram
participant O as Operator
participant CP as Control plane
participant L as Identity latch
participant S as Governance store
O->>CP: reconcile tenant-governance (tenant_scope)
CP->>CP: require bootstrap operator
CP->>CP: authorize organization.read on tenant_scope
CP->>CP: load runtime actor and protocol versions
CP->>L: ensure control-plane identity latch
L-->>CP: cp_instance_uuid, cp_identity_revision
CP->>CP: build CP + DP bootstrap documents, hash both
CP->>CP: build trust bundle over the two hashes
CP->>S: upsert governance row, increment governance_revision
CP->>CP: append audit record
CP-->>O: status reconciled, with every digest
Each step is a precondition for the next, so a failure names the step that was missing rather than the operation as a whole.
The derived documents¶
The operator supplies one value: the organization. Everything stored is derived.
The control-plane bootstrap document carries the tenant scope, the runtime identity actor, the transport and assignment schema versions, the tenancy policy, and the control-plane identity from the latch.
The data-plane bootstrap document carries the tenant scope, the trust bundle
reference bootstrap-trust://<tenant_scope>/v1, the same protocol versions, and
the same runtime actor.
Both are hashed with SHA-256, and the trust bundle digest covers that pair together with the policy snapshot digest and the signer id.
The pair of hashes is what a node later verifies against. A node holding a bundle built from different documents fails its trust check rather than joining under different terms.
Inputs and where each comes from¶
| Input | Source | Behaviour when absent |
|---|---|---|
runtime_actor_id |
Store metadata, written by first-install bootstrap | runtime_actor_id is required, reconcile stops |
transport_protocol_version |
Store metadata | Falls back to dataplane.v1 |
assignment_schema_version |
Store metadata | Falls back to assignment.v1 |
cp_instance_uuid, cp_identity_revision |
The control-plane identity latch | Latch is established on demand |
| Tenancy policy and rate limits | Deployment mode policy defaults | Defaults apply, listed below |
The tenancy policy values are the deployment's, identical for every organization:
| Field | Default |
|---|---|
max_tenants |
1 |
max_active_dataplanes_per_tenant |
1 |
max_active_runtime_instances_per_dataplane |
64 |
watch_rate_limit_per_minute |
120 |
pull_rate_limit_per_minute |
240 |
report_rate_limit_per_minute |
480 |
policy_source_spec_digest is the SHA-256 of those six values in canonical JSON,
and policy_revision is policy- followed by the first sixteen characters of
that digest. Both are content-derived, so they stay the same across reconciles
while the values stay the same.
Who may run it¶
The actor must pass two independent checks.
A bootstrap operator. The guard requires a named actor authenticated by
token, with the system actor excluded:
if effective_actor == "system":
raise SystemServiceError(status_code=403,
detail="forbidden: non-system bootstrap operator actor required")
Reconcile is an act a person or service account is accountable for, and the
audit record names them in reconciled_by_actor.
Authorised on the organization. The actor needs organization.read at that
organization's scope, which every role holds. An owner from
first tenancy already qualifies.
What is stored¶
One governance record per organization, identified by its tenant scope. The reconcile response returns every field it holds:
| Field | Meaning |
|---|---|
tenant_scope |
The organization this record governs |
transport_protocol_version, assignment_schema_version |
The protocol versions a joining node is admitted under |
runtime_actor_id |
The identity an enrolled data plane runtime authenticates as |
trust_bundle_revision, trust_bundle_digest |
The trust bundle a node verifies against |
controlplane_hash, dataplane_hash |
Digests of the two derived bootstrap documents |
policy_revision, policy_source_spec_digest |
The tenancy policy identifiers stamped into runtime credentials |
| The six quota and rate-limit values | The tenancy policy in force for this organization |
cp_instance_uuid, cp_identity_revision |
The control plane identity from the latch |
governance_revision |
Advances by one on every reconcile |
reconciled_by_actor, reconciled_at |
Who ran it and when |
Re-running it¶
Every run advances governance_revision by one and restamps
reconciled_by_actor and reconciled_at. The advance is unconditional, so a
second reconcile with identical inputs still produces a new revision.
That revision is stamped onto every invitation at mint, and the exchange requires exact equality with the organization's current revision:
409 DATAPLANE_ENROLLMENT_TRUST_CHAIN_INVALID
bootstrap join blocked: invitation governance revision is stale;
run tenant governance reconcile and mint a new invitation
Outstanding invitations are consumed by reconcile. Re-run it when you intend to reissue, and mint invitations after the reconcile rather than before. Nodes already enrolled keep working; the check applies at the exchange, not to live enrollments.
What it makes possible¶
Minting an invitation resolves the governance row first, so an organization without one is refused at the mint step:
409 DATAPLANE_ENROLLMENT_DISCOVERY_REQUIRED
bootstrap join blocked: tenant enrollment governance is not reconciled
for tenant_scope=<organization_uuid>
See Tenant-scoped bootstrap authority for everything the stored row then governs, and Reconcile tenant-scoped bootstrap authority to run it.