rishabhkailey / Grafana-Query-Cache

Grafana Query Cache is an Nginx-powered proxy that accelerates dashboard loading and reduces data source load by caching query results.
MIT License
2 stars 0 forks source link

user access verification: Switch auth endpoint to GET Data Source API #25

Closed rishabhkailey closed 10 months ago

rishabhkailey commented 10 months ago

Current Issue

We are using Grafana's Data Source Health API to check user access for query cache. Grafana documentation lacks clarity on user permissions needed for the Data Source Health API.

Proposed fix:

Use GET Data Source API for user Auth check: the GET Data Source API requires read permissions for the data source. using Get Data Source API instead of Health API seems like a better solution.

Note: Grafana doesn't have an OIDC API for verifying user access/scopes and the RBAC API is only available for the enterprise edition. that's why we are using Data Source API for verifying user access.