rgw: ListRoles returns "Access Denied" for a regular user with valid allow policy#66923
rgw: ListRoles returns "Access Denied" for a regular user with valid allow policy#66923
Conversation
|
Can one of the admins verify this patch? |
14 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
…allow policy The ListRoles method doesn't initialise the arn resource, so a user that is allowed to call this method only via policies gets "Access Denied" Signed-off-by: Theofilos Mouratidis <mtheofilos@gmail.com>
|
i wrote a test case for this in ceph/s3-tests#722. as expected, it fails against main but passes with the changes in this pull request 👍 |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
@cbodley any progress on this? I was waiting for the test case ceph/s3-tests#722 to be merged so we can merge this as well? |
|
@thmour sorry for the delay, i'll start qa against the test cases |
|
ok to test |
|
jenkins test windows |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok to test" to allow the Jenkins jobs to run. |
|
qa passed in https://pulpito.ceph.com/cbodley-2026-03-19_03:33:47-rgw-wip-cbodley-testing-distro-default-trial/ with a few known issues, mostly valgrind errors. new test case is passing:
|
|
https://jenkins.ceph.com/job/ceph-pull-requests-arm64/89319/
tracked in https://tracker.ceph.com/issues/75601 |
|
jenkins test make check arm64 |
|
Thanks for fixing! Will this be backported to 19? |
yes, squid backport is prepared in #68027 for https://tracker.ceph.com/issues/75623 |
The ListRoles method doesn't initialise the arn resource, so a user that is allowed to call this method only via policies gets "Access Denied"
tracker ticket: https://tracker.ceph.com/issues/74399
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.