grafana-backup-tool
grafana-backup-tool copied to clipboard
dashboardApi/auth_check: verify against organization
- api keys endpoint require administrative rights, which we might not want to grant to backup users
- hence, verify authentication against the org endpoint.
@ysde Isn't administrative rights required for backups to work? Also it's noted in the README.
@xmj have you tested this change using a non-administrative key?
@xmj It looks like datasources
cannot be backed up or restored using a non-administrative key/token
Hi @acjohnson Yes, grafana api required admin right to do backups.
@ysde Ok I wouldn't recommend merging since it will cause an inconsistent experience
Admin rights are not required to back up dashboards, which was my usecase.
Maybe verify against /org
, and require additional rights (verify against /keys
perhaps?) for datasource backups?
Admin rights are not required to back up dashboards, which was my usecase.
Maybe verify against
/org
, and require additional rights (verify against/keys
perhaps?) for datasource backups?
That could work. Will you be updating this PR to make it work this way?
Closing as this would require more research/effort and has not been implemented in this branch