Hello, When I set the following policy for an IAM user, the user can no longer see the list buckets (s3 browser and s3 endpoint). I want to put a policy in place so that the IAM user can only see one bucket and can perform any action on that bucket. I tested this on an S3-compatible (Minio) system, and the user's access to one bucket was restricted. I would appreciate it if you could guide me on how this can be done.
When I apply like the image on a max out privillege S3 user, a specific resource. It´s impossible to connect for a userID with that policy. If I remove the resource it works.
So I have to mitigate the issue by working with Bucket policy (not as nice).
With S3, if you grant a user the s3:listAllMyBuckets permission, you cannot limit the result-set there. E.g. user will see all bucket names in the namespace, but access to the buckets might be restricted. This is S3 API working as expected. You'd have to separate users by namespace or not allow them lost ListAllMyBuckets at all, but give them only access to specific buckets instead.
DELL-Sam L
Community Manager
•
8150 Posts
•
34715 Points
0
0
Posted September 15th, 2023 12:09
Hello mehrshad,
Here are a couple of links to a couple of guides that maybe of assistance.
https://dell.to/3Rnxp9b
https://dell.to/3RuJucy