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

I have mounted the s3 Bucket in kubernetes pods but non-root user can't able to access the bucket . #314

Open
Moneshs opened this issue Oct 16, 2023 · 1 comment

Comments

@Moneshs
Copy link

Moneshs commented Oct 16, 2023

Hi,
As per the configuration, it is installed and I can able to mount the pods inside the container in Kubernetes but the problem is our containers are for non-root users. Now my application is not able to create or update the file inside the bucket due to the permission my bucket folder has root user and root group permission.

@rrehman-hbk
Copy link

I was able to get s3 buckets working with non root user, created a non root user (Iam User)and then set permissions -> chose "Attach policies directly" and selected FullS3Access. From the pods, could read, write and delete objects to s3 buckets. Then once the user is created, selected the user and created access key from security credentials.
Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants