grafana / helm-charts

Apache License 2.0
1.55k stars 2.21k forks source link

[GRAFANA] Why give a ClusterRole by default ? #2784

Open LeoFVO opened 7 months ago

LeoFVO commented 7 months ago

Hello, I was wondering, why does Grafana have a ClusterRole allowing him to get/list Secrets and ConfigMap ?

This could be unsafe in case of compromising, allowing the ServiceAccount to grab all cluster Secrets and ConfigMap.

What is your opinion on this ?

alita1991 commented 4 months ago

Hi, I have the same question, if I plan to run Grafana without a ClusterRole, what limitations will I encounter?

gillg commented 1 month ago

@zalegrala or any core members ? Any opinion ? From an external point of view this seems a critical security risk, for no valid reason.

Knowing most of people will just apply the chart out of the box, if grafana has a compromission, the whole kubernetes cluster is instantly compromised. Because having access to all the secrets allows grabing: