From f037f15dc03902485e87973e95cab5748464af96 Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Wed, 1 May 2024 13:20:36 -0400 Subject: [PATCH] Reduce lighthouse-coredns RBAC permissions Signed-off-by: Tom Pantelis --- submariner-operator/templates/rbac.yaml | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/submariner-operator/templates/rbac.yaml b/submariner-operator/templates/rbac.yaml index d7010ea..cca5f59 100644 --- a/submariner-operator/templates/rbac.yaml +++ b/submariner-operator/templates/rbac.yaml @@ -673,34 +673,19 @@ kind: ClusterRole metadata: name: {{ template "submariner.fullname" . }}:lighthouse-coredns rules: - - apiGroups: - - "" - resources: - - services - - namespaces - - endpoints - verbs: - - get - - list - - watch - - update - apiGroups: - discovery.k8s.io resources: - endpointslices verbs: - - create - get - list - watch - - update - - delete - - deletecollection - apiGroups: - submariner.io resources: - - "gateways" - - "submariners" + - gateways + - submariners verbs: - get - list @@ -708,14 +693,11 @@ rules: - apiGroups: - multicluster.x-k8s.io resources: - - "*" + - serviceimports verbs: - - create - get - list - watch - - update - - delete --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding