Bug 2000440

Summary: OCS Quick Start should not be shown unless you have proper privileges
Product: OpenShift Container Platform Reporter: yvakil
Component: Dev ConsoleAssignee: yvakil
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: urgent    
Version: 4.9CC: aos-bugs, mifiedle, nmukherj
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:50:59 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:

Description yvakil 2021-09-02 07:36:27 UTC
Description of problem:
Currently you always see the OCS operator install

Prerequisites (if any, like setup, operators/versions):
Steps to Reproduce
Log into Openshift Console as a user who cannot install operators (as developer or on Dev Sandbox or create your own user)
Access Quick Starts through the Help icon in the top banner
Search for storage ...
Actual results:
This quick start should only be available if you can install operators.


Expected results:
This quick start should not be available on DevSandbox or when logged in as non priv user on another cluster

Reproducibility (Always/Intermittent/Only Once):
Always

Build Details:
Additional info:
The quick start (console-operator/quickstarts/install-serverless.yaml) is missing this in the spec section:

accessReviewResources:

group: operators.coreos.com
resource: operatorgroups
verb: list
group: packages.operators.coreos.com
resource: packagemanifests
verb: list
(note that the above was taken from the Serverless Install QS which works properly)

Comment 4 spathak@redhat.com 2021-09-07 06:02:57 UTC
Verified on build version: 4.9.0-0.nightly-2021-09-06-05531
Browser: Google Chrome 89

Comment 7 errata-xmlrpc 2021-10-18 17:50:59 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security 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-2021:3759