]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/pubsub: notifications can refer to topics in other accounts/tenants
authorCasey Bodley <cbodley@redhat.com>
Tue, 12 Mar 2024 23:08:50 +0000 (19:08 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:30 +0000 (15:34 -0400)
commit7daaef36f8529dbb58c97dc26f9b1f1d03ed7966
treec30e8ed67256076b3c98969969a583c2b2b0d8cd
parent0ce116eba77f88831c557b6dd8417de57a2f8076
rgw/pubsub: notifications can refer to topics in other accounts/tenants

accounts can use topic policy to grant sns:Publish permissions to other
accounts. the PutBucketNotification op should expect TopicArns from
other accounts. the account name from each TopicArn should be used as
the 'tenant' argument for RGWPubSub's constructor so we look for the
topic in the right namespace

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit a72975821fe36b411982346254a33771f97abb26)
src/rgw/rgw_rest_pubsub.cc