LanguageEnglish
Build →

Learn · QuorumAuth

What is workload identity?

Workload identity is a verifiable identity issued to a running piece of software, based on facts the platform can check about it.

Updated

How a workload gets its identity

  1. Platform collects evidence → Issuer matches entryThe workload starts with no credential
  2. Issuer matches entry → Short-lived cert or JWTsigns
  3. Short-lived cert or JWT ↔ mTLS or scoped tokensrenews

The workload starts with no credential of its own. The platform attests it by collecting evidence such as its namespace, service account and projected token. An issuer matches the evidence to a registration and signs a short-lived X.509 certificate or JWT. The workload uses it for mutual TLS or to request scoped tokens, and renews it before expiry.

The platform checks what the workload is, not what it knows, and the credential renews itself before it expires.

Every service that calls another service has to say who it is. For years the answer was a secret: an API key in an environment variable, a password in a config map, a client secret in a CI variable. Workload identity changes the question. Instead of asking the workload to know something, the platform checks what the workload is, and issues it a credential on that basis.

Why static secrets fail at scale

A static secret has no idea who is holding it. If it leaks from a log, a laptop, or a container image, it works just as well for the attacker. It usually lives for months because rotating it means touching every place it was copied. And when several services share one key, an audit trail can only tell you that “the key” did something, not which service.

Workload identity targets each of those weaknesses:

  • Bound to evidence. The credential is issued only after the platform checks attributes of the running process.
  • Short-lived. It expires in minutes or hours and renews automatically.
  • Per workload. Each service gets its own identity, so logs and policies name it precisely.

Static secret vs workload identity

Static secret

  • Works for whoever holds it
  • Usually lives for months
  • Shared, so logs only say the key acted

Workload identity

  • Issued only after checking evidence
  • Expires in minutes or hours, renews itself
  • One identity per workload, named in logs

In short Ask the platform what the workload is, instead of asking the workload what it knows.

Two columns. A static secret works just as well for an attacker who finds it, usually lives for months, and when shared lets logs say only that the key did something. A workload identity is issued only after the platform checks evidence about the running process, expires in minutes or hours and renews automatically, and gives each service its own identity that logs and policies name precisely.

A static secret works for whoever holds it; a workload identity is issued only to the workload the evidence describes.

How workload identity works

The pattern is the same across implementations.

  1. The workload starts with no credential of its own.
  2. The platform attests it. An agent or the platform’s own control plane collects evidence: the Kubernetes namespace and service account, a projected service account token, a cloud instance identity document, or a process attribute on the host.
  3. An issuer matches the evidence to a registration. A registration says “a pod in namespace payments running as service account api is spiffe://example.org/payments/api”.
  4. The issuer signs a short-lived credential, such as an X.509 certificate or a signed JWT.
  5. The workload uses it to open mutual TLS connections or to request scoped tokens, and renews it before expiry.

A Kubernetes example

Kubernetes can project a service account token into a pod with a specific audience and a short lifetime. That token is the attestation evidence:

volumes:
  - name: workload-token
    projected:
      sources:
        - serviceAccountToken:
            path: token
            audience: example.org
            expirationSeconds: 3600

An agent on the node reads the calling pod’s token, verifies it with the Kubernetes API, and checks that its audience and pod binding match. Only then does the workload receive its identity document.

Standards and implementations

Approach What identifies the workload Typical credential
SPIFFE Attested selectors mapped to a SPIFFE ID SVID: X.509 certificate or JWT
Kubernetes projected tokens Pod, namespace, service account Audience-bound, time-bound JWT
Cloud provider workload identity Instance, function, or role metadata Provider-signed token, exchanged for cloud credentials
Workload identity federation A token from one issuer trusted by another Exchanged short-lived access token

These approaches combine. A common design attests pods with projected tokens, issues SPIFFE IDs on top, and federates those IDs into other systems through token exchange.

When to adopt workload identity

Adopt it when you run more than a handful of services, when secrets rotation has become a manual project, when auditors ask which service accessed which data, or when you are moving to zero trust authentication and can no longer treat the internal network as a credential.

It belongs to the wider family of non-human identity: workloads, service accounts, bots, and automation that act without a person at the keyboard. For callers that still hold a stored API key, see service accounts without a stored API key.

Pitfalls

  • Coarse registrations. If every pod in a namespace maps to one identity, a compromise of the weakest pod speaks for all of them.
  • Audience-less tokens. A projected token without a specific audience can be replayed against any service that accepts tokens from the cluster.
  • Identity without authorization. Knowing who is calling is step one. You still need policy, or scoped tokens, to decide what it may do.
  • Fallback secrets. Keeping the old API key “just in case” leaves the original risk in place.
  • Hosts outside the platform. VMs and bare-metal machines need their own enrollment path, or they become the place static secrets survive.

How QuorumAuth handles workload identity

QuorumAuth issues workload identities through its SPIFFE authority. In its tested behaviour:

  • A pod presenting a projected service account token gets an identity document with the expected SAN. A token whose audience does not match is refused, and a token stolen from another pod is refused.
  • A workload with no matching registration entry gets nothing, and an agent cannot issue identities for a workload registered on another node.
  • The workload generates its own key; the authority signs a certificate request and never returns a private key.
  • Hosts outside the cluster enroll with their tenant’s rotating bootstrap token, then renew their own identity with no cloud identity required.
  • Federation. A service account can enroll an external OIDC identity, such as a CI provider’s issuer and subject, and hold no key at all. A workload then signs in as that account with a token from its issuer. A token for another subject, from an issuer the account did not enroll, or addressed to another audience is refused, and each token is spent by its first exchange. Issuers must be HTTPS.
  • The SDK owns the workload’s identity and trust rotation when it connects to QuorumAuth, and refuses a plaintext connection.
  • Capabilities a workload declares on its registration become the scopes it is issued; a capability it did not declare confers nothing, and an unknown capability is refused.
  • A workload can exchange its identity for a short-lived access token that never outlives the identity document that obtained it.

On Kubernetes, these pieces add up to workload identity with no static secrets for any pod to carry.

Is workload identity the same as a service account?

Not quite. A service account is an account record. Workload identity is the credential a running process receives after the platform checks that it really is the software that account belongs to.

Does workload identity remove every secret?

It removes the long-lived secrets copied into configuration. Short-lived keys still exist, but the platform issues and rotates them for the workload.

What is workload identity federation?

Trust between two identity systems, so a workload holding an identity from one, for example a Kubernetes cluster, can obtain credentials from another without a stored secret.

Can a workload identity be stolen?

A short-lived credential can be, but it stops working at expiry, and good issuers bind it to evidence an attacker on another machine cannot reproduce.

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 →