anryko / grafana-influx-dashboard

Grafana InfluxDB scripted dashboard
MIT License
132 stars 44 forks source link

/api/datasources endpoint not accessible in 3.0.1 for non-Admin users #56

Closed tkuehne-deliveryhero closed 8 years ago

tkuehne-deliveryhero commented 8 years ago

Hi anryko! 😃

After upgrading Grafana to 3.0.1 unfortunately the scripted dashboard doesn't load (gives blank page), when logged in without admin privileges. That seems to be caused by the "/api/datasources" endpoint not being publicly accessible anymore. It returns:

{"message":"Permission denied"}

with such a user.

Are you aware of this? How could this be worked around? Maybe providing an API key in getdash configuration would be an option?

Cheers,

Tobias.

anryko commented 8 years ago

Hey Tobias!

I think I fixed the issue. Please confirm.

tkuehne-deliveryhero commented 8 years ago

Confirmed! 👍

Thanks for fast response.