grafana/pkg/middleware
grafana-delivery-bot[bot] c4b8303799
[v11.2.x] Canvas: Allow API calls to grafana origin (#94129)
Canvas: Allow API calls to grafana origin  (#91822)

* allow post URL
* check for config
* allow relative paths
* add allowed internal pattern; add checks for method
* update defaults.ini
* add custom header
* update config comment
* use globbing, switch to older middleware - deprecated call
* add codeowner
* update to use current api, add test
* update fall through logic

* Update pkg/middleware/validate_action_url.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Update pkg/middleware/validate_action_url.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* add more tests

* Update pkg/middleware/validate_action_url_test.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* fix request headers

* add additional tests for all verbs

* fix request headers++

* throw error when method is unknown

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Brian Gann <bkgann@gmail.com>
Co-authored-by: Brian Gann <briangann@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
(cherry picked from commit f64b121ddb)

Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
2024-10-01 23:21:23 -04:00
..
cookies
csrf
loggermw Chore: Remove sensitive information from presigned URLs prior to logging (#87035) 2024-06-24 14:53:42 +02:00
requestmeta
auth.go RBAC: Allow plugins to use scoped actions (#90946) 2024-07-25 17:22:42 +03:00
auth_test.go Identity: Rename "namespace" to "type" in the requester interface (#90567) 2024-07-25 12:52:14 +03:00
csp.go
dashboard_redirect.go
dashboard_redirect_test.go
gziper.go
middleware.go Fix: Proper plugin logo loading depending on staging (#88247) 2024-05-27 10:26:30 +02:00
middleware_test.go [v11.2.x] Canvas: Allow API calls to grafana origin (#94129) 2024-10-01 23:21:23 -04:00
org_redirect.go User: support setting org and help flags though update function (#86535) 2024-04-29 08:53:05 +02:00
org_redirect_test.go User: support setting org and help flags though update function (#86535) 2024-04-29 08:53:05 +02:00
quota.go
quota_test.go Identity: Rename "namespace" to "type" in the requester interface (#90567) 2024-07-25 12:52:14 +03:00
recovery.go
recovery_test.go
request_metadata_test.go
request_metrics.go Metrics: Add ability to disable classic histogram for HTTP metric (#88315) 2024-06-18 15:37:44 -04:00
request_test.go
request_tracing.go infra(tracing): Fix span naming order-of-operations bug (#90025) 2024-07-04 07:05:14 -04:00
subpath_redirect.go
subpath_redirect_test.go
testing.go
validate_action_url.go [v11.2.x] Canvas: Allow API calls to grafana origin (#94129) 2024-10-01 23:21:23 -04:00
validate_action_url_test.go [v11.2.x] Canvas: Allow API calls to grafana origin (#94129) 2024-10-01 23:21:23 -04:00
validate_host.go