LanguageEnglish
Build →

Learn · QuorumAuth

What is SPIFFE?

SPIFFE is an open standard that gives each software workload its own cryptographically verifiable identity.

Updated

How a workload gets its identity

  1. Workload → Node agent attests callerUnix socket
  2. Node agent attests caller → Issuing authorityentry matches
  3. Issuing authority → SVID and bundle returnedsigns

Four steps in a row. A workload asks the node agent over a local Unix socket. The agent attests the caller by namespace, service account and token and matches a registration entry. The issuing authority signs a short-lived SVID. The SVID and trust bundle return to the workload.

The workload never presents a secret; the node agent works out who is calling from evidence the platform already holds.

SPIFFE, the Secure Production Identity Framework for Everyone, defines how a workload proves who it is without a long-lived password or API key. It is a set of open specifications hosted by the Cloud Native Computing Foundation, and it answers one narrow question well: when one service calls another, how does each side know which software it is talking to?

The problem SPIFFE solves

Most service-to-service traffic still authenticates with something a person copied into a config file: an API key, a database password, a client secret. Those secrets share three weaknesses. They live a long time, so a leak stays useful to an attacker for months. They are copied, so you cannot tell which copy leaked. And they name an account, not the running software, so a stolen key works from any machine.

SPIFFE replaces the copied secret with an identity the platform hands to the workload at run time, based on facts it can check about that workload, and renews it before it expires.

How SPIFFE works

SPIFFE has four building blocks.

  1. SPIFFE ID. A URI that names one workload, for example spiffe://example.org/payments/api. The part after spiffe:// is the trust domain, the boundary of one issuing authority. The path names the workload inside it. The path carries no meaning to the standard itself; your issuer decides the naming scheme.
  2. SVID. The SPIFFE Verifiable Identity Document proves that a workload holds a SPIFFE ID. It comes in two forms: an X.509 certificate that carries the ID in its URI subject alternative name, or a signed JWT that carries it in the sub claim. See what is an SVID.
  3. Trust bundle. The set of public keys or CA certificates a relying party uses to check SVIDs issued in a trust domain.
  4. Workload API. A local endpoint, usually a Unix domain socket, where a workload asks for its own SVID and the trust bundles it should accept. The workload never presents a secret to ask; the issuer works out who is calling.

Attestation: how the issuer knows who is calling

A node-local agent identifies the calling process by evidence the platform already holds. On Kubernetes that is typically the pod’s namespace, service account, and a projected service account token. The agent compares that evidence with selectors in a registration entry. If they match, the workload gets the SPIFFE ID the entry names. If nothing matches, it gets nothing.

A typical request path looks like this:

workload ──(Unix socket)──▶ node agent
                              │ attest: namespace, service account, token
                              │ match registration entry selectors
                              ▼
                         issuing authority ──▶ signs SVID
workload ◀── X.509-SVID + trust bundle

From identity to mutual TLS

With an X.509-SVID and a trust bundle, two workloads can run mutual TLS. Each side presents its certificate, each side checks the other’s chain against the bundle, and each side reads the peer’s SPIFFE ID from the certificate to decide whether to talk to it. The network location of the caller stops mattering; the identity does.

When to use SPIFFE

SPIFFE fits when:

  • Services call each other across nodes, clusters, or clouds, and you want one identity scheme for all of them.
  • You want to remove static secrets from service-to-service calls.
  • You need to know which workload made a call, not just which network it came from, for audit or authorization.
  • You run a zero trust programme and need workload identity that does not depend on IP addresses.

It is a poor fit for authenticating people. A person signs in with a passkey or another sign-in method; SPIFFE identifies the software acting afterwards.

Common pitfalls

  • Treating the SPIFFE ID path as authorization. The ID says who a workload is. What it may do still belongs in a policy or a scoped token.
  • Loose selectors. A registration entry that matches on namespace alone hands the same identity to every pod in it. Match on as many attributes as you can.
  • Long SVID lifetimes. The value of SVIDs comes from short validity and automatic renewal. Hour-scale lifetimes are common; month-scale ones bring back the problem SPIFFE was meant to remove.
  • Ignoring bundle rotation. Clients that cache a trust bundle forever break, or keep trusting a retired root, when the authority rotates keys. Watch the Workload API for updates.
  • Replaying JWT-SVIDs. A JWT-SVID is a bearer token. Prefer X.509-SVIDs for service-to-service calls and keep JWT-SVID audiences narrow.

How QuorumAuth handles SPIFFE

QuorumAuth ships its own SPIFFE issuing authority, node agent, and Workload API client. Its tested behaviour:

  • Kubernetes attestation. A pod with a projected service account token receives an X.509-SVID over the agent’s Unix socket. JWT-SVIDs are not issued: a workload that asks for one is told so. A pod with no projected token, a token whose audience does not match, or a token stolen from another pod is refused. A workload with no matching registration entry is refused.
  • Proof of possession. The workload generates its own key pair and sends a certificate signing request. The authority returns a certificate chain and never a private key. A tampered request is rejected.
  • Selectors are enforced. Issuance is refused when the caller does not prove the entry’s selectors, and an agent cannot issue identities for a workload registered on another node.
  • Organization in the ID. Every issued SVID names the organization that declared the workload as a path segment, and the client library refuses a peer path that tries to choose a different organization.
  • Hosts outside the cluster. A host can enroll with its tenant’s rotating bootstrap token and then renew its own SVID. An expired, already-rotated, or cross-organization token is refused.
  • Mutual TLS (mTLS) and rotation. Cross-node mTLS handshakes succeed under the shared root and refuse a foreign root. The mTLS client presents the rotated identity on its next connection, and servers accept peers issued under a rotated trust root.
  • Federated trust domains. An organization can register a SPIFFE trust provider for its own trust domain; a trust domain another organization already holds is refused.

Weighing a self-run SPIRE deployment against a hosted authority? Read how SPIRE and hosted SPIFFE compare.

What is a SPIFFE ID?

A URI of the form spiffe://trust-domain/path that names one workload inside a trust domain.

What is an SVID?

A SPIFFE Verifiable Identity Document, issued as an X.509 certificate or a JWT, that proves a workload holds a SPIFFE ID.

Does SPIFFE replace user sign-in?

No. SPIFFE identifies software workloads; people and customers still authenticate through a sign-in flow.

Is SPIRE the same thing as SPIFFE?

No. SPIFFE is the specification. SPIRE is one open-source implementation of it; other issuers can implement the same specification.

Do I need Kubernetes to use SPIFFE?

No. The specification is platform-neutral. Kubernetes is a common place to run it because pods already carry an attestable service account.

Talk to sales about QuorumAuth.

QuorumAuth is sold through our sales team. The Build page shows the drop-in sign-in on your origin and how to reach sales about your stack.

Go to Build and contact sales →