Bug 2105262

Summary: [DR] DRPolicy creation page should be restricted to authorized users
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: gowtham <gshanmug>
Component: management-consoleAssignee: gowtham <gshanmug>
Status: CLOSED ERRATA QA Contact: Aman Agrawal <amagrawa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.11CC: jefbrown, madam, muagarwa, nberry, nthomas, ocs-bugs, odf-bz-bot, sheggodu, skatiyar, tdesala
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2116824 (view as bug list) Environment:
Last Closed: 2023-01-31 00:19:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2116824    

Description gowtham 2022-07-08 11:32:56 UTC
Description of problem:
DRPolicy creation is accessible by all the users, it needs to be restricted only to an authorized user (i.e DR admin)

Version-Release number of selected component (if applicable):
OCP 4.11.0-0.nightly-2022-06-23-044003
ACM 2.5.1
ODF-MCO 4.11.0

How reproducible:
100%

Steps to Reproduce:
1. Follow the steps to configure the DR setup:  https://github.com/red-hat-storage/ocs-training/blob/90f4104c45946d71c2695293cd1c846322a68457/training/modules/ocs4/pages/odf411-metro-ramen.adoc#1-overview
2. Create a dummy OCP user.
3. Login using the dummy user credentials 
4. Go to All Clusters -> Data Services -> Data Policies.
5. DRPolicy creation button is enabled.

Actual results:
DRPolicy creation button is enabled for all the users.

Expected results:
DRPolicy creation button should be enabled only for those who have access to create DRPolicy.

Additional info:

Comment 3 Mudit Agarwal 2022-08-09 05:12:13 UTC
every 4.11.z issue has to be fixed in 4.12.0 also. I know this has been fixed in master already which means 4.12 so lets keep the target release there as well.
We need to create a 4.11 clone when the time comes, I will do that.

Comment 17 errata-xmlrpc 2023-01-31 00:19:40 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 (Red Hat OpenShift Data Foundation 4.12.0 enhancement 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/RHBA-2023:0551