Workload identity: choose between SPIFFE and cloud-native identity
Learn how software workloads receive and prove identities, how authentication differs from authorization, and when portable SPIFFE/SVID or Amazon EKS IRSA may fit.
Workload identity: choose between SPIFFE and cloud-native identity
A workload identity lets running software—such as an application, service, script, or container—prove what it is to another service or cloud resource. Common approaches include portable service identity standards such as SPIFFE and cloud-native identity that connects a platform workload to its IAM system. Authentication verifies the caller; the receiving service separately decides which actions that caller may perform.
Identity, authentication, and authorization
A service account may be a platform object representing a workload. Workload identity is the broader mechanism that binds running software to evidence it can present in communication. Depending on the platform, the binding may rely on a service account, cluster, host, or deployment identity.
| Concept | Question answered | Example |
|---|---|---|
| Workload identity | Which software process made the request? | checkout-api |
| Authentication | What verifies that this caller has that identity? | A signed identity document or platform-issued credential |
| Authorization | What may that verified caller do here? | Read inventory, but not change prices |
Unlike a person, a workload does not enter MFA or take leave. Operators must manage its runtime, owner, credential issuer, and service lifecycle. A deleted workload with a surviving credential or cloud role leaves a usable identity behind.
How SPIFFE connects a name to proof
SPIFFE is an open specification for portable service identities across different environments. A SPIFFE ID is a URI such as spiffe://trust-domain/path; the trust domain names the issuing trust system, and the path identifies a workload. The name alone does not prove who is calling. An issuer signs a SPIFFE Verifiable Identity Document (SVID), and the receiver verifies its signature against a trusted bundle. SPIFFE defines X.509 and JWT SVIDs. The Workload API can provide a workload’s identity, short-lived keys and certificates, and trust bundles. How a workload authenticates to that API is implementation-specific; SPIRE, one implementation, uses operating-system metadata.
SVIDs can support mutual TLS (mTLS), where both services verify each other. Successful TLS authentication still does not authorize every API operation. The receiving service must map the verified identity to its own access policy.
Hypothetical flow: checkout calls inventory
This is an explanatory hypothetical, not a report of a SPIRE installation or test. A platform verifies that checkout-api is an approved workload and associates it with spiffe://prod.example/checkout-api. The identity service provides a short-lived X.509 SVID. When checkout connects to inventory-api, the services validate each other’s certificates and trust bundle. Inventory then checks its policy and permits reading stock, while rejecting an unknown identity, expired proof, or unauthorized action. Credentials are renewed before expiry; when a workload is retired, its identity and permissions must stop receiving new proof.
Decide which platform signal proves the workload, whether another environment’s trust domain is accepted, and how requests fail when proof expires or the identity service is unavailable. Naming an ID without defining issuance, trust, and authorization is not a complete access control.
When cloud-native identity may fit
Amazon EKS IAM Roles for Service Accounts (IRSA) associates a Kubernetes service account with an IAM role. AWS validates an EKS-issued OIDC token, then STS AssumeRoleWithWebIdentity returns temporary AWS credentials. This can avoid putting long-lived AWS keys in container images and scope permissions to a service account.
IRSA does not secure the cluster by itself. If the EC2 Instance Metadata Service (IMDS) is not restricted, a Pod may reach the worker-node role or credentials associated with other Pods on the node. Pods using hostNetwork: true retain IMDS access, and AWS states that containers are not a security boundary. Check node-credential paths, Pod permissions, IAM scope, and logs.
| Decision factor | SPIFFE/SVID | Cloud-native workload identity |
|---|---|---|
| Main goal | Portable service identity across environments | Access to a provider’s cloud resources |
| Trade-off | Operate trust domains, issuance rules, bundles, and federation | Configure cluster identity, service accounts, roles, and runtime |
| Ask | Must services in different environments share identity rules? | Is least-privilege access within one cloud the main need? |
Neither is universally better. A hybrid can work, but constrain mappings between trust domains and cloud IAM.
Review the identity path
Separate identities by service, environment, or tenant where sharing one broad identity would increase compromise impact.
Bind identities to verified platform evidence; do not trust a self-declared string alone.
Verify issuer, audience, signature, expiry, and trust bundle. Set explicit trust between domains.
Automate issuance, renewal, rotation, and retirement. Keep credentials out of images, logs, and environment variables; short-lived credentials can still be stolen before expiry.
Enforce permissions at the receiving service; authentication alone must not grant broad access.
Test retirement and failure: stop new credentials after a workload or issuer is revoked, and ensure issuer outages do not silently become allow-all.
References
[SPIFFE ID and SVID specification](https://github.com/spiffe/spiffe/blob/main/standards/SPIFFE-ID.md)
[SPIFFE: Working with SVIDs](https://spiffe.io/docs/latest/deploying/svids/)
[Microsoft Learn: Workload identities overview](https://learn.microsoft.com/en-us/entra/workload-id/workload-identities-overview)
[AWS: IAM roles for service accounts in Amazon EKS](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html)