DescriptionAdd HSTS and CSP headers to all services and static files.
- The services are not accessible over HTTP anyway.
- Refuse loading anything not over HTTPS and outside of the same-origin through
CSP.
- Add .woff to supported static files.
Update both *.yaml for static content and AuthenticatingHandler to set these
headers.
References:
http://www.html5rocks.com/en/tutorials/security/content-security-policy/
https://www.owasp.org/index.php/Content_Security_Policy
https://www.owasp.org/index.php/HTTP_Strict_Transport_Security
https://www.owasp.org/index.php/Clickjacking_Defense_Cheat_Sheet
R=vadimsh@chromium.org
BUG=swarming:96
Committed: https://code.google.com/p/swarming/source/detail?repo=default&r=4e8ac6b055fcce2e46576a2a73deb23dbc3e25ec
Patch Set 1 #Patch Set 2 : Rewrote #
Total comments: 2
Patch Set 3 : Further strict CSP #Patch Set 4 : Tested on 3 services, relax some rules a little #
MessagesTotal messages: 8
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||