apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: minimal-operator-permissions rules: - apiGroups: - "" resources: - configmaps - secrets verbs: - create - delete - get - list - update - watch - apiGroups: - "" resources: - pods verbs: - get - list - apiGroups: - "" resources: - pods/log verbs: - get - apiGroups: - "" resources: - serviceaccounts verbs: - get - list - watch - apiGroups: - "" resources: - serviceaccounts/token verbs: - create - apiGroups: - apps resources: - daemonsets - deployments - statefulsets - replicasets verbs: - get - list - update - watch - apiGroups: - authentication.k8s.io resources: - tokenreviews verbs: - create - apiGroups: - secrets.infisical.com resources: - clustergenerators - infisicalauths - infisicalconnections - infisicaldynamicsecrets - infisicalpushsecrets - infisicalsecrets - infisicalstaticsecrets verbs: - create - delete - get - list - patch - update - watch - apiGroups: - secrets.infisical.com resources: - infisicaldynamicsecrets/finalizers - infisicalpushsecrets/finalizers - infisicalsecrets/finalizers - infisicalstaticsecrets/finalizers verbs: - update - apiGroups: - secrets.infisical.com resources: - infisicalauths/status - infisicalconnections/status - infisicaldynamicsecrets/status - infisicalpushsecrets/status - infisicalsecrets/status - infisicalstaticsecrets/status verbs: - get - patch - update - apiGroups: - "" resources: - configmaps verbs: - get - list - watch - create - update - patch - delete - apiGroups: - coordination.k8s.io resources: - leases verbs: - get - list - watch - create - update - patch - delete - apiGroups: - "" resources: - events verbs: - create - patch - get - list - watch - apiGroups: - authentication.k8s.io resources: - tokenreviews verbs: - create - apiGroups: - authorization.k8s.io resources: - subjectaccessreviews verbs: - create - apiGroups: - "" resources: - namespaces verbs: - get - list - create - delete - apiGroups: - rbac.authorization.k8s.io resources: - roles - rolebindings - clusterroles - clusterrolebindings verbs: - get - list - create - delete - update - patch - apiGroups: - "" resources: - serviceaccounts verbs: - get - list - watch - create - delete - update - patch - apiGroups: - apps resources: - deployments verbs: - create - delete - patch - apiGroups: - "" resources: - services verbs: - get - list - create - delete - update - patch - nonResourceURLs: - /metrics verbs: - get --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: minimal-operator-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: minimal-operator-permissions subjects: - kind: ServiceAccount name: minimal-test-user namespace: kube-system