What is SPIRE? How it attests workloads and issues SVIDs
Understand SPIRE's Server and Agent roles, its two-stage node and workload attestation, how registration selectors govern SVID issuance, and which trust boundaries operators must protect.
What is SPIRE? How it attests workloads and issues SVIDs
SPIRE (SPIFFE Runtime Environment) is an implementation of the SPIFFE APIs that verifies running workloads and provides SPIFFE Verifiable Identity Documents (SVIDs) containing SPIFFE IDs. A typical deployment has a central SPIRE Server and a SPIRE Agent on each node. The Server manages identity issuance and registration data; an Agent verifies its node and local processes, then delivers SVIDs to workloads that match registration conditions. SPIRE does not automatically decide what an application may do. A service must validate the presented identity and apply its own authorization policy.
Roles of the Server and Agent
| Component | What it does | Important operational boundary |
|---|---|---|
| SPIRE Server | Manages registration entries and signing keys for a trust domain; issues SVIDs to authenticated Agents | Restrict and audit access to the registration API, datastore, and signing-key management |
| SPIRE Agent | Runs on each node, proves the node's identity to the Server, and exposes the Workload API to local processes | Protect access to the Workload API socket, Agent plugins, and node privileges |
| Registration entry | Specifies which parent Agent and selector conditions allow a SPIFFE ID to be issued | Verify that selectors represent trustworthy attributes and limit who can change them |
SPIRE attestation has two stages. Node attestation checks whether the machine running an Agent belongs to a trusted environment. Depending on the platform and plugins, this can use a platform-issued instance identity document, Kubernetes service-account token, TPM key, or one-time join token. Workload attestation lets the local Agent inspect the calling process using operating-system or orchestrator information, then compare those attributes with selectors in a registration entry. Available mechanisms and attributes depend on the platform and configured plugins.
How an SVID reaches a workload
An administrator configures the trust domain and the Server and Agents, including the node-attestation methods the Agents will use.
An Agent submits attestation evidence to the Server. The Server verifies the Agent's node using the configured platform mechanism.
An administrator creates a registration entry with a SPIFFE ID, parent Agent or node conditions, and workload selectors.
The Agent examines a local process that calls the Workload API and compares its discovered selectors with registration entries.
A matching workload receives an X.509-SVID or JWT-SVID for the assigned SPIFFE ID and can present it to a communication partner.
The receiving service validates the SVID and trust bundle, then uses its own policy to decide whether to allow the requested action.
Registration policy is a critical trust boundary. For example, a selector may refer to the string namespace=payments, but operators must verify that the value came from a trusted Kubernetes API and cannot be forged by the workload. If a selector uses an environment variable chosen by the workload itself, the issuance condition may be weak. Restrict who can create or edit registration entries and access signing keys, and review the change history.
Checks before adoption
**Trust boundaries:** Decide whether development, test, and production should share a trust domain and issuance roots.
**Node attestation:** Confirm that the selected plugin verifies a trustworthy platform attribute. For shared secrets or manual bootstrap, assess theft and reuse exposure.
**Workload selectors:** Record each selector's source, who can change it, and whether the workload can spoof it. Do not issue sensitive IDs based only on untrusted attributes.
**Local API boundary:** Test whether the processes and containers that can reach the Workload API are within the intended scope.
**Key and bundle lifecycle:** Monitor signing keys, trust bundles, and SVID expiry and renewal; prepare rotation and recovery procedures.
**Separate authorization:** An issued SVID proves an identity. Separately grant only necessary permissions in network and service policies.
**Failure handling:** Check application behavior when the Server is unreachable, an Agent restarts, an identity expires, a selector is wrong, or trust bundles disagree.
For example, if a payments API and a reporting worker run on two nodes, platform attestation can verify the nodes and workload selectors can distinguish the processes, allowing different SPIFFE IDs to be issued. A separate payment-store policy can then allow writes only from the payments API ID. This is an illustrative example, not a verified SPIRE deployment.
References
[SPIRE Concepts and Architecture](https://spiffe.io/docs/latest/spire-about/spire-concepts/) — Server and Agent roles, attestation, and SVID issuance flow.
[Registering Workloads](https://spiffe.io/docs/latest/deploying/registering/) — registration entries, SPIFFE IDs, selectors, and parent IDs.
[Configuring SPIRE](https://spiffe.io/docs/latest/deploying/configuring/) — platform-specific node attestation and configuration considerations.