]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: prevent data sync from replicating to buckets not owned by the user
authorSeena Fallah <seenafallah@gmail.com>
Fri, 14 Feb 2025 11:39:54 +0000 (12:39 +0100)
committerSeena Fallah <seenafallah@gmail.com>
Fri, 14 Feb 2025 11:39:54 +0000 (12:39 +0100)
commit7e53cf7013ae2c920427fb3ba8b423d4ae218378
treefc87dabb696b92c90e641fd42213d6ba40cdc7d8
parente24bb7e8ecd98d63bf3253136e29dc960d747aaf
rgw: prevent data sync from replicating to buckets not owned by the user

Issue https://tracker.ceph.com/issues/68884 revealed that because
user_acl is initialized by default in RGWUserPermHandler::Init with
the same identity, calling verify_bucket_permission_no_policy()
would mistakenly allow the request since the user ACL matches the
identity. Removing the default creation of user_acl would align the
behavior with other S3 operations to prevent unauthorized data replication.

Fixes: https://tracker.ceph.com/issues/69972
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/driver/rados/rgw_data_sync.cc