Skip to content

squid: rgw: stop crashing when an admin tries to assume a nonexistent role - #69002

Merged
batrick merged 1 commit into
ceph:squidfrom
mheler:wip-76129-squid
Jul 27, 2026
Merged

batrick merged 1 commit into
ceph:squidfrom
mheler:wip-76129-squid

Conversation

@mheler

@mheler mheler commented May 19, 2026

Copy link
Copy Markdown
Contributor

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 <[email protected]>
(cherry picked from commit a1f1811)
@mheler
mheler requested a review from a team as a code owner May 19, 2026 16:49
@mheler mheler added this to the v16.2.15 milestone May 19, 2026
@mheler mheler added the rgw label May 19, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label May 19, 2026
@batrick batrick modified the milestones: v16.2.15, squid Jun 2, 2026
@mheler mheler modified the milestones: squid, v19.2.5 Jun 19, 2026
@yuriw

yuriw commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri-testing-20260622.143629-squid.

@anrao19

anrao19 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

pr testing completed and got approval from @ivancich, more detail's in : https://tracker.ceph.com/issues/77819.
@mheler , if no further testing is needed we can merge this pr

@anrao19

anrao19 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@batrick batrick modified the milestones: v19.2.5, v19.2.6 Jul 21, 2026
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 21, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-pass Release engineering: passed backport verification audit. labels Jul 21, 2026
@batrick
batrick merged commit e3d11c1 into ceph:squid Jul 27, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-qa needs-review ready-to-merge releng-audit-pass Release engineering: passed backport verification audit. rgw TESTED

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants