EKS Pod Identity vs IRSA is the decision of how a pod gets an IAM role session. Both end at a short-lived session. They bind the pod to the role in different places, and that difference shows up when the fifth cluster needs the same role, when the trust policy hits its size quota, and when an auditor asks which namespace assumed it. IRSA puts the cluster's OIDC issuer into the role's trust policy and puts the role ARN on the service account. Pod Identity trusts the EKS service principal once and records the binding as an association on the cluster.
Rutagon makes this choice per cluster family, on Amazon EKS. IRSA remains the mechanism for Kubernetes that is not Amazon EKS, where the Pod Identity agent has no control plane to attach to. We do not rip IRSA out of a working cluster in the same week we install the agent. The migration has a precedence rule, and ignoring it leaves pods on the old path while the console shows the new association.
Where EKS Pod Identity vs IRSA actually differs
IRSA needs an IAM OIDC provider for each cluster issuer. The default IAM quota for OIDC providers is easy to meet with a handful of clusters and painful with a fleet, because each cluster consumes one provider. The role trust uses AssumeRoleWithWebIdentity and a condition on the issuer's sub claim, system:serviceaccount:namespace:name. The service account carries the annotation eks.amazonaws.com/role-arn. Adding a second cluster means editing the trust policy to add a second issuer. Trust policies have a size quota. A role that lists every cluster issuer runs into that quota, and the next cluster becomes a new role or a quota increase request.
Pod Identity uses one principal, pods.eks.amazonaws.com, on the role. The same trust works for every cluster in the account. The binding of cluster, namespace, and service account is an EKS API object, CreatePodIdentityAssociation, not a paragraph in the trust policy. AWS describes that split in EKS Pod Identity. There is no per-cluster OIDC provider to create, and the team that administers IAM is not in the path for each new cluster. The team that can call the association API is the team that can grant the role to a service account. That permission is the new boundary, and it belongs in the review of who can change the cluster.
Pod Identity also sets session tags. IRSA does not. The tags include eks-cluster-name, eks-cluster-arn, kubernetes-namespace, kubernetes-service-account, kubernetes-pod-name, and kubernetes-pod-uid. They are transitive, so a second AssumeRole from the pod can still be constrained by them. AWS documents the keys in pod identity ABAC. A permission policy can require the secret's tag to match ${aws:PrincipalTag/kubernetes-namespace}. One role can then serve many namespaces without each namespace being able to read the others' secrets. IRSA expresses that constraint, when it does, as a separate role per service account.
| IRSA | EKS Pod Identity | |
|---|---|---|
| Trust principal | Per-cluster OIDC provider | pods.eks.amazonaws.com |
| Binding | Trust sub plus service account annotation | Pod identity association |
| Session tags | Absent | Namespace, service account, cluster, pod |
| Where it runs | Amazon EKS and other Kubernetes on AWS | Amazon EKS |
The credential delivery differs too. IRSA projects a web identity token and the SDK calls STS. Pod Identity injects a container credential URI and a token file, and the SDK fetches the session from the agent on the node. An image whose SDK only understands the IRSA token file will ignore the association and fail, or it will keep using IRSA if the annotation is still present. The image has to be on an SDK build that supports Pod Identity before the cutover for that workload. We check the image, not the cluster version banner.
Association, trust, and the precedence rule
The role trust is short. The association is the object that names the namespace and the service account. A trust this wide means any cluster in the account can use the role if someone can create an association for it. Lock down eks:CreatePodIdentityAssociation. Use session tags in the permission policy when the same role must behave differently per namespace.
{
"Effect": "Allow",
"Principal": {
"Service": "pods.eks.amazonaws.com"
},
"Action": ["sts:AssumeRole", "sts:TagSession"]
} resource "aws_eks_pod_identity_association" "payments" {
cluster_name = aws_eks_cluster.app.name
namespace = "payments"
service_account = "payments"
role_arn = aws_iam_role.payments.arn
} The Pod Identity agent runs on the nodes. An association with no agent does nothing useful. New pods, or restarted pods, receive the credential environment. A long-lived pod keeps its old environment until it restarts. We treat "association created" and "pods restarted and calling AWS" as different steps.
AWS's Pod Identity launch notes describe the precedence rule we migrate with. The webhook prefers Pod Identity when a service account has both an association and an IRSA annotation. During the overlap the role trusts both the OIDC provider and pods.eks.amazonaws.com. We restart the workload, confirm the calls succeed, and confirm the session carries the namespace tag. Then we remove the OIDC statement from that role. The cluster OIDC provider stays until every other service account on that cluster has left IRSA. Deleting the provider first breaks the workloads still annotated.
CloudTrail is the check. The session tags show the cluster, namespace, and service account. A call that succeeds with no namespace tag is a sign the pod is still on IRSA, or that the SDK in the image never picked up the container credential URI. We do not remove the annotation on the strength of a console association alone.
Container hardening around the workload is the neighboring control in container security in production CI. Who is allowed to widen the role, at the organization level, is the same least-privilege problem as service control policies. Pod identity does not replace either one. It replaces the per-cluster issuer in the trust policy.
What we leave on IRSA
A cluster that is not Amazon EKS keeps IRSA, or another workload identity that cluster actually supports. Add-ons and sidecars whose images cannot move to a Pod Identity SDK stay on IRSA until the image moves. A role that must be assumable from a CI job and from a pod keeps two statements in the trust policy: the CI issuer, and the EKS service principal. We do not collapse those into the Pod Identity principal to make the JSON shorter.
The evidence pack is the role trust, the association (cluster, namespace, service account, role), the agent installed on the cluster, and a CloudTrail sample showing the session tags. For a workload still on IRSA, the pack is the OIDC provider, the trust sub, and the service account annotation. Mixed clusters state which path each service account uses. An examiner who is told "we use Pod Identity" and then finds an annotation-only service account will write the exception for you.
Rutagon runs this on Amazon EKS for client workloads and for our own, including the clusters that sit near a production SaaS platform. The platform's pods assume roles. They do not carry access keys. Which mechanism a given cluster uses is recorded on the association or the annotation, so the next person does not install a second path beside the first. This is Kubernetes and containerization work with an IAM outcome, which is why the trust policy is in the same change as the association.
Frequently Asked Questions
Does the Pod Identity trust policy name the namespace?
No. The trust policy allows pods.eks.amazonaws.com to assume the role and to tag the session. The namespace and service account are on the association, and they show up as session tags. A permission policy that must limit a namespace uses those tags. Who can create associations is what stops a different namespace from attaching itself to the role.
What happens if a service account has IRSA and Pod Identity configured together?
The Pod Identity webhook prefers the association. The pod receives the container credential URI, and the IRSA annotation is not the path that serves the session. That is helpful during migration and surprising if you did not know it. Finish by removing the OIDC statement from the role only after restarted pods show session tags, and leave the cluster OIDC provider in place while any other service account still uses IRSA.
Do session tags replace the IAM permission policy?
They refine it. The role still needs secretsmanager:GetSecretValue, or whatever the pod calls. A condition on aws:PrincipalTag/kubernetes-namespace makes that permission depend on the namespace tag matching the resource. Without the condition, every associated service account that shares the role shares the full permission policy.
Which clusters should stay on IRSA?
Kubernetes that is not Amazon EKS, and any Amazon EKS workload whose image SDK does not yet support the Pod Identity credential URI. Install the agent and move workloads as their images qualify. A cluster can run both mechanisms while that happens. The record of which service account uses which path is part of the evidence, because the console association does not describe the pods that never restarted.
Talk to us about pod identity on your EKS clusters. Contact Rutagon at rutagon.com/contact, 907-841-8407, or contact@rutagon.com.