Bug 2099330

Summary: Edit application grouping is shown to user with view only access in a cluster
Product: OpenShift Container Platform Reporter: Debsmita Santra <dsantra>
Component: Dev ConsoleAssignee: Vikram Raj <viraj>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: low    
Version: 4.11CC: divgupta, nmukherj, viraj
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 11:18:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Edit appliation grouping is enabled none

Description Debsmita Santra 2022-06-20 15:10:46 UTC
Created attachment 1891341 [details]
Edit appliation grouping is enabled

Description of problem:
A user with View-only access is shown the `Edit application grouping` 
in the topology context menu and side panel

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


How reproducible:
Always

Steps to Reproduce:
1. Login as kubeadmin and deploy an application 
2. Create a non-kubeadmin user 
2. Create cluster-scoped role binding with the role as `View` and subject name as the name of the user
3. log in as the newly created user
4. Right-click on the deployed application

Actual results:
`Edit application grouping` is enabled

Expected results:
`Edit application grouping` should be disabled for users with view-only access

Additional info:

Comment 6 Sparsh Kesari 2022-06-28 09:59:31 UTC
Verified on 4.11.0-0.nightly-2022-06-25-132614
Verified on browser version 103.0 chrome

Comment 9 errata-xmlrpc 2022-08-10 11:18:42 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 (Important: OpenShift Container Platform 4.11.0 bug fix and 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:5069