Join our Newsletter — 33% off our NHI Course
Home› Guides› Cloud Container Services Mapped: Pod Identity Across EKS,…
Guide Cloud Security

Cloud Container Services Mapped: Pod Identity Across EKS, AKS, GKE and OKE

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 12 min read
On this page

The four major managed Kubernetes services each let a pod call cloud APIs as itself, without a stored key, but each one binds the Kubernetes service account to a cloud identity in its own documented way. This map lines up those workload identity mechanisms for Amazon EKS, Azure Kubernetes Service (AKS), Google Kubernetes Engine (GKE) and Oracle Container Engine for Kubernetes (OKE) so that platform, security and identity teams can find the equivalent control in each cloud and review it with the same questions.

Providers appear in alphabetical order (AWS, Azure, Google Cloud, OCI) throughout and receive equal depth. Nothing on this page ranks or scores one provider against another. Every provider fact is taken from that provider's own documentation, linked in each section and listed in the references.

This is an independent guide from NHI Mgmt Group, based on the public documentation of AWS, Microsoft, Google Cloud and Oracle as of November 2026. It is not sponsored or reviewed by any of these vendors. Product features change, so confirm settings against each vendor's current documentation.

Key takeaways

  • In all four services the unit of workload identity is the Kubernetes service account in a namespace of a cluster, bound to a cloud identity: an IAM role (EKS Pod Identity), a managed identity through a federated credential (AKS), an IAM principal in a workload identity pool (GKE) or a workload principal named in a policy (OKE).
  • Pods that share a service account share its cloud permissions, so one service account per workload is the basic least privilege unit.
  • Node level credentials remain a risk: each provider documents a component on the node (agent, webhook or metadata server) that brokers the exchange, and pods that reach the node's own identity can bypass the per-pod model.
  • Identity sameness and reuse features (shared trust policies, identity bindings, shared pools, namespace mappings) make multi-cluster operations easier and also widen the blast radius of a namespace and service account name.
  • AWS states plainly that containers are not a security boundary and that Pod Identity does not change this. The same caution applies to every model.

Why pod identity is a non-human identity problem

A containerised service that reads secrets, writes to storage or calls other cloud APIs needs credentials. The older pattern was to put an access key into a Kubernetes secret or an environment variable, or to let every pod inherit the node's cloud identity. Both patterns break least privilege: the first leaves long-lived keys in the cluster, the second gives every pod on a node the same permissions.

Workload identity replaces both with a short-lived credential tied to a specific service account. That service account, and the cloud identity it maps to, is a non-human identity that needs an owner, a narrow permission set and lifecycle management. MITRE ATT&CK lists T1610 Deploy Container as an execution technique, and anyone who can deploy a pod that names a privileged service account can use its cloud permissions. Deployment rights in a namespace therefore become identity rights in the cloud.

The mapping table

Providers are in alphabetical order. Each cell uses the provider's own term or setting name.

Security and identity questionAWS (Amazon EKS)Azure (AKS)Google Cloud (GKE)OCI (OKE)
Feature nameEKS Pod IdentityMicrosoft Entra Workload IDWorkload Identity Federation for GKEWorkload identity (enhanced clusters)
What identifies the workloadKubernetes service account in a namespace of a clusterAnnotated Kubernetes service accountKubernetes ServiceAccount, referenced by name or UID in an IAM principal identifierCombination of cluster, namespace and service account
Cloud identity it maps toIAM role, through a Pod Identity associationManaged identity or Entra application, through a federated identity credentialIAM principal in the project's workload identity poolWorkload principal named in IAM policy conditions
Node componentEKS Pod Identity Agent DaemonSetazure-workload-identity mutating admission webhookGKE metadata server on each nodeWorkload identity provider in the OCI SDK
Key setting namesPod Identity association; trust principal pods.eks.amazonaws.comazure.workload.identity/client-id; pod label azure.workload.identity/usePool PROJECT_ID.svc.id.goog; principal and principalSet identifiersrequest.principal.type = 'workload' with namespace, service account and cluster ID conditions
Multi-cluster reuseSame trust policy works across clustersIdentity bindings let clusters share one managed identityIdentity sameness across clusters sharing a poolPolicy conditions include the cluster OCID
Documented limitsUp to 5,000 associations per clusterUp to 20 federated identity credentials per managed identity500 concurrent metadata server connections per nodeOnly usable through an OCI SDK; not with dynamic groups

AWS: EKS Pod Identity

The Amazon EKS Pod Identity documentation describes associating an IAM role with a Kubernetes service account and configuring pods to use that service account. When a pod uses a service account with an association, EKS sets environment variables that configure the AWS SDKs and CLI to use Pod Identity credentials. The EKS Pod Identity Agent runs as a DaemonSet on each node, uses the node's host network and issues credentials only to pods on the same node. It is set up once per cluster and is not needed when EKS Auto Mode is enabled.

Each association maps one IAM role to one service account in one namespace of one cluster, and the role must be in the same account as the cluster; AWS points to IAM role delegation for cross-account access. A cluster can hold up to 5,000 associations, and AWS warns that associations are eventually consistent with delays of several seconds, so they should not be changed in critical code paths. Because Pod Identity does not use OIDC identity providers, the role trust policy names the service principal pods.eks.amazonaws.com, and AWS notes that the same trust policy can be reused across clusters.

AWS lists the benefits as least privilege scoped to a service account, credential isolation when IMDS access is restricted, and auditability through CloudTrail. It also lists AWS Fargate, Windows EC2 nodes, AWS Outposts, Amazon EKS Anywhere and self-managed Kubernetes on EC2 as environments where Pod Identity is unavailable. AWS also states that containers are not a security boundary and that Pod Identity does not change this.

Security and identity points for AWS: restrict pod access to the node's IMDS so pods cannot fall back to the node role, remember that a reusable trust policy means a matching association in any cluster can assume the role, and log association changes as identity changes.

Azure: Microsoft Entra Workload ID on AKS

The AKS workload identity overview explains that the AKS cluster acts as the token issuer and that OpenID Connect federation lets Kubernetes applications access Azure resources with Microsoft Entra ID based on annotated service accounts. Entra ID verifies tokens using the cluster's OIDC discovery document and its JWKS endpoint. On AKS Automatic the OIDC issuer is preconfigured; on AKS Standard you must enable workload identity and the OIDC issuer first.

The service account carries the annotation azure.workload.identity/client-id, and optionally a tenant ID and a token expiration between 3600 and 86400 seconds. Only pods labelled azure.workload.identity/use: "true" are mutated by the webhook to receive the Azure environment variables and the projected service account token. Microsoft advises reading the token path from AZURE_FEDERATED_TOKEN_FILE and re-reading the file for each exchange because Kubernetes refreshes it in place. Changes to service account annotations need a pod restart.

A managed identity can hold up to 20 federated identity credentials, and Microsoft notes that a new credential takes a few seconds to propagate. Identity bindings let several clusters share one managed identity through a single federated credential. Microsoft describes the migration sidecar as not intended to be a long-term solution.

Security and identity points for Azure: treat each federated identity credential as an access grant and review its subject, keep one managed identity per workload where possible, check that pods expected to use workload identity carry the label, and review any identity binding as a multi-cluster grant.

Google Cloud: Workload Identity Federation for GKE

The GKE workload identity concepts page explains that GKE creates a fixed workload identity pool for each project in the format PROJECT_ID.svc.id.goog, and that the pool is not deleted even when all clusters in the project are deleted. IAM grants refer to Kubernetes ServiceAccounts through principal identifiers, using principal for one resource and principalSet for a group, and a ServiceAccount can be selected by name or by UID.

Each node runs the GKE metadata server, which intercepts credential requests and provides the subset of Compute Engine metadata endpoints that Kubernetes workloads need. Google states that traffic to it never leaves the VM, that pods cannot reach the Compute Engine metadata server once the GKE metadata server is enabled on a node pool, and that the feature protects the sensitive metadata that metadata concealment used to protect. Host-network pods do not use the feature.

