Skip to content
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

/vsis3/: include AWS_CONTAINER_CREDENTIALS_TOKEN in container credentials flow #9877

Merged
merged 2 commits into from
May 8, 2024

Conversation

jesseanttila-cai
Copy link
Contributor

What does this PR do?

This PR extends the container credentials functionality of vsis3 to cover more cases, particularly EKS Pod Identities.

Two additional environment variables are now considered in the container credentials flow: AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE and AWS_CONTAINER_AUTHORIZATION_TOKEN, with the former taking precedence over the latter (as described in AWS SDK documentation).

In addition to the included tests, I have tested the AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE-based credential flow in practice on EKS.

What are related issues/pull requests?

This functionality has been previously improved in #8859

Tasklist

  • Make sure code is correctly formatted (cf pre-commit configuration)
  • Add test case(s)
  • Add documentation
  • Review
  • Adjust for comments
  • All CI builds and checks have passed

port/cpl_aws.cpp Outdated Show resolved Hide resolved
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 69.094% (-0.001%) from 69.095%
when pulling 622ac6a on jesseanttila-cai:container_credentials
into cb54f88 on OSGeo:master.

@rouault rouault merged commit 3d96b17 into OSGeo:master May 8, 2024
34 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.

None yet

3 participants