What it means
A workload identity belongs to software, not to a person: a server, a function, a pod, or a pipeline job. The platform the software runs on vouches for it and hands it short-lived credentials when it runs. The credentials expire by themselves, so there is no stored key to copy, leak, or forget to rotate.
Each provider has its own form. An AWS workload takes on an IAM role. An Azure workload uses a managed identity. A Google Cloud workload runs as a service account. In Kubernetes, a pod's service account can be linked to a cloud identity, so the pod gets its own credentials instead of borrowing the node's. A workload identity is only as narrow as the permissions granted to it, so scope each one to its own job.
See the idea / Identity
A workload identity gives software its own short-lived credentials.
Follow the uplink-status pod as it gets its own identity, uses it, and finds the node's credentials out of reach.
Meridian's uplink-status pod runs in the ground-telemetry cluster on AWS. It writes status records to the halcyon-downlink bucket under status/. Before the fix it borrowed the node's role, telemetry-ingest-node. Now its Kubernetes service account is linked to a cloud role of its own through EKS Pod Identity. The pod runs off the host network, and the nodes require IMDSv2 tokens with a hop limit of 1.
01 / 04
Link
The pod's service account, uplink-status, is linked to a cloud role made for this pod alone. No other workload uses it.
More about this step
The service account is the pod's identity inside the cluster. The link tells the cloud which role that service account may take on. The role is written for one job: writing status records.
Step through at your own pace.
Keep in mindOne pod, one provider. Azure and Google Cloud give pods their own identities too, by different routes. GKE, for example, answers metadata requests from pods with the pod's own identity, except for pods on the host network. How the platform proves the pod's identity is not drawn, and the identity is only as narrow as its role.
Read the visual, step by step
- Link. The pod's service account, uplink-status, is linked to a cloud role made for this pod alone. No other workload uses it. The service account is the pod's identity inside the cluster. The link tells the cloud which role that service account may take on. The role is written for one job: writing status records.
- Credentials. When the pod runs, the platform hands it temporary credentials for that role. Nothing is stored in the image or the spec. EKS Pod Identity delivers the credentials through an agent on each node. They expire by themselves and are refreshed, so there is no key for anyone to copy out of a file or forget to rotate. The agent asks for them with the node's own role, which is why the node role keeps that one permission.
- Scope. The pod tries to read a pass under incoming/. Its role allows writing under status/ only, so the read is denied. Its status writes still succeed. The old node role could read every downlink object, so this denial is the narrowing working as intended.
- Node role. The pod asks the node's metadata service for the node role. Off the host network, the hop limit keeps the reply from reaching it. Having its own identity does not stop a pod from asking for its node's. The route has to be closed as well. Here the restricted Pod Security Standard keeps the pod off the host network, and the hop limit of 1 does the rest.
One pod, one provider. Azure and Google Cloud give pods their own identities too, by different routes. GKE, for example, answers metadata requests from pods with the pod's own identity, except for pods on the host network. How the platform proves the pod's identity is not drawn, and the identity is only as narrow as its role.
Flow references: Amazon EKS Best Practices Guide: Identity and access management · AWS IAM User Guide: Security best practices in IAM
AN ILLUSTRATIVE SCENARIO
A pod that stopped borrowing the node's role
Meridian's uplink-status pod had been able to collect the node role's credentials, which could read the whole halcyon-downlink bucket. Kael gave the pod its own workload identity through EKS Pod Identity, allowed to write only to the status/ prefix. With the pod kept off the host network and the metadata hop limit at 1, the node role was no longer within its reach.
Put it to work
- Find every stored access key or service account key used by software, and plan to replace each one with a workload identity.
- Give each workload its own identity, scoped to the resources and actions its job needs, rather than sharing one across services.
- Block workloads from reaching credentials meant for their host, such as a node's metadata service.
How to check your work
From inside the workload, check which identity its credentials belong to. Try an action outside its scope and confirm it is denied, and confirm that a request for the host's credentials gets no reply.
Connect the ideas
- IAM
The capability for creating identities, authenticating them, authorizing actions, and managing their lifecycle.
- Least privilege
Granting each identity only the actions, objects, and time window required for the current job.
- Secrets management
Storing, rotating, and auditing passwords, keys, and tokens so they are not copied into chat or source.