grafana/pkg/util
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
..
cmd
cmputil Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
converter Prometheus: Fix creation of invalid dataframes with exemplars (#75187) 2023-09-21 07:30:14 -04:00
errutil Instrumentation: Handle context.Canceled (#75867) 2023-10-10 12:28:39 +02:00
maputil Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
proxyutil Team LBAC: Add teamHeaders for datasource proxy requests (#76339) 2023-10-17 11:23:54 +01:00
retryer
ticker
xorm Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
contextutil_test.go
contextutil.go Chore: Replace go-multierror with errors package (#66432) 2023-06-19 12:29:45 +03:00
encoding_test.go
encoding.go
encryption_test.go
encryption.go
filepath_test.go
filepath.go
ip_address_test.go
ip_address.go
json.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
math.go
md5_test.go
md5.go
pointer.go
reverse_test.go
reverse.go
shortid_generator_test.go Alerting: Update provisioning to validate user-defined UID on create (#73793) 2023-09-08 15:09:35 -04:00
shortid_generator.go Alerting: Update provisioning to validate user-defined UID on create (#73793) 2023-09-08 15:09:35 -04:00
split_email_test.go
split_email.go
strings_test.go
strings.go
tls_test.go
tls.go
url_test.go
url.go
validation_test.go
validation.go