Bug 2260835 - Dashboard gives 500 error when attaching the policy to rgw roles
Summary: Dashboard gives 500 error when attaching the policy to rgw roles
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.1
Assignee: Afreen
QA Contact: Chaithra
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2265328 2267614 2267909 2298578 2298579
TreeView+ depends on / blocked
 
Reported: 2024-01-29 10:27 UTC by Shivam Gupta
Modified: 2024-07-18 07:59 UTC (History)
6 users (show)

Fixed In Version: ceph-18.2.1-43.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 2265328 2267909 (view as bug list)
Environment:
Last Closed: 2024-06-13 14:25:21 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 55771 0 None open mgr/dashboard: fix roles page for roles without policies 2024-02-28 07:36:38 UTC
Github ceph ceph pull 55826 0 None open squid: mgr/dashboard: fix roles page for roles without policies 2024-02-29 08:31:54 UTC
Red Hat Issue Tracker RHCEPH-8236 0 None None None 2024-01-29 10:27:51 UTC
Red Hat Issue Tracker RHCSDASH-1238 0 None None None 2024-01-29 10:27:54 UTC
Red Hat Product Errata RHSA-2024:3925 0 None None None 2024-06-13 14:25:41 UTC

Description Shivam Gupta 2024-01-29 10:27:06 UTC
Description of problem:
Ceph dashboard throws 500 Internal Server Error while accessing the RGW roles tab when policy are attached to roles

Version-Release number of selected component (if applicable):
RHCS 6.1, RHCS 7

How reproducible:
100%

Steps to Reproduce:
Create role:
# radosgw-admin role create --role-name=S3token1 --path=/ --assume-role-policy-doc=\{\"Statement\":\[\{\"Effect\":\"Allow\",\"Principal\":\{\"AWS\":\[\"arn:aws:iam:::user/test\"\]\},\"Action\":\[\"sts:AssumeRole\"\]\}\]\}

# attach policy to it:

#radosgw-admin role-policy put --role-name=S3token1 --policy-name=test --policy-doc="{\"Statement\":{\"Effect\":\"Allow\",\"Action\":\"s3:*\",\"Resource\":\"arn:aws:s3:::*\"}}"

and access the same from rgw user tab.

Actual results:
Accessing RGW roles tab throws 500 Internal Server Error

Expected results:
RGW roles tab should show the information correctly.

Comment 8 Chaithra 2024-05-09 07:08:03 UTC
Qe_coverage - since it is a dashboard BZ

Comment 10 errata-xmlrpc 2024-06-13 14:25:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2024:3925


Note You need to log in before you can comment on or make changes to this bug.