grafana/pkg/services/featuremgmt
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
..
strcase Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
testdata FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
codeowners.go Chore: Add sharing squad as codeowners (#73828) 2023-08-30 22:34:07 +03:00
manager_test.go FeatureFlags: define features outside settings.Cfg (take 3) (#44443) 2022-01-26 09:44:20 -08:00
manager.go Feature Management: Update admin page UI after a successful update (#76380) 2023-10-13 11:54:34 +01:00
models.go Feature Management: Update admin page UI after a successful update (#76380) 2023-10-13 11:54:34 +01:00
registry.go Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
service_test.go chore: move models/licensing into licensing service (#61878) 2023-01-23 11:53:43 -05:00
service.go FeatureFlags: Change alpha/beta language to align with release staging language (#69422) 2023-06-08 09:16:55 -07:00
settings_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
settings.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
toggles_gen_test.go Chore: Remove topnav feature flag (#72337) 2023-07-26 11:07:18 +00:00
toggles_gen.csv Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
toggles_gen.go Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
usage_stats_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
usage_stats.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00