]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/sts: code for returning an error when an IAM policy
authorPritha Srivastava <prsrivas@redhat.com>
Fri, 18 Jun 2021 10:06:10 +0000 (15:36 +0530)
committerPritha Srivastava <prsrivas@redhat.com>
Thu, 23 Sep 2021 05:01:47 +0000 (10:31 +0530)
commitbe42b2cf04def671023b98c811e77e1e357eb38e
treef755564474843400200873db8fb575f01a569583
parentd855dbb4d8bdba39399da58c5d36d1e24943b38d
rgw/sts: code for returning an error when an IAM policy
resource belongs to someone else's tenant.

While parsing the policy it discards the resource element,
but then when an operation is evaluated, since the resource element
is empty, it doesnt evaluate the resource at all and the policy
ends up erroneously allowing actions on resources in other tenants.

Fixes: https://tracker.ceph.com/issues/51219
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
src/rgw/rgw_iam_policy.cc