grafana/pkg/expr
Marcus Efraimsson 6dbe3b555f
Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132)
Adding support for backend plugin client middlewares. This allows headers in outgoing 
backend plugin and HTTP requests to be modified using client middlewares.

The following client middlewares added:
Forward cookies: Will forward incoming HTTP request Cookies to outgoing plugins.Client 
and HTTP requests if the datasource has enabled forwarding of cookies (keepCookies).
Forward OAuth token: Will set OAuth token headers on outgoing plugins.Client and HTTP 
requests if the datasource has enabled Forward OAuth Identity (oauthPassThru).
Clear auth headers: Will clear any outgoing HTTP headers that was part of the incoming 
HTTP request and used when authenticating to Grafana.
The current suggested way to register client middlewares is to have a separate package, 
pluginsintegration, responsible for bootstrap/instantiate the backend plugin client with 
middlewares and/or longer term bootstrap/instantiate plugin management. 

Fixes #54135
Related to #47734
Related to #57870
Related to #41623
Related to #57065
2022-12-01 19:08:36 +01:00
..
classic Alerting: Fix ConditionsCmd behavior when last is No Data (#58953) 2022-11-28 21:56:22 +00:00
mathexp Alerting: Improve test coverage for ConditionsCmd (#58603) 2022-11-11 09:27:35 +00:00
commands_test.go Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
commands.go Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
graph_test.go Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
graph.go Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132) 2022-12-01 19:08:36 +01:00
nodes_test.go Alerting: Support Unwrap for QueryError in expr package (#41743) 2021-11-17 10:07:24 +00:00
nodes.go Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132) 2022-12-01 19:08:36 +01:00
service_test.go Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
service.go Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
threshold_test.go Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
threshold.go Chore: Expression engine to support relative time range (#57474) 2022-10-26 16:13:58 -04:00
transform.go Plugins: Refactor forward of cookies, OAuth token and header modifications by introducing client middlewares (#58132) 2022-12-01 19:08:36 +01:00