grafana-tools / grafana-backup

[ON HOLD] CLI tool for backup/restore Grafana dashboards and datasources.
GNU General Public License v3.0
28 stars 3 forks source link

-apply-for all backup fails with a 403 #7

Open omadawn opened 6 years ago

omadawn commented 6 years ago

[$ go run *.go -apply-for all backup HTTP error 403: returns {"message":"Permission denied"}

grafov commented 6 years ago

Looks like your grafana user requires more rights. Need check though.

omadawn commented 6 years ago

That's what I assumed but now I'm not sure. There are only 3 permissions I can choose for an API key; "Viewer," "Editor" and "Admin." This key is set to Admin.

I'll dig deeper after I take care of a couple of other things and see if I can narrow this down. Any tips on what to look at in Grafana (or the code) would be appreciated.

The instance of Grafana I am running this against actually only has the one user "Admin". I haven't created any other users or configured any external authentication.