grafana / kubernetes-app

A set of dashboards and panels for kubernetes.
https://grafana.com/plugins/grafana-kubernetes-app
Apache License 2.0
401 stars 149 forks source link

Permission denied error for non admin users #47

Open cmorent opened 5 years ago

cmorent commented 5 years ago

I have successfully configured the plugin to monitore my GKE kubernetes cluster, I have Grafana installed using the official stable helm chart (same for prometheus).

My problem is that non admin users have permission denied errors while trying to access the plugin page, with the list of clusters, same thing for some of the dashboards (node and container ones). I checked the chrome console while trying to reproduce and it seems to be the call made to /api/datasources that results in a 403 for non admin users.

Is there anything to configure to fix this ?

Thanks

JCMais commented 5 years ago

Same problem here, and almost identical setup

muhammadhanif commented 5 years ago

I have same problem. According to http://docs.grafana.org/permissions/datasource_permissions/, we need to enable Datasource Permissions. But it's only available in Grafana Enterprise. CMIIW.

seboudry commented 5 years ago

Got this problem too. What's weird is that, as an editor, we can fetch datasource list when configuring a variable of type datasource. Documentation on HTTP API is missing information about required permissions for each endpoints.

khanfouzia2 commented 3 years ago

Is there any update on this thread? I'm facing the same problem while fetching data from grafana datasource api (just to get IDs and names of datasources I've added to the grafana). Only the admin user is able to see the results.