Skip to content

Pod uses the host identity and credentials instead of the EKS Pod Identity credentials #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RandomSegFault opened this issue Jun 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@RandomSegFault
Copy link

Bug Overview

When running the container on EKS with and configuration it to use EKS Pod Identity, it uses the underlying node's identity and credentials instead of the credentials provided by EKS Pod Identity, resulting in access denied errors.

Expected Behavior

When I configure the pod to use EKS Pod Identity, I expect it to use the credentials provided by EKS Pod Identity, not the host's credentials.

Steps to Reproduce the Bug

Configure and deploy a pod on EKS according to the documentation, with EKS Pod Identity also deployed, and the correct permissions set up.

Environment Details

  • Version of the S3 container used: DockerHub
  • Version of NGINX Open Source or NGINX Plus: OSS
  • Version of NGINX JavaScript: no idea
  • Target deployment platforms: EKS
  • S3 backend implementation: AWS
  • Authentication method: EKS Pod Identity

Additional Context

After investigation, we found ou where the problem lies. The nginx.conf file lists the environment variables that are passed the the worker threads. Just by adding the AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE environment variable to the list of environment variables passed to the worker threads, it works.

TL;DR: adding env AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE; to nginx.conf fixes the issue.

@RandomSegFault RandomSegFault added the bug Something isn't working label Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant