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

Support for mountpoint S3 CSI driver to read AWS profiles from a pod level configuration for authentication #413

Open
harish-sc opened this issue Mar 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@harish-sc
Copy link

/feature

Is your feature request related to a problem? Please describe.
Currently, the driver only supports pod-level credentials via IRSA, which limits its compatibility with pods that use different AWS profiles or the Token Vending Machine approach to obtain short-term credentials for accessing AWS services.

Describe the solution you'd like in detail
If the CSI driver could use the AWS profiles configured in the ~/.aws/config file inside the pod for AWS S3 API authentication, it would allow the passing of short-term credentials via the TVM approach, enabling access to different buckets with distinct policies.

For eg., Inside the pod if ~/.aws/config file looks like below,

[profile first-bucket]
credential_process = /token/call-tvm -feature first-bucket
[profile second-bucket]
credential_process = /token/call-tvm -feature second-bucket

This would enable us to specify a profile, similar to how the Mountpoint-S3 CLI allows selecting a profile for credentials, as described in its configuration documentation.

Describe alternatives you've considered
The current alternative is to configure IRSA at the driver level, granting access to all prefixes within an S3 bucket. However, this results in broad access, lacking the fine-grained control needed for multi-tenant systems that enforce prefix-level restrictions and rely on TVM for obtaining short-term credentials to access specific prefixes.

Additional context
We are implementing the approach detailed in this AWS blog to obtain short-term credentials within a pod for accessing AWS services.

@unexge unexge added the enhancement New feature or request label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants