-
Notifications
You must be signed in to change notification settings - Fork 67
📖 Document OLMv1 permission model #1380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
664a51f
75c5f7c
24d93f1
fdf7e9d
ba9193d
4067d8c
a6b2ebc
ccfd9a9
c40dce6
2e5fcba
7bcdd89
23223b4
65aece4
34efe90
3875b46
b27dfa9
a36a0de
ad0a648
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #### OLMv1 Permission Model | ||
|
|
||
| Here we aim to describe the OLMv1 permission model. OLMv1 itself does not have permission to manage the installation and lifecycle of cluster extensions. Rather, it requires that each cluster extension specifies a service account that will be used to manage its bundle contents. | ||
|
|
||
|
|
||
| 1) The purpose of the service account specified in the ClusterExtension spec, which is to manage everything in (2) below. | ||
|
||
| 2) The contents of the bundle, which may contain more service accounts and RBAC. Since the operator bundle contains its own RBAC, it means the ClusterExtension service account requires either: | ||
| - the same set of permissions that are defined in the RBAC that it is trying to create. | ||
| - bind/escalate verbs for RBAC, OR | ||
rashmi43 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| See https://kubernetes.io/docs/reference/access-authn-authz/rbac/#privilege-escalation-prevention-and-bootstrapping | ||
| 4) The OLMv1 operator-controller generates a service account for the deployment and RBAC for the service account based on the contents of the ClusterServiceVersion in much the same way that OLMv0 does. The ClusterExtension CR also defines a service account to deploy and manage the ClusterExtension lifecycle | ||
rashmi43 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| The ClusterExtension permissions are not added to the deployment. The ClusterExtension service account and the bundle's service accounts are for different purposes. Naming conflicts between the two service accounts can lead to failure of ClusterExtension deployment. | ||
Uh oh!
There was an error while loading. Please reload this page.