grafana/pkg/services/accesscontrol/database
Ieva cfa1a2c55f
RBAC: Split non-empty scopes into kind, attribute and identifier fields for better search performance (#71933)
* add a feature toggle

* add the fields for attribute, kind and identifier to permission

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>

* set the new fields when new permissions are stored

* add migrations

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>

* remove comments

* Update pkg/services/accesscontrol/migrator/migrator.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* feedback: put column migrations behind the feature toggle, added an index, changed how wildcard scopes are split

* PR feedback: add a comment and revert an accidentally changed file

* PR feedback: handle the case with : in resource identifier

* switch from checking feature toggle through cfg to checking it through featuremgmt

* don't put the column migrations behind a feature toggle after all - this breaks permission queries from db

---------

Co-authored-by: Kalle Persson <kalle.persson@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-07-21 15:23:01 +01:00
..
database_test.go RBAC: Split non-empty scopes into kind, attribute and identifier fields for better search performance (#71933) 2023-07-21 15:23:01 +01:00
database.go RBAC: Add a function to save external service roles (#66299) 2023-05-09 13:19:38 +02:00
externalservices_test.go Auth: Use SHA-1 for generating an ID for External Service Role (#71079) 2023-07-10 09:47:33 +02:00
externalservices.go Auth: Use SHA-1 for generating an ID for External Service Role (#71079) 2023-07-10 09:47:33 +02:00
policies.go Schema: Add schema for role+access policies (#68047) 2023-05-24 10:31:57 -07:00