]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/auth: generalize Identity::get_role_tenant() as get_tenant()
authorCasey Bodley <cbodley@redhat.com>
Thu, 7 Dec 2023 20:21:52 +0000 (15:21 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:25 +0000 (15:34 -0400)
commitf0fb48d19409c012ae8422304b63ca013c1055db
tree496e9d7b60bee35f9c8c64e4063d7863574381dc
parent207f0df1038536e1094aaca1b5f84b8771c3f68c
rgw/auth: generalize Identity::get_role_tenant() as get_tenant()

all identities can return a tenant. rgw ops should consult the auth
identity for this instead of a rgw_user or rgw::sal::User

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit d82ff164505cd7a7abe6937879052ad03f1da939)
src/rgw/rgw_auth.cc
src/rgw/rgw_auth.h
src/rgw/rgw_auth_filters.h
src/rgw/rgw_op.cc
src/rgw/rgw_pubsub.cc
src/rgw/rgw_pubsub.h
src/rgw/rgw_rest_pubsub.cc
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_swift.cc
src/test/rgw/test_rgw_iam_policy.cc
src/test/rgw/test_rgw_lua.cc