"Permission denied" error in the Kentik dashboards #28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently only Admins can see the Kentik dashboards. Viewers and Editors get "Permission denied" error when trying to open a Kentik dashboard.
The error happens because the dashboards are trying to read the Kentik datasource settings from Grafana but it can be done only by Admins.
This PR makes it able to open the Kentik dashboards by Viewers and Editors, not only by Admins.
How to make the plugin work after the update
Changes
url
field which can be used byplugin.json
. It's set according to the "Region" type when the "Update" button is clickedplugin.json
: replace region-specific proxy routes (default/api/v5
,eu/api/v5
,custom/api/v5
) with a genericapi/v5/*
route. The new route uses theurl
field from the plugin configdatasource/kentik_api.ts
: use the new route instead of region-specific onesdatasource/region_helper.ts
as it's not used anymore