]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: donot check for NotPrincipal in IsPublicStatement 58686/head
authorSeena Fallah <seenafallah@gmail.com>
Fri, 19 Jul 2024 17:34:25 +0000 (19:34 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Fri, 19 Jul 2024 17:34:25 +0000 (19:34 +0200)
commit019aaa4d101db6b749140eaa5e62f997c57b0d81
tree178f67d152cb41de74e75b7f699edafbf2e5c447
parentfbb7c3df31e94eeed860e15d2cb563921f10aa9b
rgw: donot check for NotPrincipal in IsPublicStatement

As NotPrincipal cannot be used with Effect Allow there is no need to
check for that.
Also before this change, policies without `NotPrincipal` were identified
as a public as std::none_of() returns true on empty flats and the check
was not considering the fact that the policy might have pricipals. but
due to the missing concept from AWS about how to deal with Principal and
NotPrincipal on Allow Effect we can just remove it.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/rgw_iam_policy.cc