-
Notifications
You must be signed in to change notification settings - Fork 2
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
Content Security Policy rules to consider #37
Comments
@petecooper I've spent some time tightening these CSP rules, if you want to upload latest to server? I need to test some off the script and style ones work in situ before I tick the list off completely. Also, unsure why you have a separate block for SVG in your config files? |
Nginx That said, it's been a while since I've reassessed the appropriateness of the SVG CSP stuff, so I'll take a look and rebuild when I have some time. |
OK, the only SVG that would be potentially affected by this was not essential, so I've removed it now. Basically, you can remove the special CSP SVG block in all sites apart from the design patterns from 4.6 to 4.8. |
fyi confs uploaded and Nginx bounced just now. |
@petecooper in order to avoid using This article might help create nonce values in Nginx: https://scotthelme.co.uk/csp-nonce-support-in-nginx/ More specifically this solution: https://scotthelme.co.uk/csp-nonce-support-in-nginx/#comment-3172187021 Can you investigate the Nginx side, I can then investigate the Textpattern side? Looping in textpattern/textpattern#1142 for future reference too. |
Note, I have removed |
When we come to tighten up the CSP, here are all the potential rules it can have (see below). Note that some of these won't be applicable to our sites but we can either lock them down if unused or omit the rule. Some of these (not all) fallback to the
default-src
rule anyway if not defined - and I think we have set that to 'none' for each site - so that provides a modicum of security.We can tick of each as they are considered/implemented/discarded:
(still deciding whether we should have none or self here)(self
)default-src
settingnone
)none
)self
)none
)self
)self
)default-src
settingnone
)none
)The text was updated successfully, but these errors were encountered: