You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NC | Multi Protocol Access | If there is an object inside the bucket directory with a conflicting ownership (other than account owner), list objects throws access denied
#8735
If there is an object inside the bucket directory with a conflicting ownership (other than account owner), the entire bucket will become access denied.
Expected behavior
Ideally if the user tries to list the bucket via AWScli, the bucket owner should be able to list all the objects inside the bucket directory which he has ownership. In multi protocol scenario, same directory can be used as s3 bucket directory or smb/nfs share. Thus if the files created inside the directory might have a different UID:GID than s3 account owner.
Will explain in detail in next section
Steps to reproduce
1.Create a bucket and upload two objects in to it. Account owner is 10000:10000
[root@5221new-11 bucket001]# pwd
/mnt/gpfs0/account001/bucket001
[root@5221new-11 bucket001]# ls -lrt
total 10248
-rw-rw----. 1 10000 10000 10485760 Jan 29 06:23 10MB_file.bin
-rw-rw----. 1 10000 10000 5 Jan 29 06:24 abcd.txt
Create another object inside the bucket with a different user. This is possible since the same directory can be used for NFS/SMB as well.
[root@5221new-11 bucket001]# touch test.txt ; chmod 660 test.txt; ls -lrt
total 10248
-rw-rw----. 1 10000 10000 10485760 Jan 29 06:23 10MB_file.bin
-rw-rw----. 1 10000 10000 5 Jan 29 06:24 abcd.txt
-rw-rw----. 1 root root 0 Jan 29 09:37 test.txt ---> Different owner. Might be from an NFS user
Now the bucket is inaccessible.
[root@akarattuparambil-scale-host ~]# account001 s3 ls s3://bucket001
urllib3/connectionpool.py:1061: InsecureRequestWarning: Unverified HTTPS request is being made to host '5221new-11'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied
More information - Screenshots / Logs / Other output
The text was updated successfully, but these errors were encountered:
romayalon
changed the title
If there is an object inside the bucket directory with a conflicting ownership (other than account owner), the entire bucket will become access denied.
NC | Multi Protocol Access | If there is an object inside the bucket directory with a conflicting ownership (other than account owner), list objects throws access denied
Jan 29, 2025
Environment info
Actual behavior
Expected behavior
Will explain in detail in next section
Steps to reproduce
1.Create a bucket and upload two objects in to it. Account owner is 10000:10000
Able to list the objects successfully via AWScli
More information - Screenshots / Logs / Other output
The text was updated successfully, but these errors were encountered: