Bootstrap scope¶
Enrollment authority is granted one organization at a time. The governance table
is keyed tenant_scope text not null unique, and tenant_scope is an
organization UUID, so each organization holds exactly one row and every
enrollment decision reads the row belonging to the organization the node is
joining.
Why the grant is per organization¶
The organization is the boundary a node joins. An invitation is scoped to an
organization and a pool; an enrollment records both; a runtime credential
carries both and is checked against both at registration. Granting enrollment
authority at any wider scope would let a node admitted for one tenant satisfy
the checks for another, because every one of those comparisons resolves through
tenant_scope.
flowchart TB
D["Deployment"]
D --> O1["Organization acme<br/>governance row"]
D --> O2["Organization globex<br/>governance row"]
O1 --> P1["Pools, invitations,<br/>enrollments, runtimes"]
O2 --> P2["Pools, invitations,<br/>enrollments, runtimes"]
The row for acme admits nodes into acme. A second organization needs its own
reconcile before any node can join it, and the command takes the organization
name for exactly that reason:
What is per organization and what is deployment-wide¶
The row is per organization; most of what it stores is copied from deployment-wide values at the moment of reconcile.
| Field | Varies per organization |
|---|---|
tenant_scope |
Yes, it is the key |
trust_bundle_revision, trust_bundle_digest |
Yes, the bundle is built over the organization's documents |
controlplane_hash, dataplane_hash |
Yes, both documents name the tenant scope |
governance_revision, reconciled_by_actor, reconciled_at |
Yes, each organization advances on its own |
policy_revision, policy_source_spec_digest |
No, derived from deployment-wide policy values |
| The six quota and rate-limit fields | No, deployment-wide defaults |
runtime_actor_id, protocol versions |
No, deployment metadata |
cp_instance_uuid, cp_identity_revision |
No, one control plane identity |
Two consequences follow from the right-hand column.
Quotas are per organization in effect, deployment-wide in value.
max_active_dataplanes_per_tenant is counted against one organization's active
enrollments, and every organization is given the same number.
max_tenants is a deployment ceiling, counted across organizations. It
limits how many organizations hold active enrollments at once, and the count is
taken at invitation mint and at exchange:
active_tenants = dataplane_enrollments_store_entry.list_active_tenant_scopes(limit=0)
if tenant_scope not in set(active_tenants) and len(active_tenants) >= int(max_tenants):
raise_capability_error(status_code=409,
code=contracts.SYSTEM_TENANCY_POLICY_REASON_TENANT_QUOTA_EXCEEDED, ...)
At the default of 1, the first organization to enroll a node holds the
deployment's only tenant slot, and reconciling a second organization succeeds
while its first invitation exchange is refused with
409 tenancy policy active tenant quota exceeded. An organization already
holding an active enrollment is exempt from the ceiling, so it keeps enrolling
within its own data plane quota.
Revisions advance independently¶
governance_revision is stored per row and incremented on that row alone.
Reconciling acme leaves globex untouched, and an outstanding invitation for
globex stays valid. Plan reconciles per organization rather than as a
deployment-wide operation. See
Bootstrap reconcile for what the increment does to
outstanding invitations.
Naming¶
tenant_scope in the API and the stored row is the organization UUID. The CLI
takes the organization name and resolves it before the call, and on success
writes that organization into your active profile:
The design documents call this level tenant; the product surface calls it organization. See Organizations.