The SPIRE agent¶
The SPIRE agent runs beside xratud on the node as a peer daemon. It is not
part of the daemon, and the separation is a security boundary rather than a
packaging preference.
Two processes, one node¶
flowchart TB
subgraph node["The node"]
direction LR
X["xratud"]
S["SPIRE agent"]
K["Project runtime<br/>kernel and cells"]
X --> S
K --> S
end
Both xratud and the project runtime consume the Workload API over a Unix
socket to obtain their own identities. xratud is an ordinary workload from the
agent's point of view, with no special standing.
Why it is a peer rather than a subsystem¶
If the daemon contained the agent, the daemon would be the thing that decides what identity a workload gets. Keeping them apart means the component that supervises workloads is not the component that vouches for them.
That split is what the two-root trust model rests on: SPIRE proves who a workload is cryptographically, and the control plane's trust bundle revision proves it is operating under provisioned trust. Both must hold, and they come from different authorities. See Establishing the data plane to kernel link.
What the node obtains from it¶
A short-lived X.509-SVID, refreshed by the agent rather than by xratud. The
credential the node presents to a kernel comes from the agent, and the control
plane never holds a private key.
What the node contributes to it¶
xratud derives SPIRE registration entries, so which workloads may obtain which
identities follows from what the control plane provisioned rather than from
local configuration.
Identity names come from one definition. The control plane provisions the name, registration entries derive from the same function, and the kernel compares its certificate against it. A second definition would produce a workload that starts, obtains a certificate, and is refused by every peer.
What its absence looks like¶
A node whose agent is unavailable cannot obtain an SVID, so it cannot establish the mutual TLS link to a kernel. Its control-plane link is unaffected, because that uses its runtime credential rather than an SVID.
So a node that is pulling work and reporting normally while every kernel call fails on identity is pointing at the agent rather than at either link. See Where a symptom points.
Rotation without dropping the listener¶
Credentials are short-lived and rotate. On the kernel side that is why the kernel terminates its own TLS rather than delegating to a sidecar: it must swap a rotated certificate without dropping the listener.