SecuritySPIFFESVIDservice identitymachine identity

Workload identity

Definition

Workload identity is a short-lived, automatically rotated credential (an X.509 certificate or a signed token) that a platform issues to a workload based on attested facts such as its Kubernetes service account, node or cloud role.

In practice

It solves the secret zero problem: instead of shipping a bootstrap password, the platform vouches for the workload. Examples include projected Kubernetes service-account tokens, cloud instance and pod roles, CI OIDC tokens and SPIFFE, which defines an ID format (spiffe://trust-domain/path) and SPIFFE Verifiable Identity Documents (SVIDs) issued by SPIRE or a service mesh.

Credentials live minutes to hours, so a stolen one expires quickly, but the issuer becomes critical infrastructure: if it fails, new workloads cannot start. Identity is only as good as attestation and the policies that use it; one identity shared by many services brings back the shared-credential problem.

Example

A pod running as service account orders receives an SVID valid for one hour, uses it for mTLS to payments and to log in to the secrets manager, and gets a fresh one every 30 minutes.