Skip to content

The private fabric

The private fabric is the transport that lets a project on one node reach a model hosted on another, including when the two nodes are on different clouds. It is installed with every data plane and carries traffic only when the control plane plans a route across it.

What it carries

The fabric is a generic substrate. Model binding is its consumer.

Owns Component
Fabric agent, tunnel state, peer authorization, mTLS identity, route state system/private_fabric
Model export and import gateways, the local binding Service model/binding_fabric

A project runtime calls a local Service in its own namespace. Whether that Service is backed by a model on the same node or a gateway across the fabric is resolved below it.

Routes are private by construction

A route carries public_exposure: false and the route class xratu_managed_private_fabric. A binding that asks for public exposure is rejected at planning time with public_model_binding_route_rejected, and a route whose observed state reports public_exposure_detected moves to blocked.

The rendered NetworkPolicy allows ingress to the fabric agent from xratud pods only, on the gRPC port:

kind: NetworkPolicy
metadata:
  name: xratu-fabric-private-only
spec:
  podSelector:
    matchLabels:
      app.kubernetes.io/name: xratu-fabric-agent
  policyTypes: [Ingress, Egress]
  ingress:
  - from:
    - podSelector:
        matchLabels:
          app.kubernetes.io/name: xratud
    ports:
    - protocol: TCP
      port: 7443

A route is two assignments

When the control plane plans a fabric route, it emits one assignment to each node. Each node establishes its own half.

sequenceDiagram
  participant MN as Model node
  participant CP as Control plane
  participant PN as Project node
  CP-->>MN: model.binding_route.export.v1
  CP-->>PN: model.binding_route.import.v1
  MN->>MN: bring up the export gateway
  PN->>PN: bring up the local Service, dial the gateway
  MN->>CP: readiness evidence
  PN->>CP: readiness evidence

Both assignments carry the source and destination pool and node id, the trusted node identities for the pair, a policy digest, and SPIFFE references derived from the binding. Both nodes derive the same names from the binding id:

mbind-<token>            the local Service the project calls
mbind-export-<token>     the gateway in front of the model
mbind-import-<token>     the gateway the project's node dials

Peer authorization

Before a route is reconciled, the node checks the peer pair against three lists carried on the assignment:

List Refusal when the peer is outside it
allowed_destination_dataplane_identities destination_dataplane_identity_not_authorized
allowed_source_dataplane_identities source_dataplane_identity_not_authorized
trusted_dataplane_identities dataplane_identity_outside_bootstrap_trust

The trust chain for the pair is bootstrap_enrollment: both ends are nodes that enrolled into the same organization under its bootstrap authority. A node that never enrolled there cannot be a fabric peer.

Route state

A node reports one of four states for each route:

State Meaning
route_pending The assignment is being reconciled
route_ready The route is established and its readiness evidence is complete
route_blocked Reconciliation refused, with a failure reason
teardown_ready The revoke assignment has been reconciled

Teardown is its own contract, model.binding_route.revoke.v1, so a route is removed by assignment rather than by expiry.

Where it sits relative to the other lanes

flowchart TB
  RT["Project runtime"] -- "local Service" --> FA1["Fabric agent<br/>project node"]
  FA1 -- "UDP 51820" --> FA2["Fabric agent<br/>model node"]
  FA2 -- "export gateway" --> M["Model runtime"]
  DP1["xratud"] -- "gRPC 7443" --> FA1

The fabric is separate from the kernel control lane. The kernel lane carries runtime.* operator commands between a node and its own runtimes; the fabric carries binding traffic between nodes. See Component topology.