Trust and workload identity¶
The kernel control lane is private gRPC with mandatory mTLS, and it needs two separate facts before it admits anything: who is talking, and whether that identity is currently authorised for this runtime and this trust revision.
Those facts have different owners. SPIFFE/SPIRE proves who a workload is; the control plane decides what that workload is allowed to do.
flowchart LR
CP["Control plane<br/>names identities<br/>records bundle revision"]
SP["SPIRE<br/>issues certificates"]
DP["xratud"]
K["Project runtime kernel"]
CP -->|"runtime_trust"| K
SP -->|"SVID"| DP
SP -->|"SVID"| K
DP <-->|"mTLS control lane"| K
If the component that schedules workloads also minted their identities, a compromised scheduler could mint an identity for anything it started.
In this section¶
- Node attestation covers how a workload proves it is the one an identity names, the two attestation steps, and the order the kernel checks a caller in.
- The SPIRE agent covers the node-local daemon, what the install renders, and why the substrate is applied before nodes scale.
- Trust bundles and revisions covers the platform trust bundle, where its revision is checked, and why the accepted sets exist.
- Provisioned versus held covers what the control plane records and where the rest of the material lives.
- Credential rotation covers the four rotation clocks and what happens when each one fails.
What decides whether the lane works¶
Identities are declared before they are issued. One naming contract produces the SPIFFE ID the control plane provisions, the ID a registration entry issues, and the ID the kernel compares against. A second definition anywhere produces a workload whose certificate says one thing and whose runtime contract expects another.
The lane comes up with the installation. xratu dataplane install prepare
renders the SPIRE substrate into the bundle and apply applies it before it
scales nodes, so the Workload API socket exists before the first process needs
an identity.
Enforcement switches on by provisioning. A provisioned
expected_peer_identity makes the kernel compare peer certificates against a
name; while it is absent the kernel admits callers on certificate validity
alone. xratu bootstrap reconcile establishes the trust bundle deploy
provisions from.