Establishing the data plane to kernel link¶
A node dials its own kernels. Before any command is accepted it must resolve the endpoint, present an identity the kernel recognises, agree on the protocol, prove it holds the trust revision the control plane provisioned, and find the kernel ready. This page is that sequence.
The sequence¶
flowchart TB
A["Reconcile the project runtime<br/>Deployment and Service applied"]
B["Resolve a ready replica<br/>from Service and EndpointSlice"]
C["Mutual TLS<br/>SPIFFE SVID on both sides"]
D["Protocol and trust agreement"]
E["Readiness<br/>runtime.health, runtime.status.snapshot"]
F["Link established"]
A --> B --> C --> D --> E --> F
The link's parts¶
flowchart LR
subgraph NODE["THE NODE"]
direction TB
XD["xratud"]
SP["SPIRE agent"]
XD -->|"SVID"| SP
end
subgraph K8S["KUBERNETES"]
direction TB
DEP[("Deployment and Service<br/>applied by xratud")]
EPS[("EndpointSlice")]
DEP --> EPS
end
subgraph PR["PROJECT RUNTIME POD"]
direction TB
K["Kernel<br/>terminates its own TLS"]
end
CP[("Control plane<br/>trust bundle revision")]
XD -->|"applies"| DEP
XD -.->|"resolves a ready replica"| EPS
XD ==>|"mutual TLS, runtime.*"| K
K -->|"SVID"| SP
CP -.->|"accepted digests"| K
Every part the link needs is something the node applied or something both ends obtained from a declared source: the endpoint from objects the node wrote, the identities from the SPIRE agent, and the trust revision from the control plane.
Nothing here is discovered. The endpoint comes from Kubernetes objects the node itself applied, and both identities are declared before either is presented.
Two roots, composed¶
SPIFFE issues the key material. Each workload obtains a short-lived X.509-SVID from the node's SPIRE agent over the Workload API. The control plane never holds a private key.
The control plane issues the trust revision. The trust bundle digest and revision come from the control plane's bundle lifecycle, and the kernel refuses a caller whose digest is outside its accepted set.
SPIFFE proves who you are cryptographically; the bundle digest proves you are operating under the trust revision the control plane provisioned. Both must hold.
Caller identity comes from the verified TLS peer certificate and never from anything in the request body, so a caller cannot assert who it is.
One definition of the name¶
SPIFFE IDs are produced by one function and nowhere else. The control plane provisions the name, SPIRE registration entries derive from the same function, and the kernel compares its certificate against it.
A second definition would produce a runtime that starts, obtains a certificate, and is then refused by every peer.
The kernel terminates its own TLS¶
The kernel is Rust and terminates TLS itself rather than delegating to a mesh
sidecar, because it must swap a rotated certificate without dropping the
listener. The contract is a .proto and mutual TLS is application-terminated,
so the data plane being Python is incidental rather than structural.
Readiness is evidence, not a probe¶
The kernel reports ready once it has independently opened the artifacts the
node materialised and derived a verified view per admitted runtime closure. The
node asks for that with runtime.health and runtime.status.snapshot.
Two answers mean not yet, and both are retryable:
startup_not_ready the kernel has not finished starting
startup_evidence_incomplete startup evidence is not yet complete
The node retries these rather than treating them as a break, because a kernel that is still starting is going to answer differently in a moment.
Ownership is established, not assumed¶
Only the current owner node may send operator commands or advance the return lane cursor. Ownership comes from the assignment lease and its fence, so the kernel link inherits its authority from the control plane link rather than granting its own.
Fate-sharing¶
The kernel's lifecycle is tied to the project runtime pod. Rollout, scale-down and drain operate at the replica boundary, so a kernel does not outlive the pod it was started in.