kubernetes-app icon indicating copy to clipboard operation
kubernetes-app copied to clipboard

Permission denied error for non admin users

Open cmorent opened this issue 6 years ago • 4 comments

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

cmorent avatar Oct 24 '18 14:10 cmorent

Same problem here, and almost identical setup

JCMais avatar Nov 08 '18 21:11 JCMais

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.

muhammadhanif avatar Nov 18 '18 05:11 muhammadhanif

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.

seboudry avatar May 06 '19 14:05 seboudry

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.

khanfouzia2 avatar Jul 08 '20 15:07 khanfouzia2