Skip to content

Commit

Permalink
minimize rbac permission by setting secret as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hoyho committed Jul 3, 2019
1 parent d3243e0 commit 4711fd2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions deploy/kubernetes/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ rules:
- apiGroups: [""]
resources: ["events"]
verbs: ["list", "watch", "create", "update", "patch"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
# Secret permission is optional.
# Enable it if your driver needs secret.
# For example, `csi.storage.k8s.io/snapshotter-secret-name` is set in VolumeSnapshotClass.
# See https://kubernetes-csi.github.io/docs/secrets-and-credentials.html for more details.
# - apiGroups: [""]
# resources: ["secrets"]
# verbs: ["get", "list"]
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotclasses"]
verbs: ["get", "list", "watch"]
Expand Down

0 comments on commit 4711fd2

Please sign in to comment.