Bug 1761041
| Summary: | non-admin can open vm wizard dialog in other namespace | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Guohua Ouyang <gouyang> |
| Component: | Console Kubevirt Plugin | Assignee: | Gilad Lekner <glekner> |
| Status: | CLOSED ERRATA | QA Contact: | Nelly Credi <ncredi> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.2.0 | CC: | aos-bugs, cnv-qe-bugs, gouyang, jokerman, mmccomas, ncredi, spadgett, tjelinek, yapei, yzamir |
| Target Milestone: | --- | ||
| Target Release: | 4.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
wrong permissions detection
Consequence:
non-admin user can open the vm wizard dialog in foreign namespace
Fix:
fixed permissions detection
Result:
non-admin user can no longer open the vm wizard dialog in foreign namespace
|
Story Points: | --- |
| Clone Of: | 1728523 | Environment: | |
| Last Closed: | 2020-01-23 11:07:15 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Guohua Ouyang
2019-10-12 03:33:03 UTC
Reopen this bug to kubevirt console. The "Create" button is still available to non-admin on vm wizard page, but not vm template page and other OCP pages. Console: OpenShift Version 4.2.0-0.nightly-2019-10-08-232417 since the user can hardly hit this issue, certainly not a zstream material. Targeting next release. It has different behaviors on VM and VM Templates page. - On VM page, the "Create with wizard" button is not showing anymore, just like the looks on Pods page. - On VM template page, it shows an error like below. templates.template.openshift.io is forbidden: User "test" cannot list resource "templates" in API group "template.openshift.io" in the namespace "default". Not sure which one is correct, I think we need to remove the error showing on the VM template page. I'm getting the same behaviour for Pods, VM, and VM Templates page Screenshots - https://drive.google.com/file/d/1QxCx4vo5PZKsRkdjZsenmDQ1AaZFycx9/view?usp=sharing https://drive.google.com/file/d/1Uz-a5KFn39aKL5njX2DZ-38C4NNbxRKK/view?usp=sharing https://drive.google.com/file/d/1yAr-bkEFQl1dR-lM-yos7lPUpIFU4qrP/view?usp=sharing Can you provide more info @Guohua The version I used is 4.3.0-0.nightly-2019-11-21-122827, do you think is it a good one? Move the bug to be verified as normal user cannot use VM wizard any more regardless the different results on VM and VM Templates page. must not be private? 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. https://access.redhat.com/errata/RHBA-2020:0062 |