grafana/pkg/services/pluginsintegration
Eric Leijonmarck be5ba68132
Team LBAC: Add teamHeaders for datasource proxy requests (#76339)
* Add teamHeaders for datasource proxy requests

* adds validation for the teamHeaders

* added tests for applying teamHeaders

* remove previous implementation

* validation for header values being set to authproxy

* removed unnecessary checks

* newline

* Add middleware for injecting headers on the data source backend

* renamed feature toggle

* Get user teams from context

* Fix feature toggle name

* added test for validation of the auth headers and fixed evaluation to cover headers

* renaming of teamHeaders to teamHTTPHeaders

* use of header set for non-existing header and add for existing headers

* moves types into datasources

* fixed unchecked errors

* Refactor

* Add tests for data model

* Update pkg/api/datasources.go

Co-authored-by: Victor Cinaglia <victor@grafana.com>

* Update pkg/api/datasources.go

Co-authored-by: Victor Cinaglia <victor@grafana.com>

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Victor Cinaglia <victor@grafana.com>
2023-10-17 11:23:54 +01:00
..
adapters Replace signed in user for identity.requester (#74048) 2023-08-30 16:51:18 +02:00
angulardetectorsprovider Plugins: Angular patterns: Use ETag for GCOM requests (#74453) 2023-09-12 18:03:57 +02:00
angularinspector Plugins: Angular detector: Log detection patterns at debug level (#74802) 2023-09-13 18:35:21 +02:00
angularpatternsstore Plugins: Angular patterns: Use ETag for GCOM requests (#74453) 2023-09-12 18:03:57 +02:00
cachekvstore Plugins: Refactor kvstore usage in signing keys and angular patterns (#73154) 2023-09-05 16:20:42 +02:00
clientmiddleware Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
config Feature: Allow to skip plugin loading (#74840) 2023-09-14 12:58:12 +02:00
dashboards Plugins: Move store and plugin dto to pluginsintegration (#74655) 2023-09-11 13:59:24 +02:00
keyretriever Plugins: Refactor kvstore usage in signing keys and angular patterns (#73154) 2023-09-05 16:20:42 +02:00
keystore Plugins: Refactor kvstore usage in signing keys and angular patterns (#73154) 2023-09-05 16:20:42 +02:00
licensing Plugins: Migrate licensing and access control to pkg/services/pluginsintegration package (#65258) 2023-03-27 11:15:37 +02:00
loader Chore: Avoid showing plugin version if it's %VERSION% (#75974) 2023-10-11 10:49:30 +02:00
pipeline Plugins: Rename oauth package to auth (#75611) 2023-09-28 12:18:09 +02:00
pluginaccesscontrol Plugins: Migrate licensing and access control to pkg/services/pluginsintegration package (#65258) 2023-03-27 11:15:37 +02:00
plugincontext Chore: Remove plugincontext.ErrPluginNotFound (#74997) 2023-09-25 13:10:47 +03:00
pluginerrs Plugins: Add context to StaticRouteResolver and ErrorResolver interfaces (#73121) 2023-08-10 10:32:12 +02:00
pluginsettings Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
pluginstore Plugins: Move alias support to plugin json (but still hardcoded) (#75129) 2023-09-29 08:20:37 -07:00
serviceregistration AuthN: New service to support multiple authentication providers for plugins (#75979) 2023-10-05 18:13:06 +02:00
doc.go Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132) 2022-12-01 19:08:36 +01:00
plugins_integration_test.go Azure monitor/remove graf tracing (#75927) 2023-10-05 02:38:26 +03:00
pluginsintegration.go Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
test_helper.go Plugins: Rename oauth package to auth (#75611) 2023-09-28 12:18:09 +02:00