What is SPIFFE? Workload identity for services and AI agents
SPIFFE gives workloads such as services and AI agent runtimes a verifiable identity. Learn how it works, how it pairs with OAuth, and when to use it.
SPIFFE, short for Secure Production Identity Framework for Everyone, is an open standard that gives software workloads, such as services, jobs and AI agent runtimes, a verifiable identity that doesn't depend on network location. A workload gets a SPIFFE ID and a short-lived credential called an SVID from a local Workload API, and other systems verify that credential against a published trust bundle. Used with OAuth, an SVID can authenticate a workload to an authorization server without a stored client secret.
This post is for developers who run services or AI agents in their own infrastructure and want to know how workload identity works. It covers what SPIFFE is, how it works, how it pairs with OAuth, how federated workload credentials relate to it, where AI agents fit, and when to use it.
!!Status note: The OAuth SPIFFE client authentication draft and the IETF WIMSE drafts discussed here are Internet-Drafts, not RFCs, and may change. This post describes them as of December 2026.!!
What problem does SPIFFE solve?
SPIFFE solves the problem of how one piece of software proves what it is to another without relying on its IP address or a long-lived secret. The SPIFFE specification describes dynamic, heterogeneous environments where IP-based network policies struggle to scale. In those environments, workloads start and stop constantly, so an address says little about which workload is behind it.
Long-lived secrets create a second problem. The IETF's workload identity practices draft frames its goal as letting workloads such as containers, VMs, CI/CD jobs and serverless functions get identity credentials from their hosting platform, so that they avoid managing long-lived secrets. SPIFFE is one of the platforms that draft describes.
How does SPIFFE work?
SPIFFE has three parts: the SPIFFE ID, the SVID and the Workload API. The specification calls its Workload API the interface a workload uses to get its credentials. The diagram shows a workload getting an identity and then using it with OAuth.

