Skip to content

Commit 212c6cc

Browse files
committed
expand the required set of permissions for minimal RBAC
1 parent 33a95c8 commit 212c6cc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/vendor/replicated-sdk-customizing.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,13 @@ rules:
5050
5151
The SDK requires the following minimum RBAC permissions:
5252
* Create Secrets.
53-
* Get and update Secrets named `replicated`, `replicated-instance-report`, and `replicated-custom-app-metrics-report`.
53+
* Get and update Secrets named `replicated`, `replicated-instance-report`, `replicated-meta-data`, and `replicated-custom-app-metrics-report`.
54+
* Get the `replicated` deployment.
55+
* Get the `replicaset` and `pods` corresponding to the `replicated` deployment.
5456
* The SDK requires the following minimum RBAC permissions for status informers:
55-
* If you defined custom status informers, then the SDK must have permissions to get, list, and watch all the resources listed in the `replicated.statusInformers` array in your Helm chart `values.yaml` file.
56-
* If you did _not_ define custom status informers, then the SDK must have permissions to get, list, and watch the following resources:
57+
* If you defined custom status informers, then the SDK must have permissions to `list` and `watch` all the types of resources listed in the `replicated.statusInformers` array in your Helm chart `values.yaml` file, as well as the ability to `get` the named resource.
58+
* For instance, if you have a single status informer `deployment/myapp`, then the SDK requires permissions to `list` and `watch` all deployments as well as `get` the `myapp` deployment.
59+
* If you did _not_ define custom status informers, then the SDK must have permissions to `get`, `list`, and `watch` the following resources:
5760
* Deployments
5861
* Daemonsets
5962
* Ingresses

0 commit comments

Comments
 (0)