-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add provided ServiceAccount documentation to drafts
Signed-off-by: Tayler Geiger <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Provided ServiceAccount for ClusterExtension Installation and Management | ||
|
||
While OLMv0 provides many mechanisms for permission configuration via OperatorGroups, | ||
or by manipulating CatalogSources, cluster administrators must be aware of these options | ||
and actually implement them. If no ServiceAccount is explicitly specified for installing | ||
and upgrading operators, then cluster-admin is used by default. This can pose security risks | ||
by providing more permissions than are actually required for the management of any specific bundle. | ||
|
||
OLMv1 will not grant cluster-admin permissions. It instead requires ServiceAccounts provided | ||
by users to install, upgrade and delete content. | ||
|
||
The ServiceAccount is specified in the ClusterExtension manifest as follows: | ||
|
||
```yaml | ||
apiVersion: olm.operatorframework.io/v1alpha1 | ||
kind: ClusterExtension | ||
metadata: | ||
name: argocd | ||
spec: | ||
source: | ||
sourceType: Catalog | ||
catalog: | ||
packageName: argocd-operator | ||
version: 0.6.0 | ||
install: | ||
namespace: argocd | ||
serviceAccount: | ||
name: argocd-installer | ||
``` | ||
If no ServiceAccount is provided in the ClusterExtension manifest, then the manifest will be rejected. | ||
Installation will also fail if the ServiceAccount does not have the necessary permissions to install a bundle. | ||
//TODO: Add link to documentation on determining least privileges required for the ServiceAccount |