Skip to content

Add IAM Workload Identity support to pod identity associations - #8938

Merged
naclonts merged 2 commits into
eksctl-io:mainfrom
knottnt:feat/pia-workload-identity
Dec 1, 2026
Merged

naclonts merged 2 commits into
eksctl-io:mainfrom
knottnt:feat/pia-workload-identity

Conversation

@knottnt

@knottnt knottnt commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Description

Adds IAM Workload Identity support to EKS Pod Identity associations.

Users can enable workload identity when creating or updating an association by supplying an IAM Workload Identity provider and template:

iam:
  podIdentityAssociations:
  - namespace: payments
    serviceAccountName: checkout-sa
    permissionPolicyARNs:
    - arn:aws:iam::111122223333:policy/checkout-policy
    workloadIdentityConfig:
      enabled: true
      templateARN: arn:aws:iam::111122223333:workload-identity-template/my-template
      providerARN: arn:aws:iam::111122223333:workload-identity-provider/my-provider

The create and update commands also support:

  • --workload-identity-template-arn
  • --workload-identity-provider-arn
  • --enable-workload-identity
  • --disable-workload-identity

Disabling workload identity retains the provider and template ARNs, so it can be re-enabled without specifying them again.

eksctl get podidentityassociation now reports workload identity state in table, JSON, and YAML output.

The validation covers:

  • Requiring the provider and template ARNs together.
  • Requiring both ARNs when enabling an association that has none stored.
  • Preventing workload identity and targetRoleARN from being enabled at the same time, including updates where one is already configured.
  • Preventing ARNs from being cleared while workload identity is enabled.
  • Rejecting workloadIdentityConfig under add-on-managed associations, because the add-on APIs do not support it.

For clusters that use the eks-pod-identity-agent add-on, eksctl warns when its version is older than v1.5.0-eksbuild.3. Auto Mode clusters skip this check because the agent is part of the node image.

Roles created by eksctl keep the standard Pod Identity trust policy with sts:AssumeRole and sts:TagSession; workload identity requires no additional trust-policy permissions.

eksctl does not create or manage the IAM Workload Identity provider or template. Users create those resources separately and pass their ARNs to the association.

Manual testing

Manually tested the following against live EKS clusters:

  • Create an association with workload identity enabled.
  • Enable and disable workload identity on an existing association.
  • Re-enable using the ARNs retained by EKS.
  • Update an eksctl-managed role without changing workload identity state.
  • Verify get podidentityassociation output.
  • Verify the Pod Identity agent version warning.
  • Verify an eksctl-created role retains only sts:AssumeRole and sts:TagSession.
  • Verify EKS Auth issues credentials and a pod can fetch a JWT-SVID without sts:SetContext.
  • Verify disabling removes the workload identity socket from newly created pods and re-enabling restores JWT-SVID issuance.

Checklist

  • Added tests that cover your change (if possible)
  • Added/modified documentation as required (such as the README.md, or the userdocs directory)
  • Manually tested
  • Made sure the title of the PR is a good description that can go into the release notes
  • (Core team) Added labels for change area (e.g. area/nodegroup) and kind (e.g. kind/improvement)

BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯

  • Backfilled missing tests for code in same general area 🎉
  • Refactored something and made the world a better place 🌟

@knottnt knottnt added the kind/feature New feature or request label Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Hello knottnt 👋 Thank you for opening a Pull Request in eksctl project. The team will review the Pull Request and aim to respond within 1-10 business days. Meanwhile, please read about the Contribution and Code of Conduct guidelines here. You can find out more information about eksctl on our website

naclonts
naclonts previously approved these changes Dec 1, 2026
@naclonts
naclonts enabled auto-merge (squash) December 1, 2026 23:14
@naclonts
naclonts merged commit 6bfdf1b into eksctl-io:main Dec 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants