Bug 2019645 - Create button is not removed on "Virtual Machines" page for view only user
Summary: Create button is not removed on "Virtual Machines" page for view only user
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.10.0
Assignee: Gilad Lekner
QA Contact: Leon Kladnitsky
URL:
Whiteboard:
: 2036376 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-03 02:32 UTC by Guohua Ouyang
Modified: 2022-03-10 16:25 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:24:41 UTC
Target Upstream Version:
Embargoed:
lkladnit: needinfo-


Attachments (Terms of Use)
create button is availble for view only user (245.09 KB, image/gif)
2021-11-03 02:32 UTC, Guohua Ouyang
no flags Details
existing buttons (68.68 KB, image/png)
2022-01-02 13:31 UTC, Leon Kladnitsky
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10752 0 None Merged Bug 2019645: Create button is not removed on "Virtual Machines" 2022-01-02 13:20:37 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:25:01 UTC

Description Guohua Ouyang 2021-11-03 02:32:52 UTC
Created attachment 1839477 [details]
create button is availble for view only user

Description of problem:
Create button and "Install migration tool" is not removed on "Virtual Machines" page while user has view only permission

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

How reproducible:
100%

Steps to Reproduce:
1. login with a view only user 'test' to namepsace 'default'
$ oc adm policy add-role-to-user view test -n default
2. navigate to virtualization
3.

Actual results:


Expected results:


Additional info:
Create button is removed on "Templates" page, but not "Virtual Machines" page.

Comment 2 Leon Kladnitsky 2022-01-02 13:28:59 UTC
The button is still present and active.

Comment 3 Leon Kladnitsky 2022-01-02 13:31:46 UTC
Created attachment 1848574 [details]
existing buttons

Comment 4 Leon Kladnitsky 2022-01-02 18:01:47 UTC
*** Bug 2036376 has been marked as a duplicate of this bug. ***

Comment 5 Leon Kladnitsky 2022-01-03 20:11:31 UTC
Verified on 4.10.0-0.ci-2022-01-03-042630

Comment 9 errata-xmlrpc 2022-03-10 16:24:41 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.10.3 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-2022:0056


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