grafana/pkg/services/accesscontrol
Ieva eb9ef34272
RBAC: Permission check performance improvements for the new search (#60729)
* Add checker and update the resource filter function for new search

* Add tests for checker

* small fixes

* handle location for panels correctly

* clean up checker code and extend the tests for it

* more fixes, but tests don't quite work yet

* a small change to return error

* cleanup

* more simplification

* fix tests

* correct wrong argument ordering & use constant

* Apply suggestions from code review

Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com>

* import

* check general folder from permission checker function

* handle root folder aka general folder properly

* update tests

* clean up

* lint

* add fix from main

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: Artur Wierzbicki <artur.wierzbicki@grafana.com>
2023-01-27 12:12:30 +00:00
..
acimpl chore: move models/licensing into licensing service (#61878) 2023-01-23 11:53:43 -05:00
actest ServiceAccount: Rewrite the api test to use fakes (#60441) 2022-12-19 09:27:52 +01:00
api Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
database chore: move dashboard_acl models into dashboard service (#62151) 2023-01-26 08:46:30 -05:00
mock Access control: endpoint for searching single user permissions (#59669) 2022-12-14 10:53:25 +00:00
ossaccesscontrol chore: move dashboard_acl models into dashboard service (#62151) 2023-01-26 08:46:30 -05:00
pluginutils RBAC: Validate plugin app access permission targets the plugin (#59468) 2022-11-30 13:55:07 +01:00
resourcepermissions Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
accesscontrol_test.go RBAC: use scope reduction for user permission listing (#61583) 2023-01-17 09:58:40 +00:00
accesscontrol.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
checker_test.go RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
checker.go RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00
errors.go RBAC: Validate plugin app access permission targets the plugin (#59468) 2022-11-30 13:55:07 +01:00
evaluator_test.go RBAC: Split up service into several components (#54002) 2022-08-24 13:29:17 +02:00
evaluator.go Perfomance: add preallocation for some slices (#59263) 2022-11-28 13:10:24 +01:00
filter_bench_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
filter_test.go chore: remove sqlstore & mockstore dependencies from (most) packages (#57087) 2022-10-19 09:02:15 -04:00
filter.go RBAC: Improve performance of dashboard filter query (#56813) 2022-10-25 11:14:27 +02:00
metadata_bench_test.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
metadata_test.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
metadata.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
middleware_test.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
middleware.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
models.go DataSourcePermissions: Handle licensing properly for ds permissions (#59694) 2022-12-02 13:19:14 +01:00
resolvers_test.go RBAC: Fix resolver issue on wildcard resulting in wrong status code for endpoints (#54208) 2022-08-25 12:50:27 +02:00
resolvers.go RBAC: Allow role registration for plugins (#57387) 2022-11-07 11:30:45 +01:00
roles_test.go AccessControl: Remove package lists for roles and grants (#47141) 2022-04-06 09:31:14 +02:00
roles.go RBAC: Add an endpoint to list all user permissions (#57644) 2022-11-30 15:38:49 +01:00
scope_test.go RBAC: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00
scope.go RBAC: Permission check performance improvements for the new search (#60729) 2023-01-27 12:12:30 +00:00