Exclude unused resources from rbac#4572
Conversation
Signed-off-by: Ricardo Bartels <ricardo.bartels@telekom.de>
Signed-off-by: Ricardo Bartels <ricardo.bartels@telekom.de>
|
|
Hi @bb-Ricardo ! thanks for your contribution! Just to see if I understood - you have cluster scoped resources installed, but you have some external-secrets deployments there in which you do not wish for them to handle those cluster scoped resources? |
|
Hi @gusfcarvalho, Szenario:
|
|
Thanks for the clarification! While this PR is useful, I don't personally think it enhances the security posture that much in your use case, since cluster scoped resources are already disabled. In any case, for sure, least privileges are always good to have :) (also worth to say: you should block tenants from |
|
can you please just run Or, individually: |
|
I ran |
Consider an additional cluster scoped instance installed as well. And if the user can shell into the tenant scoped external-secrets container it is easy to extract the projected service account token. |
Yeah, that was my concern. Please beware this setup you have (cluster scoped and namespace scoped instances installed within the same cluster) is neither supported nor tested upstream. This is just a heads up as things can go wrong very fast in many ways 😄 re: the PR itself, it looks good to me. Thanks for your contribution 🙌🏾🙌🏾 |
|
Awesome, thank you very much |
* main: Clarify that setting `spec.refreshInterval` to 0 disables all update behaviour (external-secrets#4567) Helm: disable ClusterPushSecret reconciler when using scoped RBAC (external-secrets#4571) Exclude unused resources from rbac (external-secrets#4572)



Warning
This PR is based on #4570
Problem Statement
The current Helm chart assigns resources in the RBAC definition even if they are not used by the controller
Proposed Changes
Based on the configuration, even if (for example)
processClusterExternalSecretis set tofalsethe controller is assigned permissions to manage ClusterExternalSecret resources. This is highly undesired in clusters with multiple installed ES instances.Checklist
git commit --signoffmake testmake reviewable