grafana/pkg/services/accesscontrol
Karl Persson 2fd7031102
Access Control: Add fine-grained access control to explore (#35883)
* add fixed role for datasource read operations

* Add action for datasource explore

* add authorize middleware to explore index route

* add fgac support for explore navlink

* update hasAccessToExplore to check if accesscontrol is enable and evalute action if it is

* add getExploreRoles to evalute roles based onaccesscontrol, viewersCanEdit and default

* create function to evaluate permissions or using fallback if accesscontrol is disabled

* change hasAccess to prop and derive the value in mapStateToProps

* add test case to ensure buttons is not rendered when user does not have access

* Only hide return with changes button

* remove internal links if user does not have access to explorer

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2021-07-02 14:43:12 +02:00
..
evaluator Access Control: Add histograms for evaluator and permissions checks (#34026) 2021-05-17 13:52:16 +02:00
middleware Access control: Attach ID to error message (#33472) 2021-05-12 23:00:27 +02:00
ossaccesscontrol Usage Stats: Make the UsageStatsService extension point more flexible (#34778) 2021-05-27 10:53:10 +02:00
accesscontrol.go Access control: Make Admin/Users UI working with the permissions (#33176) 2021-04-22 13:19:41 +03:00
models.go Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00
roles_test.go Access control: Rename predefined roles to fixed roles (code) (#34469) 2021-05-25 15:36:01 +02:00
roles.go Access Control: Add fine-grained access control to explore (#35883) 2021-07-02 14:43:12 +02:00