grafana/pkg/models
Joan López de la Franca Beltran 6415d2802e
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>
2021-02-03 20:47:45 +01:00
..
address.go feat(organization): added update org address to http api and to org details settings view, closes #2672 2015-09-08 14:22:44 +02:00
alert_notifications.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
alert_test.go Chore: Rewrite models alert test to standard library (#30021) 2021-01-01 13:18:47 +01:00
alert.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
apikey.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
context.go Middleware: Add CSP support (#29740) 2021-01-12 07:42:32 +01:00
dashboard_acl_test.go Chore: Rewrite models dashboard acl test to standard library (#30022) 2021-01-01 13:22:48 +01:00
dashboard_acl.go Permissions: Validate against Team/User permission role update (#29101) 2020-11-18 15:36:41 +01:00
dashboard_snapshot.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
dashboard_version.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
dashboards_test.go Chore: Rewrite models dashboards test to standard library (#30023) 2021-01-01 13:29:40 +01:00
dashboards.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
datasource_cache_test.go Auth: Use SigV4 lib from grafana-aws-sdk (#30713) 2021-02-01 16:07:27 +01:00
datasource_cache.go Auth: Use SigV4 lib from grafana-aws-sdk (#30713) 2021-02-01 16:07:27 +01:00
datasource.go Plugins: Add Open Distro to the list of data sources supported by sigv4 (#30308) 2021-01-15 17:01:29 +03:00
folders.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
health.go feat: added api health endpoint that does not require auth and never creates sessions, returns db status as well. #3302 2017-04-25 17:17:45 +02:00
helpflags.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
licensing.go CDN: Adds support for serving assets over a CDN (#30691) 2021-02-01 10:13:09 +01:00
live.go Live: update centrifuge and the ChannelHandler api (#28843) 2020-11-05 10:37:04 -08:00
login_attempt.go login: uses epochs for login throtting. 2018-02-16 17:25:46 +01:00
measurement.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
models.go Okta OAuth provider (team sync support) (#22972) 2020-04-02 17:35:48 +03:00
notifications.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
org_user.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
org.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
playlist.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_setting_cache_test.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_setting_cache.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
plugin_settings.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
preferences.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00
quotas.go Backend: Remove more globals (#29644) 2020-12-15 19:09:04 +01:00
shorturl.go Short URL: Cleanup unvisited/stale short URLs (#28867) 2020-11-09 18:08:16 +01:00
star.go Chore: Fix staticcheck issues (#28860) 2020-11-05 13:07:06 +01:00
stats.go Usage Stats: Remove unused method for getting user stats (#30074) 2021-01-26 14:13:25 +01:00
tags_test.go Chore: Rewrite models tags test to standard library (#30041) 2021-01-05 17:20:41 +01:00
tags.go Create annotations (#8197) 2017-10-07 10:31:39 +02:00
team_member.go UserTableView: Show user name in table view (#18108) 2019-11-21 12:44:46 +02:00
team.go Add an option to hide certain users in the UI (#28942) 2020-11-24 12:10:32 +01:00
temp_user.go Users: Expire old user invites (#27361) 2020-10-13 12:30:09 +02:00
test_data.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
user_auth.go Auth: add expired token error and update CreateToken function (#30203) 2021-01-19 17:55:53 +01:00
user_token.go Auth: add expired token error and update CreateToken function (#30203) 2021-01-19 17:55:53 +01:00
user.go Chore: Fix issues reported by staticcheck; enable stylecheck linter (#28866) 2020-11-05 15:37:11 +01:00
validations.go Plugins: Requests validator (#30445) 2021-02-03 20:47:45 +01:00