grafana / grizzly

A utility for managing Jsonnet dashboards against the Grafana API
https://grafana.github.io/grizzly/
Apache License 2.0
523 stars 68 forks source link

Authenticate with session cookie #258

Open l2dy opened 1 year ago

l2dy commented 1 year ago

With limited permissions scoped under a certain folder, I could not create an API token in our Grafana instance, but I do have session cookies acquired using regular login. Would it be possible to authenticate with session cookie?

malcolmholmes commented 6 months ago

I'm currently not aware of a way to make this happen. I'd love to see a way to do something like Google's gcloud command does: gcloud auth login calls out to a browser window, you authenticate, grant permissions, then it 'hands back' to the CLI command, which is now authenticated. But, that will likely require modifications to Grafana, and as yet I don't know how to do that.

I'm going to keep this issue open, as I think it would be a useful addition for some point in the future.