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.
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.