A workload identity reference architecture is a design in which no workload holds a static long-lived secret: each workload proves what it is to its runtime and receives a short-lived credential on that basis. AWS, Azure, Google Cloud, Kubernetes and the main CI/CD systems support this natively; SPIFFE covers on-premise and cross-organisation seams.
TL;DR
- Target state: no static long-lived secrets. Every workload proves what it is to its runtime and receives a short-lived credential on that basis.
- All three major clouds and Kubernetes support this natively today. Most of the work is configuration you already own, not new infrastructure.
- The seams are on-premise, appliances and anything crossing a trust boundary. That is where SPIFFE earns its place.
- Migrate CI/CD first. Highest credential concentration, best native support, and the least coupled to production risk.
- Keep the credential format behind an abstraction so a future WIMSE profile is a swap rather than a rewrite.
The target state
Three facts, separable, at every call. The workload's own identity, attested from its runtime. The authority it carries, which for an agent means a delegated human principal held in a separate token. And a decision evaluated at the point of use rather than baked into issuance.
Everything below is a way of getting the first fact right on a specific platform. The second and third are covered in delegation chains and the authorization and signals layer.
What each runtime gives you
| Runtime | Native mechanism | Replaces | Caveat |
|---|---|---|---|
| Kubernetes | Projected service account tokens, audience-scoped and short-lived | Long-lived token secrets mounted into pods | Legacy token Secrets persist after migration. Kubernetes marks only auto-generated ones invalid after a year unused by default and deletes them after a further year unused; it does not clean up manually created ones unless they are listed in the ServiceAccount's secrets field. Enumerate and delete them explicitly. |
| AWS | IAM roles for service accounts, and IAM Roles Anywhere for workloads outside AWS | Access key pairs in configuration | Trust policy conditions are the actual control. A loose condition makes the role assumable more widely than intended. |
| Azure | Managed identities, and federated identity credentials for external issuers | App registrations with client secrets | System-assigned and user-assigned identities behave differently on resource deletion. Choose deliberately. |
| Google Cloud | Workload identity federation and attached service accounts | Downloaded service account key files | Key files often persist in developer machines and repositories after the workload stops using them. |
| CI/CD | OIDC token issued by the CI system, exchanged for a cloud credential per job | Long-lived cloud keys stored as repository secrets | Subject claim conditions must pin the repository and, where possible, the branch or environment. Without a subject condition, workflows in repositories you do not control can request tokens that the role will accept. |
| On-premise and mixed | SPIFFE and SPIRE with node and workload attestation | Shared service accounts and static keys | Attestation quality is the whole control. Weak node attestation makes strong workload identity meaningless. |
The pattern is identical across all six. Something the workload cannot forge vouches for it, and a credential is minted for a bounded period against that proof.
Where the seams are
- Crossing clouds. A workload in one provider authenticating to another. Federation works, and the trust configuration is where mistakes concentrate. Pin the issuer, the subject and the audience, and review those conditions as you would review a firewall rule.
- Crossing organisations. Federate trust domains rather than sharing credentials. This is the SPIFFE model and the direction the WIMSE drafts formalise. On 16 October 2026 every IETF WIMSE document was still an Internet-Draft, none published as an RFC (IETF datatracker).
- Appliances and embedded devices. No attestation mechanism and often no way to rotate. Front them with a terminating proxy that holds the modern credential, or register a documented exception with an owner and a review date.
- Datastores. Many still authenticate with a username and password. A secrets engine issuing per-use credentials converts that into a dynamic pattern without changing the database.
- Vendor software. If it only accepts a static API key, that key is a registered exception. Scope it as tightly as the vendor permits and monitor it as a known weak point.
Migration order
- CI/CD. Highest credential concentration, best native support, least coupled to production availability. Removing long-lived cloud keys from repository secrets is, in our view, the largest single reduction in exposure at this stage. See CI/CD credentials.
- Kubernetes workloads. Projected tokens plus cloud federation. Largely configuration.
- Cloud compute. Instance and managed identities in place of keys.
- Datastore access. Dynamic credential issuance.
- SaaS integrations. Hardest, because the credential lives at the other party. Scope reduction and review cadence rather than replacement.
- On-premise and legacy. SPIFFE where attestation is possible, documented exceptions where it is not.
Do not attempt these in parallel. Each stage teaches you which consumers cannot automate, and that list is the input to the next stage.
Four anti-patterns
- A vault as the destination. Moving static secrets into a store is progress and not the target. If the vault hands out the same long-lived value, you have centralised the problem rather than solved it. Dynamic issuance is the target.
- One role for everything. A single broadly-scoped role assumed by every workload defeats the model. Attestation tells you which workload is calling, and that information is wasted if they all get the same authority.
- Loose trust conditions. A federation trust policy that matches any subject from an issuer is equivalent to a shared credential, and it looks modern in an architecture diagram.
- Migrating without deleting. The old key still works. Migration is not complete until the previous credential is revoked and confirmed dead, and this step is easy to skip.
Frequently asked questions
What is the target architecture for workload identity?
No static long-lived secrets. Every workload proves what it is to its runtime through attestation, and receives a short-lived credential on that basis. All three major clouds, Kubernetes and the common CI/CD systems support this natively today, so most of the work is configuration of infrastructure you already own rather than new tooling.
Where should a workload identity migration start?
CI/CD. It has the highest credential concentration, the best native support through OIDC token exchange, and the least coupling to production availability. Removing long-lived cloud access keys from repository secrets is, in our view, the largest single reduction in exposure at this stage, and it teaches you which consumers cannot automate before you touch production.
Do you still need SPIFFE if you use cloud-native workload identity?
Not for workloads inside a single cloud, where the native mechanism is sufficient. SPIFFE earns its place at the seams: on-premise and mixed estates, workloads crossing organisational boundaries, and anywhere you need one identity model spanning runtimes that each have their own. Attestation quality is the control, so weak node attestation makes strong workload identity meaningless.
What mistake should you avoid when adopting workload identity?
Migrating without deleting. The new credential path works, the old key still exists, and nobody revokes it. Migration is not complete until the previous credential is revoked and confirmed dead. Close behind it is a federation trust policy loose enough to match any subject from an issuer, which is equivalent to a shared credential while looking modern in a diagram.
How do you handle systems that cannot support attested identity?
Three options in order of preference: front the system with a terminating proxy that holds the modern credential, use a secrets engine to issue per-use dynamic credentials where the system accepts a username and password, or register a documented exception with a named approver, a compensating control and an expiry. Appliances, embedded devices and vendor software with fixed API key authentication usually end in the third category.
Is there a standard architecture for workload or NHI identity?
No single published standard. The IETF WIMSE working group architecture document (draft-ietf-wimse-arch) was still an Internet-Draft on 16 October 2026, and no WIMSE document had been published as an RFC. This page describes a design pattern, attested identity with short-lived credentials, that the major clouds, Kubernetes and SPIFFE already implement.
Sources
- AWS STS API Reference, AssumeRoleWithWebIdentity, Amazon Web Services, accessed 16 October 2026
- AWS IAM User Guide, Create a role for OpenID Connect federation, Amazon Web Services, accessed 16 October 2026
- Microsoft Learn, Workload identity federation, Microsoft, accessed 16 October 2026
- Microsoft Learn, Managed identity best practice recommendations, Microsoft, accessed 16 October 2026
- Google Cloud, Service account credentials, Google Cloud, accessed 16 October 2026
- Google Cloud, Workload Identity Federation, Google Cloud, accessed 16 October 2026
- Kubernetes documentation, Managing Service Accounts, Kubernetes project, accessed 16 October 2026
- IETF WIMSE working group documents, IETF, accessed 16 October 2026
From the publisher
HumanAudit, which publishes this site, is preparing the NHI Governance pack: an NHI policy, ownership register, lifecycle procedures and one control set mapped, as our interpretation, to PCI DSS v4.0.1, ISO/IEC 27001:2022, NIS2 and DORA. Planned for March 2027; not yet on sale, and no price has been published.