diff --git a/deploy/charts/venafi-kubernetes-agent/templates/rbac.yaml b/deploy/charts/venafi-kubernetes-agent/templates/rbac.yaml index 1266b11f..519fa50e 100644 --- a/deploy/charts/venafi-kubernetes-agent/templates/rbac.yaml +++ b/deploy/charts/venafi-kubernetes-agent/templates/rbac.yaml @@ -288,3 +288,30 @@ subjects: - kind: ServiceAccount name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }} namespace: {{ .Release.Namespace }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "venafi-kubernetes-agent.fullname" . }}-firefly-reader + labels: + {{- include "venafi-kubernetes-agent.labels" . | nindent 4 }} +rules: + - apiGroups: ["firefly.venafi.com"] + resources: + - issuers + verbs: ["get", "list", "watch"] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "venafi-kubernetes-agent.fullname" . }}-firefly-reader + labels: + {{- include "venafi-kubernetes-agent.labels" . | nindent 4 }} +roleRef: + kind: ClusterRole + name: {{ include "venafi-kubernetes-agent.fullname" . }}-firefly-reader + apiGroup: rbac.authorization.k8s.io +subjects: + - kind: ServiceAccount + name: {{ include "venafi-kubernetes-agent.serviceAccountName" . }} + namespace: {{ .Release.Namespace }}