-
Notifications
You must be signed in to change notification settings - Fork 81
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
list-object fails when user with supplemental group access put object to the bucket #8710
Comments
FYI @naveenpaul1 , probably related to #8293 |
@nadavMiz we can list the object added by other user using supplemental group, right? |
@naveenpaul1 the user with supplemental group access can list all objects as he has access to both his objects, and to the other user objects via having his group as supplemental group. |
@guymguym @romayalon @naveenpaul1 not sure if its a valid idea. but at least in this case, if we at least give new objects the group of the bucket rather then the group of the user then all users with group access to the bucket will be able to access all objects in the bucket. this will be similar to how mac handles new directories where it gives the new directory the uid of the process, but the gid of the parent directory. see #8665 macos documentation of mkdir |
@nadavMiz we need to be compatible with S3, please read more here about object owners - https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html. |
Environment info
Actual behavior
1.when a user with supplemental group access put an object to a bucket he has access to, the bucket owner can't list objects for the bucket because he doesn't have access to the objects added by the other user
Expected behavior
Steps to reproduce
s3api_user1 create-bucket --bucket test-bucket
sudo node src/cmd/manage_nsfs account add --name test_user2 --uid 1002 --gid 1002 --suplemental_groups 2002
s3api_user2 put-object --bucket test-bucket --key key1
s3api_user1 list-objects --bucket test-bucket
More information - Screenshots / Logs / Other output
following are logs of the presented issue. in the following case there are two users: danny and jane. danny is the bucket owner and jane is a user with supplemental group access to the bucket. in this case both users put object successfully to the bucket. danny (the bucket owner fails to list objects of the bucket)
The text was updated successfully, but these errors were encountered: