grafana/pkg/api/dtos
Kristian Bremberg 35407142d0
Feature: Trusted Types support (#64975)
* Draft: Feature: Trusted Types support

* remove trusted-types package

* Create policy before jQuery and Angular is loaded and add feature flag

* Add trustedTypePolicies

* Sanitize scriptURL

* Add TT meta tag for test env

* Move trusted types into core

* Add DOMParser support for TrustedHTML

* Seperate RSS sanitization and add better TrustedHTML support

* Get test CSP header from config

* Remove dompurify dep from core

* Add documentation for trusted types

* Apply suggestions from code review

Co-authored-by: Kristian Bremberg <114284895+KristianGrafana@users.noreply.github.com>

* Add comment about Github discussion thread and things breaking

* Remove changes from News panel

* Remove TT feature toggle

* Expose TT and CSPReportOnly to frontend

* Log errors in console when CSP report only is enabled

* Log error for reporting and remove test mode

* Only insert CSP header in HTML for dev env

* Update docs

---------

Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
2023-04-27 18:20:37 +02:00
..
acl.go chore: move dashboard_acl models into dashboard service (#62151) 2023-01-26 08:46:30 -05:00
alerting_test.go Fix misspell issues 2018-09-21 11:54:36 +02:00
alerting.go Chore: rename Id to ID in alert notification models (#62868) 2023-02-03 15:46:55 +01:00
annotations.go [Bug] Fix annotations update/patch (#60385) 2022-12-26 09:53:52 -05:00
apikey.go API keys: Add last_used_at and docs changes for migration (#64293) 2023-03-09 14:16:42 +00:00
dashboard.go PublicDashboards: Time range settings (#61585) 2023-01-18 10:54:19 -03:00
datasource.go backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
folder.go NestedFolders: Return full folder hierarchy in Folder response (#66835) 2023-04-25 11:22:20 +03:00
frontend_settings.go Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00
index.go Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00
invite.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
live.go Live: http publish, refactor live interfaces (#32317) 2021-03-30 13:23:29 +03:00
models_test.go Chore: Fix goimports grouping in pkg/api (#62419) 2023-01-30 08:18:26 +00:00
models.go Chore: Pass signed user_hash to Intercom via Rudderstack (#63921) 2023-03-03 14:39:53 +00:00
org.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
playlist.go Added playlist controls to new react DashNav 2019-02-04 21:08:30 +01:00
plugins.go Plugins: Add secure JSON fields to plugin setting DTO (#55313) 2022-09-21 12:20:11 +02:00
prefs.go Cookies: Provide a mechanism for per user control over cookies (#61566) 2023-02-21 11:19:07 +01:00
short_url.go Dashboard: Allow shortlink generation (#27409) 2020-10-14 12:48:48 +02:00
user_token.go Feature: Parse user agent string in user auth token api response (#16… (#17504) 2019-06-11 14:12:52 +02:00
user.go Chore: Remove unused Go code (#28852) 2020-11-17 11:51:31 +01:00