Bug 1831802
| Summary: | CVO does not reconcile/restore basic-user ClusterRole | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Rogerio Bastos <rbastos> |
| Component: | kube-apiserver | Assignee: | Stefan Schimanski <sttts> |
| Status: | CLOSED NOTABUG | QA Contact: | Xingxing Xia <xxia> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 4.3.z | CC: | aos-bugs, cblecker, deads, jeder, jokerman, mfojtik, nmalik |
| Target Milestone: | --- | Keywords: | ServiceDeliveryImpact |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-19 09:26:15 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
Rogerio Bastos
2020-05-05 16:39:55 UTC
You can duplicate this with a user that is *not* cluster-admin, but *has* been given access to patch clusterroles:
oc patch clusterrole/basic-user --type=json -p '[{"op": "remove", "path": "/rules" }]'
This will cause the above impacts to the registry and prometheus.
The stock ClusterRoles are maintained during kube-apiserver start, not via an operator or a controller. To fix this in the future, you can force a redeployment of the kube-apiserver to trigger a restart and the role will be fixed. A better solution of having the kube-apiserver run a controller to maintain these roles is technically possible, but currently expensive in terms of QPS. It could be done, but it won't be something quickly actionable. There is a workaround. This is the behaviour since RBAC was created. As we don't promise to repair anything possible in the cluster, this is not a bug or regression. If we want to repair RBAC roles in realtime, that's a feature. Please move to Jira. Created https://issues.redhat.com/browse/RFE-970 for this |