Bug 2101666

Summary: [OSD] ClusterVersion YAML editor should be read only
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Pavel Kratochvil <pakratoc>
Status: CLOSED EOL QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.10CC: jhadvig
Target Milestone: ---   
Target Release: 4.10.z   
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-22 05:43:18 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:

Description Yadan Pei 2022-06-28 05:29:53 UTC
Description of problem:
OSD cluster, cluster admin is not allowed to update ClusterVersion details, however console is rendering an editable YAML editor 

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

How reproducible:
Always

Steps to Reproduce:
1. navigate to ClusterVersion YAML page /k8s/cluster/config.openshift.io~v1~ClusterVersion/version, click on YAML tab
2. cluster-admin is able to do some changes in YAML editor, however when saving the changes it will report 
An error occurred
admission webhook "regular-user-validation.managed.openshift.io" denied the request: Prevented from accessing Red Hat managed resources. This is in an effort to prevent harmful actions that may cause unintended consequences or affect the stability of the cluster. If you have any questions about this, please reach out to Red Hat support at https://access.redhat.com/support

Actual results:
2. cluster admin user is able to edit but not allowed to save the changes

Expected results:
2. cluster admin is not able to make changes to ClusterVersion so we may need to make YAML editor read ONLY

Additional info:

Comment 1 Jakub Hadvig 2022-07-07 13:44:21 UTC
This is fixed in 4.12 and 4.11
Was addressed in https://github.com/openshift/console/commit/8e2eb30d8047501af4a325cdd877fab6b8806cc4

Comment 3 Jakub Hadvig 2022-08-22 05:43:18 UTC
Closing this bug, in favour of https://issues.redhat.com/browse/OCPBUGS-382, since we can not longer create new bugs in bugzilla.