Plugins: Requests validator (#30445)
* Introduce PluginRequestValidator abstraction with a NoOp implementation * Update PluginRequestValidator abstraction to use the dsURL instead * Inject PluginRequestValidator into the HTTPServer and validate requests going through data source proxy * Inject PluginRequestValidator into the BackendPluginManager and validate requests going through it * Validate requests going through QueryMetrics & QueryMetricsV2 * Validate BackendPluginManager health requests * Fix backend plugins manager tests * Validate requests going through alerting service * Fix tests * fix tests * goimports Co-authored-by: Leonard Gram <leo@xlson.com>
This commit is contained in:
co-authored by
Leonard Gram
parent
4a324e3d74
commit
6415d2802e
@@ -5,13 +5,14 @@
|
||||
package mock_gcsifaces
|
||||
|
||||
import (
|
||||
storage "cloud.google.com/go/storage"
|
||||
context "context"
|
||||
reflect "reflect"
|
||||
|
||||
storage "cloud.google.com/go/storage"
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
gcsifaces "github.com/grafana/grafana/pkg/ifaces/gcsifaces"
|
||||
google "golang.org/x/oauth2/google"
|
||||
jwt "golang.org/x/oauth2/jwt"
|
||||
reflect "reflect"
|
||||
)
|
||||
|
||||
// MockStorageClient is a mock of StorageClient interface
|
||||
|
||||
Reference in New Issue
Block a user