custom dashboard accessing restricted dashboard shown in RC
Describe the bug My dashboard has the following security policy:
security:
access: "{{ .user.admin }} "
So non-admin users cannot see, that works good. However, if I have a custom dashboard that is built using the metrics-view of the dashboard it is still visible in the UI. Any access to the custom dashboard leads to a 404, unexpected error.
To Reproduce Steps to reproduce the behavior:
- create dashboard.yaml with security policy
- Create a rill KPI custom chart based on above dashboard,
- Add chart to custom dashboard,
- Deploy to UI
Expected behavior
- Dont show the custom dashboard at all.
- Show the custom dashboard, but block out the restricted KPI
- Show the custom dashboard, as normal
It really depends, and maybe this can be an additional setting? It could make sense to have the underlying dashboard blocked but only the KPI showing.
Screenshots
@begelundmuller as we discussed when breaking out explore and metrics view we should implement access policies on individual resources such as explore and custom dashboards.
@mindspank Agreed. We can pick this up as part of or after separation of metrics views and dashboards?