]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.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)
committerSeena Fallah <seenafallah@gmail.com>
Mon, 28 Apr 2025 16:56:06 +0000 (18:56 +0200)
commit2a0cb65076fa63439a5d4b7c8876fb551d7ab8ec
treead07feba6eb826e56a64c9a5ee161d982056877e
parent0e650ea276669c2c6bb236f27db07910754cc220
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>
src/rgw/rgw_process.cc