grafana / grizzly

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

[Bug]: 401 Unauthorized Errors when selecting a dashbaord #454

Open lorrrrrrrenzo opened 3 months ago

lorrrrrrrenzo commented 3 months ago

Grizzly Version

v0.4.2

Expected Behavior

When selecting a dashboard on Grizzly Server, I expect to be able navigate to a dashboard's page.

Actual Behavior

I receive a 401 Unauthorized error.

Steps to Reproduce

  1. Use Amazon Managed Grafana
  2. grr serve ./items
  3. Open localhost:8080
  4. Click a dashboard
  5. Observe the 401 Unauthorized error in the event log.

I suspect that the issue here is the same one as https://github.com/grafana/grizzly/issues/26, which suggests that the solution lies in ensuring that the Authorization key is included in the request to the Grafana endpoint when using Grizzly Server's frontend. This PR is also worth a look: https://github.com/grafana/grizzly/pull/197

malcolmholmes commented 3 months ago

Have you configured Grizzly to connect to your AMG instance with a service account before running grr serve? In my experience, whenever I see "Unauthorized" errors, they are actually because I did something wrong in terms of authenticating myself.