Bug 1837578 - unable to load topology if user cannot list vms
Summary: unable to load topology if user cannot list vms
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Jeff Phillips
QA Contact: Gajanan More
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-19 16:58 UTC by Jeff Phillips
Modified: 2020-07-13 17:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Version: 4.5.0-0.ci-2020-05-18-204038 Cluster ID: 32d23eb1-5a4d-4527-b67b-030f4707da8e Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
Last Closed: 2020-07-13 17:40:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 5493 0 None closed Bug 1837578: Fix to load topology when user has no access to VMs 2020-06-24 03:08:22 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:40:22 UTC

Description Jeff Phillips 2020-05-19 16:58:57 UTC
Description of problem:

Users without proper access to list virtual machines get an error when navigating to topology.



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


How reproducible:

always

Steps to Reproduce:
1. Create a user with only access to list namespaces

rules:
  - verbs:
      - list
      - get
      - watch
    apiGroups:
      - ''
      - project.openshift.io
    resources:
      - projects
  - verbs:
      - list
      - get
      - watch
    apiGroups:
      - ''
    resources:
      - namespaces
2. Bind this role to a user. Ensure there are no other roles bound (especially not the view role)
3. Login to that user and navigate to topology in any namespace.


Actual results:

Error message stating the user cannot list resource "virtualmachines"

Expected results:

Topology to load with no error. If some data cannot be fetched, it shouldn't display an error but those resources are not depicted in the topology view.

Additional info:

Comment 3 Gajanan More 2020-05-26 12:01:52 UTC
I have validated the bugzilla on
Build: 4.5.0-0.nightly-2020-05-25-232952
Browser: Google Chrome Version 81.0.4044.129
Marking this as verified

Comment 4 errata-xmlrpc 2020-07-13 17:40:02 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.

https://access.redhat.com/errata/RHBA-2020:2409


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