]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Fri, 19 Jan 2024 04:25:32 +0000 (09:55 +0530)
commitf4ab5e2e4a537cfb79ed062bb85acbb15a06111f
tree57b09b2341470d078f22da6ee17afdec7db45a4c
parentc53faa40f327c9bac91d1913ae26a7e0371c0802
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>
(cherry picked from commit be42b2cf04def671023b98c811e77e1e357eb38e)
src/rgw/rgw_iam_policy.cc