grafana/pkg/services/accesscontrol
Gabriel MABILLE 54280fc9d7
AccessControl: Resolve attribute based scopes to id based scopes (#40742)
* AccessControl: POC scope attribute resolution

Refactor based on ScopeMutators

test errors and calls to cache

Add comments to tests

Rename logger

Create keywordMutator only once

* AccessControl: Add AttributeScopeResolver registration

Co-authored-by: gamab <gabriel.mabille@grafana.com>

* AccessControl: Add AttributeScopeResolver to datasources

Co-authored-by: gamab <gabriel.mabille@grafana.com>

* Test evaluation with translation

* fix imports

* AccessControl: Test attribute resolver

* Fix trailing white space

* Make ScopeResolver public for enterprise redefine

* Handle wildcard

Co-authored-by: Jguer <joao.guerreiro@grafana.com>

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-01-18 17:34:35 +01:00
..
database quote reserved keyword (#43652) 2022-01-04 13:35:52 +01:00
middleware AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
mock AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
ossaccesscontrol AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
resourcepermissions Remove Macaron ParamsInt64 function from code base (#43810) 2022-01-15 00:55:57 +08:00
accesscontrol_bench_test.go AccessControl: Remove unused error from GetResourcesMetadata (#43710) 2022-01-05 17:24:14 +01:00
accesscontrol_test.go AccessControl: Remove unused error from GetResourcesMetadata (#43710) 2022-01-05 17:24:14 +01:00
accesscontrol.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
errors.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
evaluator_test.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
evaluator.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
filter_bench_test.go Access control: Add access control sql filter to org user queries (#43961) 2022-01-13 14:40:32 +01:00
filter_test.go Access control: Add access control sql filter to org user queries (#43961) 2022-01-13 14:40:32 +01:00
filter.go Access control: Add access control sql filter to org user queries (#43961) 2022-01-13 14:40:32 +01:00
models.go Access control: permissions for team creation (#43506) 2022-01-10 17:05:53 +00:00
roles_test.go Access Control: Rename fixed roles (#41288) 2021-11-17 15:40:39 +01:00
roles.go Access control: allow granting a fixed role dynamically based on the startup settings (#43867) 2022-01-11 11:58:40 +01:00
scope_test.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
scope.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00