]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: SysReqApplier overrides is_admin_of based on impersonation
authorSeena Fallah <seenafallah@gmail.com>
Thu, 17 Apr 2025 12:55:00 +0000 (14:55 +0200)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Apr 2025 14:22:47 +0000 (10:22 -0400)
commitcedcb3773c9d604566af304893bd50b023e0bd71
treed21a0eadb043d173100f0ba0cdd0629eb4ffaeea
parent4626f5d5ea6b98e867a9b7bda9e56761babc8e58
rgw: SysReqApplier overrides is_admin_of based on impersonation

SysReqApplier now returns true for is_admin_of() when the requester
was a system user and was not impersonating any user/role using
rgwx-perm-check-uid or rgwx-perm-check-role.

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 0e650ea276669c2c6bb236f27db07910754cc220)
src/rgw/rgw_auth.cc
src/rgw/rgw_auth.h
src/rgw/rgw_auth_filters.h
src/rgw/rgw_auth_s3.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h
src/rgw/rgw_swift_auth.cc
src/rgw/rgw_swift_auth.h