Bug 1785492

Summary: Normal user can't see Samples, Snippets tab in YAML sidebar
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3.0CC: aos-bugs, jokerman, scuppett, spadgett, yapei
Target Milestone: ---   
Target Release: 4.3.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1783163 Environment:
Last Closed: 2020-02-19 05:39:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1783163    
Bug Blocks:    

Description Yadan Pei 2019-12-20 02:34:26 UTC
+++ This bug was initially created as a clone of Bug #1783163 +++

Description of problem:
Normal user don't have the ability to view Samples, Snippets tab in YAML sidebar

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. cluster admin user create ConsoleYAMLSample instances
$ oc create -f https://raw.githubusercontent.com/openshift-qe/v3-testfiles/master/customresource/console-yaml-sample.yaml
2. normal user login to console, goes to Workloads -> Jobs page -> Create Jobs
3. YAML sidebar only have Schema, no Samples tab
Actual results:
3. No Samples tab for normal user and it reports forbidden error
GET https://<console_route>/api/kubernetes/apis/console.openshift.io/v1/consoleyamlsamples?limit=250 403 (Forbidden)

Expected results:
3. Normal user should have the ability to view Samples

Additional info:

--- Additional comment from Stephen Cuppett on 2019-12-20 02:47:29 CST ---

Moving this to our active development branch (4.4.0) for Target. Fixes, if any, which require backporting to earlier releases will result in cloned BZs for those releases.

Comment 3 Yadan Pei 2020-02-06 06:11:26 UTC
Follow the exact steps in 'Steps to reproduce' now normal user can view Samples/Snippets sidebar
Verified on 4.3.0-0.nightly-2020-02-05-220314

Comment 5 errata-xmlrpc 2020-02-19 05:39:53 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, and where to find the updated
files, follow the link below.

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