Google documents identity sameness: workloads with the same namespace and ServiceAccount name in clusters that share a pool are treated as the same identity. It also lists operational limits, including 500 concurrent connections per node to the metadata server, a few seconds of start-up during which early authentication can fail, and memory pressure in clusters with more than 3,000 ServiceAccounts.

Security and identity points for Google Cloud: use UID-based identifiers where a name could be recreated by someone else, control who can create namespaces in every cluster that shares the pool, enable the GKE metadata server on all node pools, and restrict host-network pods.

OCI: workload identity on OKE

The OKE workload access documentation states that workload identities are available only on enhanced clusters, and defines the workload identity as the unique combination of cluster, namespace and service account. Access is granted with IAM policies that use conditions on request.principal.type = 'workload', request.principal.namespace, request.principal.service_account and request.principal.cluster_id.

The deployment sets serviceAccountName and automountServiceAccountToken: true, and every pod in the workload uses the same service account. Oracle lists minimum SDK versions for Go, Java, Python, .NET and Ruby, notes that workload identities can be used only with an OCI SDK and not with the Console or the API, and states that they cannot currently be used with dynamic groups. Oracle recommends creating one instance of the workload identity provider and reusing it across the application.

For cross-compartment access, a cluster administrator creates a workload mapping for a namespace. Oracle notes that the mapping applies to all workloads in that namespace, so policies should use conditions such as the service account name for finer control.

Security and identity points for OCI: always include all four conditions (type, namespace, service account and cluster ID) in each policy, review workload mappings as namespace-wide grants, and keep SDK versions at or above the documented minimums.

Serverless containers and registries

Each provider also offers serverless container platforms and container registries. This map does not make service-specific claims about them because their documentation was not part of this review. The same identity questions still apply: which identity runs the container, who can deploy a new image under it, which identity pulls images from the registry, and whether pull credentials are stored as long-lived secrets. For registry controls in more depth, see the NHI Mgmt Group guides on registry security and pull credentials linked below.

Shared design principles across all four

The four documented models converge on the same principles. Bind one cloud identity to one service account for one workload. Keep the binding condition as specific as the platform allows, including cluster, namespace and service account. Stop pods from falling back to the node's own cloud identity. Treat the ability to create namespaces, service accounts or pods as an identity grant, and govern it through Kubernetes RBAC and admission control. Record every association, federated credential, IAM binding or policy statement in the NHI inventory with an owner.

NIST SP 800-190, the Application Container Security Guide, provides a provider-neutral frame for container risks, and NIST SP 800-53 AC-6 Least Privilege applies directly to the scope of each workload identity.

Common failure patterns

  • Cloud access keys stored in Kubernetes secrets after workload identity is available.
  • Several unrelated deployments sharing one service account and therefore one cloud identity.
  • Pods able to reach the node's metadata endpoint and use the node identity.
  • Bindings written without a cluster condition, so a namespace and service account of the same name in another cluster gains access.
  • Anyone with namespace creation rights able to recreate a privileged service account name.
  • Host-network pods assumed to be covered by workload identity.
  • Associations, federated credentials or workload mappings left in place after the workload is removed.

Practitioner checklist

  • List every workload identity binding in each cluster: EKS Pod Identity associations, AKS federated identity credentials, GKE IAM grants to pool principals and OKE workload policies.
  • Replace stored cloud keys in Kubernetes secrets with the native workload identity mechanism.
  • Give each workload its own service account and cloud identity with least privilege permissions.
  • Include cluster, namespace and service account in every binding condition the platform supports.
  • Block pod access to node credentials and restrict host-network pods.
  • Control service account and namespace creation through RBAC and admission policy.
  • Review multi-cluster reuse features (shared trust policies, identity bindings, shared pools, workload mappings) as explicit grants.
  • Remove bindings as part of workload decommissioning.

Standards and references

Related NHI Mgmt Group resources: Container Security Guide · Container Registry Security Guide · Container Registry Pull Credentials Guide · Cross-cloud workload identity federation

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.