Bug 2019634 - Pause and migration is enabled in action list for a user who has view only permission
Summary: Pause and migration is enabled in action list for a user who has view only pe...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.9
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.10.0
Assignee: Gilad Lekner
QA Contact: Leon Kladnitsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-03 01:43 UTC by Guohua Ouyang
Modified: 2022-03-10 16:24 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:24:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
action_list (142.64 KB, image/png)
2021-11-03 01:43 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10696 0 None Merged Bug 2019634: Pause and migration is enabled in action list 2021-12-31 07:05:44 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:24:44 UTC

Description Guohua Ouyang 2021-11-03 01:43:51 UTC
Created attachment 1839473 [details]
action_list

Description of problem:
Log in with a normal user and assign view permission to a different namespace, check VM actions in the view only namespace, pause and migration is enabled.

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

How reproducible:
100%

Steps to Reproduce:
1. create a normal user 'test' and give it view permission to a different namespace 'default'
$ oc adm policy add-role-to-user view test -n default
2. create a VM in namespace 'default'
3. login with user 'test' and view VM actions in 'default'

Actual results:
pause and migration is enabled.

Expected results:
pause and migration should be disabled just like other actions "stop", "restart".

Additional info:

Comment 1 Yaacov Zamir 2021-11-08 15:28:21 UTC
Due to complexity, the fix will be tracked in Jira:
https://issues.redhat.com/browse/CNV-14855

Comment 2 Guohua Ouyang 2021-12-06 05:20:28 UTC
Reopen the bug, it's not fixed by bz2028106

Comment 3 Yaacov Zamir 2021-12-08 07:17:59 UTC
Gilad note:
When enabling live migrate action we also need to check the VMI (vm-instance) condition 'type:LiveMigratable' to be 'True'

Comment 7 Leon Kladnitsky 2021-12-31 13:39:27 UTC
Verified on 4.10.0-0.ci-2021-12-30-053634

Comment 10 errata-xmlrpc 2022-03-10 16:24:30 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.