What is a SPIFFE ID and a trust domain?
A SPIFFE ID is a URI that names a workload, in the form spiffe://trust-domain-name/path. The trust domain is the part after spiffe://. It is the trust root of a system, described as an identity namespace backed by an issuing authority with a set of cryptographic keys. The path identifies a specific workload, and its meaning is up to you. These examples come from the specification:
Trust domain names are self-registered. No central authority validates them, so the specification advises using a registered domain name as a suffix or generating a UUID to avoid collisions. Two trust domains with the same name can't federate.
What is an SVID?
An SVID, short for SPIFFE Verifiable Identity Document, is the credential that carries a SPIFFE ID. The specification compares it to a passport. It must be cryptographically verifiable as authentic and provably tied to whoever presents it. SVID is not a document type itself. It defines required properties and how they are encoded in existing formats:
A third type, the WIT-SVID, also exists in the specifications. This post covers the first two.
A JWT-SVID has three required claims. sub is the SPIFFE ID of the workload. aud names the intended recipient, and the specification strongly recommends a single audience. exp is the expiry, and the specification recommends keeping it as short as reasonably possible. This is an illustrative example:
JWT-SVIDs are bearer tokens, so anyone who holds one can replay it until it expires. That is why short lifetimes and narrow audiences matter.
How does a workload get an SVID?
A workload gets its SVID from the Workload API, which the specification says is typically exposed locally, for example through a Unix domain socket. The workload doesn't present a credential to ask for one. The implementer verifies the caller by other means, such as inspecting operating system process properties. The WIMSE architecture draft gives SPIRE as an example of attestation-based provisioning.
How do other systems verify an SVID?
Other systems verify an SVID with a trust bundle, which is an object containing a trust domain's cryptographic keys. A bundle is an RFC 7517 JWK Set. Each key states which SVID type it signs through its use value, such as x509-svid or jwt-svid. Removing a key from the bundle revokes it, and a bundle with an empty key list means all previously published keys are revoked.
How does a workload use SPIFFE with OAuth?
A workload uses SPIFFE with OAuth by sending its SVID to the authorization server as proof of who it is, in place of a client secret. The OAuth SPIFFE Client Authentication draft defines this. It profiles RFC 7521 and RFC 7523, and its stated goal is to avoid provisioning extra secret material when SVIDs already exist. It defines two methods:
- JWT-SVID. The client sends a JWT-SVID as the client assertion, with
client_assertion_typeset tourn:ietf:params:oauth:client-assertion-type:jwt-spiffe. The server checks thataudis its own issuer identifier as the only value, verifies the signature against the trust domain's keys, and checks that the SPIFFE ID is authorized for the client. - X.509-SVID. The client authenticates with mutual TLS, following RFC 8705. The server reads the SPIFFE ID from the certificate and validates it only against the trust anchors for that trust domain.
A token request with a JWT-SVID looks like this. Grant parameters are omitted:
The client_id is optional. If the client_id is a Client ID Metadata Document URL, the SPIFFE ID must match the document's spiffe_id value. Our guide to CIMD covers that document. The draft also warns against accepting any generic JWT as a JWT-SVID based only on its signature and a SPIFFE-like sub, which would invite token confusion.
The draft is early. It is an active Internet-Draft, published November 2, 2026, and the only implementation it lists is Keycloak, at "preview" maturity.
What are federated workload credentials?
Federated workload credentials are credentials that a workload gets from its hosting platform and then exchanges with an identity provider or token service for an access token to an outside resource. The workload identity practices draft describes the pattern in three steps. The platform issues a credential representing the workload. The workload presents it to an external identity provider or secure token service, which validates it. The provider then issues a new credential, typically an OAuth 2.0 access token.
The draft lists the platforms that can issue the first credential: Kubernetes service account tokens, the SPIFFE Workload API, cloud provider metadata endpoints, CI/CD pipeline tokens, and service mesh sidecars. SPIFFE is one source among these. The draft builds the exchange on the OAuth assertion framework (RFC 7521) and the JWT assertion grant, and it discourages custom flows, including RFC 8693 token exchange, because they hurt interoperability. It is an informational draft, not a standard.
What is WIMSE?
WIMSE, short for Workload Identity in Multi-System Environments, is an IETF working group that describes how to convey workload identity and security context between systems. Its architecture draft is informational. It defines workload identity credentials as either X.509 certificates or Workload Identity Tokens, both bound to a private key. It cites SPIFFE as an example identifier format. WIMSE is an architecture for these systems, and SPIFFE is a specific set of specifications.
How does workload identity apply to AI agents?
Workload identity applies to AI agents when the agent runtime is software you operate: it is a workload, so it can have a SPIFFE ID and an SVID. The WIMSE architecture draft addresses agents directly in its section on AI intermediaries. It says they should propagate the upstream security context unless explicitly authorized to reduce it, that autonomous actions must be clearly distinguished from delegated ones, and that each hop in an agent-to-agent chain must explicitly scope and re-bind the security context.
An SVID answers which workload is calling. Its required claims don't say which user the agent acts for or what that user approved. That is a different job, and other standards handle it. In the five jobs of agent auth (discovery, registration, authentication, request verification and authority), SPIFFE and federated credentials belong to authentication.
When should you use SPIFFE or federated workload credentials?
Use them when the agent or service runs in infrastructure you control and needs to authenticate to an OAuth-protected API without a stored secret. They are not the right tool when a third party's agent acts for a user. This table summarizes the choice:
Frequently asked questions about SPIFFE
Does SPIFFE replace OAuth?
No. SPIFFE identifies workloads, and OAuth issues access tokens. The OAuth SPIFFE draft shows how an SVID authenticates a client to an authorization server, which replaces a client secret but not the OAuth flow itself.
Do I need SPIRE to use SPIFFE?
SPIFFE is the standard, and you need an implementation that issues SVIDs and serves the Workload API. SPIRE is the implementation the WIMSE architecture draft names as an example of attestation-based provisioning.
Is SPIFFE only for Kubernetes?
No. The specification describes dynamic, heterogeneous environments in general. The workload identity practices draft lists SPIFFE alongside Kubernetes, cloud providers, CI/CD systems and service meshes as separate platforms.
What is the difference between SPIFFE and WIMSE?
SPIFFE is a specific set of specifications for workload identity. WIMSE is an IETF effort to describe an architecture for conveying workload identity and security context, and it cites SPIFFE as an example.
Can an AI agent have a SPIFFE ID?
Yes, if you run it as a workload. A SPIFFE ID identifies the runtime, not the user it acts for, and the WIMSE draft says autonomous actions must be distinguished from delegated ones.
What are the key takeaways about SPIFFE?
- SPIFFE gives a workload a verifiable identity, a SPIFFE ID, carried in a short-lived SVID that other systems check against a trust bundle.
- With OAuth, an SVID can authenticate a workload to an authorization server instead of a client secret. The OAuth SPIFFE profile is still an Internet-Draft.
- SPIFFE answers which workload is calling. It doesn't say which user an agent acts for or what it may do.
Sources
- SPIFFE specification
- SPIFFE ID
- JWT-SVID
- SPIFFE Trust Domain and Bundle
- OAuth SPIFFE Client Authentication, IETF draft
- WIMSE Architecture, IETF draft
- Workload Identity Practices, IETF draft