grafana/pkg/services/accesscontrol
Eric Leijonmarck 371d7850a5
Auth: Service account store refactor (#58961)
* refactor: renaming of files from database to store

* refactor: make service account store private

- moves store interface to manager package
- adds an interface to the ProvideAPI constructor
- refactors tests to use the store when necessary
- adds mocks for the new interface implementations in the tests package

* wip

* refactor: make fakestore in service

* wip

* wip

* wip

* working tests

* trailing whitespaces

* Update pkg/services/serviceaccounts/api/api.go

* Update pkg/services/serviceaccounts/tests/common.go

* Update pkg/services/serviceaccounts/tests/common.go

* refactor: doc string for retriever

* fix import unused

* remove: serviceaccount from featuretoggle

* added: back legacy serviceaccounts feature toggle

* added: docs

* refactor: make query for the SearchQuery

* add: validation of service input fields

* add validation
2022-12-13 14:56:10 +01:00
..
acimpl DataSourcePermissions: Handle licensing properly for ds permissions (#59694) 2022-12-02 13:19:14 +01:00
actest RBAC: Add an endpoint to list all user permissions (#57644) 2022-11-30 15:38:49 +01:00
api RBAC: Add an endpoint to list all user permissions (#57644) 2022-11-30 15:38:49 +01:00
database DataSourcePermissions: Handle licensing properly for ds permissions (#59694) 2022-12-02 13:19:14 +01:00
mock RBAC: Add an endpoint to list all user permissions (#57644) 2022-11-30 15:38:49 +01:00
ossaccesscontrol Auth: Service account store refactor (#58961) 2022-12-13 14:56:10 +01:00
pluginutils RBAC: Validate plugin app access permission targets the plugin (#59468) 2022-11-30 13:55:07 +01:00
resourcepermissions chore: remove CreateUser from sqlstore & replace with userService.CreateUserForTests (#59910) 2022-12-07 11:03:22 -05:00
accesscontrol.go RBAC: Add an endpoint to list all user permissions (#57644) 2022-11-30 15:38:49 +01: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 RBAC: Redirect to /login when forceLogin is set (#56469) 2022-10-07 08:18:56 +02:00
middleware.go Auth: Refactor auth package (#58920) 2022-11-18 09:56:06 +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: Add function to generate wildcards from prefix (#54275) 2022-08-26 17:10:35 +02:00