NetApp / trident

Storage orchestrator for containers
Apache License 2.0
762 stars 222 forks source link

Tighten RBAC policies on the trident service accounts. #897

Open bsamsom opened 7 months ago

bsamsom commented 7 months ago

The trident helm chart grants the trident-operator service account access to every secret in kuberentes.

This is because it uses a ClusterRole with no resourceNames. https://github.com/NetApp/trident/blob/master/helm/trident-operator/templates/clusterrole.yaml#L60-L71

For better security the helm chart should either use a Role and restrict the secret access to a singular namespace, or set resourceNames to the secrets it need access to, so that the service account only has access to the secrets it needs.