grafana/pkg/services/accesscontrol
Ieva 52220b2470
AccessControl: frontend changes for adding FGAC to licensing (#39484)
* refactor licenseURL function to use context and export permission evaluation fction

* remove provisioning file

* refactor licenseURL to take in a bool to avoid circular dependencies

* remove function for appending nav link, as it was only used once and move the function to create admin node

* better argument names

* create a function for permission checking

* extend permission checking when displaying server stats

* enable the use of enterprise access control actions when evaluating permissions

* import ordering

* move licensing FGAC action definitions to models package to allow access from oss

* move evaluatePermissions for routes to context serve

* change permission evaluator to take in more permissions

* move licensing FGAC actions again to appease wire

* avoid index out of bounds issue in case no children are passed in when creating server admin node

* simplify syntax for permission checking

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* update loading state for server stats

* linting

* more linting

* fix test

* fix a frontend test

* update "licensing.reports:read" action naming

* UI doesn't allow reading only licensing reports and not the rest of licensing info

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2021-10-05 14:54:26 +01:00
..
middleware Chore: pass url parameters through context.Context (#38826) 2021-09-14 18:34:56 +02:00
mock Access control: Add a scope to Data Sources GET endpoint (#38933) 2021-09-07 17:13:11 +02:00
ossaccesscontrol Chore: Cleanup usageStatsMock duplication (#39710) 2021-09-29 09:59:02 +03: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 AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01: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 Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
scope.go Access Control: refactor permission evaluator to be more flexible (#35996) 2021-08-24 11:36:28 +02:00