]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/sts: changing identity to boost::none, when role policy 59346/head
authorPritha Srivastava <prsrivas@redhat.com>
Thu, 2 Feb 2023 05:35:41 +0000 (11:05 +0530)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Sat, 26 Oct 2024 08:49:52 +0000 (15:49 +0700)
commit9d66f5952da8e59f2fff05699beec6aa50d5c648
tree8f5c3ec67c4534cad054d378acbba0363d7e6ae6
parent41aa834c147e833a2665e32c1824a6ec3cca8791
rgw/sts: changing identity to boost::none, when role policy
is verified for putobj permissions, in case of renaming a
large file.

While renaming a large file, putobj is invoked as an intermediate
step, and role policy is verified for the source object if temp creds
are used. Since the role policy is attached to the identity (role)
itself and the role policy does not contain a Principal, there is no
need to verify the identity and hence boost::none is passed in place
of the identity.

fixes: https://tracker.ceph.com/issues/58628

Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
(cherry picked from commit c2f5716e5196073abfc50917e5f687888f6dff42)
src/rgw/rgw_op.cc