]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: only allow system override if identity is not impersonating
authorSeena Fallah <seenafallah@gmail.com>
Mon, 24 Feb 2025 22:33:45 +0000 (23:33 +0100)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Apr 2025 14:22:47 +0000 (10:22 -0400)
commit33a7fa014940c9c3ac6aefd4b509c42819c7a772
treee74e261b35e078137cd734af876423c70f4ede9a
parentcedcb3773c9d604566af304893bd50b023e0bd71
rgw: only allow system override if identity is not impersonating

Since multisite now delegates permission checks for source objects
to the source zone (a3f40b4), we need to avoid allowing system-level
overrides when the request is impersonating another identity.

SysReqApplier should only grant override permission if the request
is truly system-authenticated and not acting on behalf of another
user or role (i.e., no rgwx-perm-check-uid or rgwx-perm-check-role
in the request).

Signed-off-by: Seena Fallah <seenafallah@gmail.com>
(cherry picked from commit 2a0cb65076fa63439a5d4b7c8876fb551d7ab8ec)
src/rgw/rgw_process.cc