RGW: a subuser with no permission can still list buckets and create buckets#55661
RGW: a subuser with no permission can still list buckets and create buckets#55661
Conversation
…uckets A S3 subuser having no permissions was able to do a normal user ops, from aws docs there's no functionality for a s3 subuser as we do have with swift. The fix here is to check the "subuser perm mask" before going forward with "no_acl" check. Fixes: https://tracker.ceph.com/issues/63791 Signed-off-by: Shreyansh Sancheti <ssanchet@redhat.com>
|
jenkins test make check |
@shreyanshjain7174 to expand on this, the value of this non-s3 actions map to RGW_PERM_INVALID. these requests had previously succeeded because of the "S3 doesn't support account ACLs, so user_acl will be uninitialized" case that was moved by this pr. after this change, these requests now fail before we can apply this fix for subusers, we would need to update |
|
Got it, Thanks! @cbodley for the detailed explanation, will be sure to look after the merge of |
A S3 subuser having no permissions was able to do a normal user ops, from aws docs there's no functionality for a s3 subuser as we do have with swift. The fix here is to check the "subuser perm mask" before going forward with "no_acl" check.
Fixes: https://tracker.ceph.com/issues/63791
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e