grafana/pkg/services/rendering
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
..
auth.go
capabilities_test.go
capabilities.go Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
http_mode.go Previews: create crawler auth setup service (#47349) 2022-04-12 19:34:04 +02:00
interface.go Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
mock.go Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
plugin_mode.go
rendering_test.go Add error options for rendering to return errors on failure (#48864) 2022-05-09 19:11:24 +01:00
rendering.go Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
svgSanitizer.go Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00