grafana/pkg/infra
Artur Wierzbicki e96f67ae2e
Renderer: Add sanitize API (#50936)
* svg fun

* #50597: add proto

* #50597: add sanitizer methods

* #50597: add provider

* #50597: use sanitizer

* #50597: use sanitizer

* update grafana to match new api

* add comments

* add capability check

* add timing

* update sanitize path

* improve log message

* strings.HasPrefix rather than filepath.IsAbs

* filepath.Clean + filepath.ToSlash for windows

* read 404

* remove `path.clean` from `getPathAndScope`

* add resp body close

* remove unneeded prop

* Update pkg/services/rendering/rendering.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* remove test files

* filepath.ToSlash correct wrapping

* filepath.ToSlash correct wrapping

* filepath.ToSlash comment

* compilation error

* lint fix

* fix error message

* Update pkg/services/rendering/rendering.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* add `image/svg+xml` mime type

* refactored log

* refactored log

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2022-07-07 15:32:18 +04:00
..
filestorage Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
fs test: use T.TempDir to create temporary test directory (#44947) 2022-03-22 15:43:29 +01:00
httpclient datasource metrics: Correct help text for histograms (#50942) 2022-06-16 14:18:09 +02:00
kvstore KVStore: Extend kvstore to retrieve all items (#50848) 2022-06-23 11:12:07 +02:00
localcache Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
log Chore: Update ConcreteLogger to implement gokit Logger interface (#51599) 2022-06-29 18:16:10 -04:00
metrics PublicDashboards: collect stats for public dashboards (#50553) 2022-06-23 12:02:57 -03:00
network Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
process PluginsCatalog: adding error information about disabled plugins. (#39171) 2021-09-20 09:08:00 +02:00
remotecache Chore: Remove Wrap (#50048) 2022-06-03 09:24:24 +02:00
serverlock Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
tracing Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
usagestats UsageStats: fixed elasticsearch version number to semver (#49054) 2022-07-04 11:08:01 +02:00