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
de2c5783fa
Access Control: Pass db session to hooks ( #44428 )
...
* Move hook calls to database and pass session
2022-01-25 17:12:00 +01:00
Karl Persson
c3ca2d214d
Access control: Refactor managed permission system to create api and frontend components ( #42540 )
...
* Refactor resource permissions
* Add frondend components for resource permissions
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com >
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com >
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2021-12-20 09:52:24 +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
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