Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web security improvements #146

Merged
merged 9 commits into from
Aug 28, 2016
Merged

Web security improvements #146

merged 9 commits into from
Aug 28, 2016

Conversation

divergentdave
Copy link
Collaborator

@divergentdave divergentdave commented Aug 26, 2016

Motivated by Mozilla's HTTP observatory, here are some security improvements for the site. This boosts the grade from a C- to an A+ so far.

This still needs a little more testing, and I have a phantom CSP error to track down. In Firefox, but not Chromium, I get the following message.

Content Security Policy: The page's settings blocked the loading of a resource at self ("default-src https://staging.oversight.garden https://www.google-analytics.com").

The Chosen library seems to be generating CSP errors too; I'll see if those are fixed upstream.

@divergentdave
Copy link
Collaborator Author

This is running into brianblakely/nodep-date-input-polyfill#4 and harvesthq/chosen#2423 on the reports pgae for now.

@divergentdave divergentdave changed the title [WIP] Web security improvements Web security improvements Aug 26, 2016
@divergentdave
Copy link
Collaborator Author

I added unsafe-inline to the style-src rules, this is a pretty good compromise for now. I'll keep an eye on the above-mentioned issues. We can tighten the style-src policy later after fixing or replacing the libraries in question.

@divergentdave
Copy link
Collaborator Author

FYI Pushed a couple more things and redeployed to https://staging.oversight.garden/

@konklone
Copy link
Owner

This is super solid.

@konklone konklone merged commit ddf77de into master Aug 28, 2016
@konklone konklone deleted the http-observatory branch August 28, 2016 00:57
@konklone
Copy link
Owner

Also cc-ing @marumari for her enjoyment.

@april
Copy link

april commented Aug 28, 2016

Awesome! Looks great and fantastic work. Glad you've found the Observatory to be helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants