Files
teleport/lib/web
Isaiah Becker-MayerandZac Bergquist ca74d87730 Refactors httpheaders.go to use a map[string][]string instead of a map[string]string (#28334)
* Refactors httpheaders.go to use a map[string][]string instead of a
map[string]string.  This allows us to more easily stack multiple values
for the same csp directive.

* adds dedup

* uses utils.Deduplicate

* caches result of getIndexContentSecurityPolicy to improve performance

* Adds caching for SetAppLaunchContentSecurityPolicy

* moves caching to before combineCSPMaps so that we actually get significant improvements

* adds caching to SetRedirectPageContentSecurityPolicy

* make caches goroutine safe

* use an RWMutex because there are many more reads than writes

* Update lib/httplib/httpheaders.go

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>

---------

Co-authored-by: Zac Bergquist <zac.bergquist@goteleport.com>
2023-08-10 19:16:50 +00:00
..
2023-06-30 17:12:12 +00:00
2023-06-30 17:12:12 +00:00
2023-06-30 17:12:12 +00:00
2023-06-30 17:12:12 +00:00
2023-06-30 17:12:12 +00:00
2023-06-30 17:12:12 +00:00
2023-06-30 17:12:12 +00:00
2023-06-30 17:12:12 +00:00
2022-10-28 20:20:28 +00:00
2022-10-28 20:20:28 +00:00