Tenant-scoped bootstrap authority¶
The governance row that reconcile writes is consulted at three points in a node's life. Each one reads the row for the node's organization and refuses the operation when the row is missing or when the node's credentials disagree with it.
flowchart TB
G["Governance row<br/>for one organization"]
G --> A["Invitation mint<br/>quotas, pool, revision stamp"]
G --> B["Enrollment exchange<br/>quotas, revision equality"]
G --> C["Runtime registration<br/>policy parity, scope parity, instance quota"]
A --> B --> C
At invitation mint¶
Minting resolves the row, then admits against it.
The row must exist. A missing row produces
409 DATAPLANE_ENROLLMENT_DISCOVERY_REQUIRED.
policy_revision and policy_source_spec_digest must both be present, or
the mint is refused as unactivated tenancy policy:
409 SYSTEM_TENANCY_POLICY_LOCKED
enrollment admission requires immutable tenancy policy activation
from bootstrap control-plane spec
The tenant quota applies. A new organization is admitted only while the
count of organizations holding active enrollments is below max_tenants:
The data plane quota applies. Active data plane identities for the
organization must be below max_active_dataplanes_per_tenant:
The pool must already exist, and is created separately:
404 DATAPLANE_ENROLLMENT_POOL_NOT_FOUND
dataplane_pool does not exist for tenant_scope;
create it explicitly before invitation mint
The invitation is stamped with the organization's current
governance_revision and its tenant_scope and dataplane_pool. Lifetime is
clamped to between 60 and 7200 seconds, defaulting to 900.
At enrollment exchange¶
The node presents the invitation. The exchange resolves the row again, reapplies the quotas, and adds the check that ties the invitation to the row that minted it:
expected_governance_revision = int(governance_doc.get("governance_revision", 0) or 0)
consumed_governance_revision = int(consumed.get("tenant_governance_revision", 0) or 0)
if (expected_governance_revision <= 0
or consumed_governance_revision != expected_governance_revision):
raise_capability_error(status_code=409,
code=contracts.SYSTEM_DATAPLANE_ENROLLMENT_REASON_TRUST_CHAIN_INVALID, ...)
Equality is exact in both directions, so an invitation minted before the latest reconcile is refused, as is one minted against an organization whose row was never written.
Identity reuse is governed here too. An exchange that requests an existing
dataplane_uuid must match an active enrollment, and that enrollment's
tenant_scope and dataplane_pool must match the invitation's exactly:
At runtime registration¶
The registering runtime carries the policy identifiers it was issued under, and both must equal the organization's current values:
| Credential field | Compared against | Failure |
|---|---|---|
policy_revision |
Governance policy_revision |
403 RUNTIME_REGISTRATION_POLICY_REVISION_MISMATCH |
policy_source_spec_digest |
Governance policy_source_spec_digest |
403 RUNTIME_REGISTRATION_POLICY_DIGEST_MISMATCH |
tenant_scope, dataplane_pool |
The active enrollment's scope | 403 RUNTIME_REGISTRATION_SCOPE_MISMATCH |
Registration metadata is checked against the same enrollment scope, so the credential and the runtime's own claim about where it is must agree with each other and with the enrollment.
Because policy_revision and policy_source_spec_digest are derived from the
six tenancy policy values, they remain stable across reconciles while those
values are unchanged, and credentials issued earlier keep registering. Changing
a tenancy policy value changes both, and every credential issued under the old
values is refused at registration until reissued.
The instance quota applies. A new runtime instance is admitted while the
data plane's active instances are below
max_active_runtime_instances_per_dataplane, counting instances whose status is
not stale, failed, retired, revoked, or tombstoned:
The runtime actor¶
runtime_actor_id is stored on the row and carried into both bootstrap
documents. It is the identity a data plane runtime authenticates as once
enrolled, and it comes from the first-install bootstrap contract's
identity_profile.document.service_account. Reconcile reads it from store
metadata and stops when it is absent, which keeps a tenant from being granted
enrollment authority before the deployment has a runtime identity to grant.
Reading the authority back¶
The governance row is consumed inside the control plane at the three points above. Confirm it through the reconcile response, which returns every stored field, and through effect: a successful invitation mint proves the row exists, carries an activated policy, and is within quota. See Reconcile tenant-scoped bootstrap authority.