grafana/pkg/api/pluginproxy
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
..
test-data dsproxy: allow multiple access tokens per datasource 2018-06-12 17:39:38 +02:00
ds_auth_provider_test.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
ds_auth_provider.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
ds_proxy_test.go AccessControl: Resolve attribute based scopes to id based scopes (#40742) 2022-01-18 17:34:35 +01:00
ds_proxy.go OAuth: Forward id token to the data source (#42422) 2021-11-29 15:40:05 +01:00
pluginproxy_test.go Rename AddHandlerCtx to AddHandler (#43557) 2021-12-28 16:08:07 +01:00
pluginproxy.go Rename DispatchCtx to Dispatch (#43563) 2021-12-28 17:36:22 +01:00
token_provider_azure.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
token_provider_gce.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
token_provider_generic.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
token_provider_jwt.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
token_provider_test.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
token_provider.go AzureMonitor: Use auth middleware for QueryData requests (#35343) 2021-06-11 17:02:24 +02:00
utils_test.go API: Rewrite tests from goconvey (#29091) 2020-11-17 11:31:35 +01:00
utils.go Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00