grafana/pkg/services/accesscontrol
Karl Persson 7ebf4027a7
Access Control: refactor permission evaluator to be more flexible (#35996)
* add a more flexible way to create permissions

* update interface for accesscontrol to use new eval interface

* use new eval interface

* update middleware to use new eval interface

* remove evaluator function and move metrics to service

* add tests for accesscontrol middleware

* Remove failed function from interface and update inejct to create a new
evaluator

* Change name

* Support Several sopes for a permission


* use evaluator and update fakeAccessControl

* Implement String that will return string representation of permissions
for an evaluator

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2021-08-24 11:36:28 +02:00
..
middleware Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00
ossaccesscontrol Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00
accesscontrol.go Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00
errors.go Revert "Revert "AccessControl: Implement a way to register fixed roles (#35641)" (#37397)" (#37535) 2021-08-04 14:44:37 +02:00
evaluator_test.go Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00
evaluator.go Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00
models.go Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00
roles_test.go Revert "Revert "AccessControl: Implement a way to register fixed roles (#35641)" (#37397)" (#37535) 2021-08-04 14:44:37 +02:00
roles.go Access Control: Make the evaluator prefix match only (#38025) 2021-08-23 14:03:20 +02:00
scope.go Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00