Workload Identity

SPIRE Server

A SPIRE Server is the control plane for SPIFFE environments. It acts as the central certificate authority and trust anchor for assigning cryptographic identities (known as SPIFFE Verifiable Identity Documents or SVIDs) to workloads, AI agents and containers. SPIRE servers are responsible for registering workloads and authenticating SPIRE Agents through automated node attestation across hybrid cloud and on-premises environments.

Key Takeaways
  • The SPIRE Server acts as the sole signing authority for a trust domain, issuing X.509 and JWT SVIDs through automated attestation.
  • SPIRE Servers use SPIRE Agents as local brokers to verify the identity of the node the workload is running on, inspect the authenticity of the workload and deliver the SVIDs.
  • Security teams adopting AI agents should evaluate using a SPIRE Server for short-lived, attestation-based identity instead of static credentials.

What Is a SPIRE Server?

A SPIRE Server is the control-plane component of SPIRE (SPIFFE Runtime Environment), the open-source reference implementation of the SPIFFE (Secure Production Identity Framework for Everyone) specification.

Its job is to manage and issue every identity within its configured SPIFFE trust domain.

The server manages three key components:

  1. Registration entries: A policy database mapping workload attributes (selectors) to SPIFFE IDs. If a workload matches the registered selectors, it gets an identity.
  2. Signing keys: The root certificate authority (CA) key material the server uses to sign SVIDs. By default, the server holds this key locally; it can also delegate to an upstream authority such as AWS Secrets Manager.
  3. Trust bundle: The set of CA certificates that other trust domains need to verify identities issued by this server, used in federated deployments.

The server doesn’t issue SVIDs directly to a workload. Instead, it works through SPIRE Agents deployed on each node, which act as local brokers.

“A SPIRE server is a good way to identify non-human identities, issue short-lived certificates that tell your MCP servers which agents can access certain systems, and define what they’re authorized to do,” says Micah Spady, Product Marketing Director at SecureW2.

How the SPIRE Server Issues Identities

To identify a workload, the workload must be registered with the SPIRE server using a registration entry.

The registration entry contains a SPIFFE ID, selectors and a parent ID. The parent ID establishes which SPIRE agent or node is authorized to obtain that workload identity.

The identity issuance pipeline has two sequential attestation stages:

  1. Node attestation
  2. Workload attestation

Let’s dive deeper into the two below.

Node Attestation

Before a SPIRE Agent can request SVIDs on behalf of workloads, it must prove to the server that the node it runs on is legitimate.

To do this, the server relies on node attestor plugins, which interrogate the node’s environment by querying cloud provider metadata APIs, hardware TPM readings or Kubernetes service account tokens.

If the node is valid, the server issues the agent its own SVID, which it uses for all future requests.

Workload Attestation

Once an agent is trusted, workloads on that node can request identities via the SPIFFE Workload API.

The agent locally queries the node operating system about the requesting process, like its Unix UID, Kubernetes pod labels or Docker image SHA. It compares those values against the registration entries cached from the server.

When the selectors match a registration entry, the agent retrieves the corresponding SVID from the server (or its local cache) and returns it to the workload.

SVIDs default to a one-hour Time to Live (TTL), but lifetimes are fully configurable based on security needs.

Private keys are generated on host via a Unix domain socket instead of being transmitted across the network, per the CNCF TAG Security Self-Assessment.

How SPIRE Server Behavior Is Determined

The behavior of a SPIRE Server is determined by a set of plugins. While some plugins are included, additional plugins can be built for specific use cases.

Examples include:

  • Node attestor plugins to verify the node the agent is running on
  • Key manager plugins to control how the server uses private keys
  • Credential composer plugins to allow the customization of SVID and CA attributes
  • Upstream Authority plugins allow SPIRE servers to integrate with existing PKI systems

The SPIRE Server uses these plugins to handle its core operations, including machine authentication and identity issuance.

SPIRE Server vs. SPIRE Agent

The server and agent have distinct roles, making both components irreplaceable. The table below breaks down how these roles work in practice.

DimensionSPIRE ServerSPIRE Agent
RoleCertificate authority and policy storeLocal identity broker on each node
DeploymentCentralized (one per trust domain, scalable horizontally)Deployed on every node running workloads
Key Attestation TaskNode attestation: verifies agent-hosting nodesWorkload attestation: verifies individual processes
SVID HandlingSigns and issues SVIDsCaches SVIDs and delivers them via Workload API
Direct Workload ContactNeverYes, via Unix domain socket

Why SPIRE Servers Matter for AI Agent Security

SPIRE Servers replace static, stealable credentials with short-lived, cryptographically verifiable identity. This is critical for AI agent security. Because agents often act autonomously, a leaked API key or long-lived token can travel further and do more damage before anyone notices.

Microservices have faced this same workload identity challenge for years, but the stakes are higher when there’s no human in the loop to catch a bad decision.

SPIRE Servers address this by treating every AI agent as a registered workload. Each agent gets a short-lived SVID tied to its observed runtime properties rather than a shared secret.

If an agent is compromised or behaves unexpectedly, the SVID expires quickly; no manual revocation is needed.

Federation support lets SPIRE Servers issue identities trusted across cloud providers and organizational boundaries, a common requirement for multi-agent pipelines.

Frequently Asked Questions

What does a SPIRE server do?

A SPIRE Server acts as the certificate authority for a SPIFFE trust domain, validating node and workload identities through attestation and issuing short-lived cryptographic SVIDs to authenticated workloads.

What is the difference between a SPIRE server and a SPIRE agent?

The SPIRE Server is the centralized signing authority that issues SVIDs, while the SPIRE Agent runs on each individual node and delivers those SVIDs to workloads via the local Workload API.

What is node attestation in SPIRE?

Node attestation is the process by which a SPIRE Server verifies the identity of the node an agent is running on before trusting that agent to request SVIDs on behalf of workloads.

Can SPIRE server issue identities to AI agents?

Yes, because SPIRE Server treats any registered process as a workload, it can issue short-lived, verifiable SVIDs to AI agents based on their observed runtime attributes rather than static credentials.

What is the difference between SPIFFE and SPIRE?

SPIFFE is the open specification defining workload identity standards and formats, while SPIRE is the runtime implementation that operates a server and agents to enforce that specification in production.

About the author
SW2
SecureW2 Editorial Team
Identity-first security for the AI era

The SecureW2 Editorial Team covers the vocabulary and practice of securing modern networks and AI systems: PKI, Cloud RADIUS, 802.1X, workload and non-human identity, MCP security, and Zero Trust. We translate complex security challenges into clear, practical guidance for IT leaders and security teams.

Securing AI agents and workloads?

SecureW2 issues short-lived, certificate-based identities to non-human and agent identities so every connection is authenticated. See how it maps to your stack.

Talk to an expert