]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: stop crashing when an admin tries to assume a nonexistent role 69001/head
authorMatthew N. Heler <matthew.heler@hotmail.com>
Tue, 17 Mar 2026 20:33:32 +0000 (15:33 -0500)
committerMatthew N. Heler <matthew.heler@hotmail.com>
Tue, 19 May 2026 16:49:12 +0000 (11:49 -0500)
commit79560d5a08b212aaada9ccf3a2e0cb84c8dd2dfe
treed792f92ca8202e93540c95b3c17341cc0ed4ffa7
parent40ca11ceaa3b68e50c26a67d109c1c3d07532925
rgw: stop crashing when an admin tries to assume a nonexistent role

An admin user sending an AssumeRole request for a role that doesn't
exist would crash rgw. The permission check failed but got
overridden because the caller was an admin, and the code that ran
next blindly assumed the role had already been loaded. Fixed by
loading the role directly instead of hoping it was done earlier.

Signed-off-by: Matthew N. Heler <matthew.heler@hotmail.com>
(cherry picked from commit a1f1811f50509f6986198b95d51802c328afa9af)
src/rgw/rgw_sts.cc