Description of problem:
This bug is split from bug 1691282. It's an old issue for 4.2. For better tracking and more clear. I create this one.
As the design of the OLM, the common users can install operators in their namespaces after the cluster-admin create the OperatorGroup in their namespaces.
But, now, the common users cannot see the OperatorHub section on the Web console, so, they cannot get any operators actually.
Version-Release number of selected component (if applicable):
4.2.0-0.nightly-2019-09-23-215123
How reproducible:
always
Steps to Reproduce:
1. Login the cluster Web console as a common user. For example, called jian.
2. Create a namespace.
3. Logout it and login it as a a cluster-admin user.
4, Create an OperatorGroup in jian namespace.
mac:~ jianzhang$ oc get og -n jian
NAME AGE
test-og 7s
5, Logout and Login as this common user. And try to install operators.
Actual results:
But, the common users cannot see the OperatorHub section on the Web console.
So, actually, they cannot install any operator.
https://user-images.githubusercontent.com/15416633/65486959-64fb3e00-ded8-11e9-87d8-6ee7726ba79b.png
Expected results:
The common users can see the OperatorHub section on the Web console.
Additional info:
The reason why the common users need to install operators https://bugzilla.redhat.com/show_bug.cgi?id=1691282#c32:
The reason why it’s not just cluster-admin who should be able to do this is hosted clusters, where the tenant gets some level of admin access but not cluster-admin, in order for the backing SRE team to reasonably be able to make some guarantees. OpenShift Dedicated is one example.
IMHO it is legitimate for an administrative persona to be able to install Operators in a constrained way, that ensures the cluster’s stability at large is not impacted. We have made such constraints available with an OperatorGroups that carry a ServiceAccount, defining maximum permissions and by leaving the creation of an OperatorGroup a cluster-admin-only use case.
Samuel,
> The UI should appear for any user with those permissions.
Ok, thanks! But now, the common users don't have the permission to create OperatorGroups. @Daniel What's your suggestion?
Daniel,
> One thing we can do is to bind the visibility of the OperatorHub to the RBAC the user has on Subscriptions.
Do we need to list the steps for this in 4.2 release doc?