The problem
The clusterrole for the reverser always needs these broad secrets permissions
- apiGroups: [""]
resources: ["secrets"]
verbs: [get, list, watch]
even if it shouldn't sync any secrets.
The solution
add a flag --secret-namespaces=ns1,ns2 that would restrict the cache for secrets to namespaces. Then we could add a Role + RoleBinding for these namespaces. This would significantly reduce the blast radius.
For us, we don't want to watch secrets so we could put only the gitrepo secret in this namespace.
The problem
The clusterrole for the reverser always needs these broad secrets permissions
even if it shouldn't sync any secrets.
The solution
add a flag
--secret-namespaces=ns1,ns2that would restrict the cache for secrets to namespaces. Then we could add a Role + RoleBinding for these namespaces. This would significantly reduce the blast radius.For us, we don't want to watch secrets so we could put only the gitrepo secret in this namespace.