]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/pubsub: verify_topic_permission handles cross-account access
authorCasey Bodley <cbodley@redhat.com>
Sat, 9 Mar 2024 16:09:41 +0000 (11:09 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 10 Apr 2024 17:09:17 +0000 (13:09 -0400)
commit86da5739e10b0b1665e5f0b9f375df24b12cc449
treeb0bcdad9abef9503de4fbd15ce9082f8d3f5f06f
parent851161166be710ed7dd85c04e6378dcabb4ef92f
rgw/pubsub: verify_topic_permission handles cross-account access

refactor verify_topic_owner_or_policy() to share the same interface
as similar functions like verify_user/bucket/object_permission()
from rgw_common.cc

in addition to the topic resource policy, this now also consults iam
identity policies like user, group, or role policy

for account users, this now implements cross-account policy evaluation.
this only comes into play for sns:Publish permissions though, because
the topics themselves are scoped to the account

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rest_pubsub.cc