]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: check for s3ReplicateObject perm on destination bucket for replication
authorSeena Fallah <seenafallah@gmail.com>
Thu, 20 Feb 2025 23:56:28 +0000 (00:56 +0100)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Apr 2025 14:22:47 +0000 (10:22 -0400)
commita232040c0af8256eb09997e82550a3bc665f54cd
treeb0f0fe99e296374f1c6699e89c6a97a307c827b0
parentddc020c41ceb51819bb60b0863c95263e2e26e94
rgw: check for s3ReplicateObject perm on destination bucket for replication

Instead of s3:PutObject rely on s3:s3ReplicateObject permission to
check whether the user can replicate to the destination bucket.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 97ee3287fb3b062eda0d07f07a219eafb04a5a6a)
src/rgw/driver/rados/rgw_data_sync.cc
src/rgw/rgw_iam_policy.cc
src/rgw/rgw_iam_policy.h