Skip to content

Dataplane tenant governance

Tenant governance says which tenants a node may serve and under what limits. It is asserted at two moments, enrollment and runtime registration, so a node that was permitted when it joined is checked again when it comes back.

Four operations

Operation Does
Upsert Records the governance for a tenant
Resolve Reads what is in force
Assert enrollment admission Decides whether a node may enroll
Assert runtime registration admission Decides whether a node may register

The two assertions are separate operations because they answer different questions at different times. Enrollment is a one-time act that creates an identity; registration happens on every startup.

Two admission points

flowchart LR
  N["xratud"]
  subgraph CP["CONTROL PLANE"]
    direction TB
    TG[("Tenant governance<br/>limits in force")]
    G1{{"Enrollment admission<br/>once"}}
    G2{{"Registration admission<br/>every start"}}
    PL["Pull"]
    TG -.-> G1
    TG -.-> G2
    G2 --> PL
  end
  N -->|"enroll"| G1
  N -->|"register"| G2

Both gates read the same governance record, and the second one is on the path to every pull. A limit reduced after enrollment is therefore applied at the node's next start.

Checking twice closes the window where governance changed after a node enrolled. A tenant whose limits were reduced does not keep its previously enrolled nodes registering indefinitely.

Upsert rather than create

Governance is upserted, so re-declaring the same governance is idempotent and declaring new governance replaces the old. Governance is a current statement rather than an accumulating log, and what happened under a previous statement is recorded in the audit trail rather than in the governance record.

The limits it enforces

Discovery publishes the ceilings a node will be held to:

max_tenants
max_active_dataplanes_per_tenant
max_active_runtime_instances_per_dataplane

Publishing them at discovery and asserting them at admission means a node learns its limits before it enrolls and is stopped at them rather than discovering them as unexplained failures. See Dataplane discovery, enrollment, and pools.

The tenancy policy travels in the credential

A node's runtime credential carries the tenancy policy revision and the digest of the spec it came from. An admission decision therefore has the policy identity from the request itself, and a policy change shows as a revision difference. See Runtime identity issuer.

Governance and deployment mode work together

Tenant governance says which tenants and how many. Deployment mode says whether tenant scope is required at all: in shared mode it is required and fail-closed, and in dedicated mode the paths stay scope-neutral. See Deployment mode policy.