Karl Persson
44ffbfd6aa
RBAC: Refactor GetUserPermissions to use []accesscontrol.Permission ( #50683 )
...
* Return slice of permissions instead of slice of pointers for permissions
2022-06-14 10:17:48 +02:00
Karl Persson
1c679e814b
AccessControl: Only return action and scope for user permissions and make them unique ( #48939 )
...
* Only return action and scope for user permissions and make them unique
2022-05-12 17:15:18 +02:00
Karl Persson
58fa119270
sort user permissions by scope ( #48928 )
2022-05-12 11:46:56 +02:00
Karl Persson
e844b263c7
Access control: Load permissions from memory and database ( #42080 )
...
* Load permission from both in memory and from database
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2022-01-28 16:11:18 +01:00
Karl Persson
3c659f1ea0
Access Control: Move part of access control database ( #40483 )
...
* Add accesscontrol migrations
* Add ResourceStore interface and related structs
* Add team/user/builtin-role
* Add accesscontrol database with functions to handle managed roles and
permissions
* Add ResourceManager
* Add GetUserPermissions
* Update pkg/services/accesscontrol/accesscontrol.go
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
2021-11-11 14:02:53 +01:00
Alexander Zobnin
823f0bc460
Access Control: move features to Enterprise ( #32640 )
...
* Move db package WIP
* Implement OSS access control
* Register OSS access control
* Fix linter error in tests
* Fix linter error in evaluator
* Simplify OSS tests
* Optimize builtin roles
* Chore: add comments to the exported functions
* Remove init from ossaccesscontrol package (moved to ext)
* Add access control as a dependency for http server
* Modify middleware to receive fallback function
* Middleware: refactor fallback function call
* Move unused models to enterprise
* Simplify AccessControl type
* Chore: use bool IsDisabled() method instead of CanBeDisabled interface
2021-04-06 16:49:09 +03:00
Alexander Zobnin
20f6ba5ba4
Access-control: use role UID when adding/removing roles ( #32438 )
2021-03-29 17:36:48 +02:00
Alexander Zobnin
20bd591bea
Access control: Basic structure and functionality behind feature toggle ( #31893 )
...
Co-authored-by: Alexander Zobnin <alexander.zobnin@grafana.com >
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com >
Co-authored-by: Arve Knudsen <arve.knudsen@grafana.com >
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@grafana.com >
2021-03-22 13:22:48 +01:00