Bug 2101666 - [OSD] ClusterVersion YAML editor should be read only
Summary: [OSD] ClusterVersion YAML editor should be read only
Keywords:
Status: CLOSED EOL
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.10.z
Assignee: Pavel Kratochvil
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-28 05:29 UTC by Yadan Pei
Modified: 2022-08-22 05:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-22 05:43:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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