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

Split up admin settings into pre-directive settings and fully support all CSP level 3 #31

Open
brendanheywood opened this issue Nov 19, 2019 · 0 comments

Comments

@brendanheywood
Copy link
Contributor

brendanheywood commented Nov 19, 2019

The CSP plugin is very basic and relies on the admin to write these very long and complicated CSP directives in a single text area. It is very raw. It is also very hard for an admin to even begin understanding what policies to put in place unless you are actively following the CSP specs as they evolve.

I'm proposing to improve to improve this plugin so that instead of a single directive, you instead get a big list of all of the Level 3 directives and where appropriate either check boxes or radio boxes or free text fields. This will make it much easier to see at a glance and understand the current policies in place.
https://www.w3.org/TR/CSP3/

As new CSP versions are supported this will create new admin settings which will prompt the admin to fill them in on upgrade.

It will still support the current textarea and just concat that into the policy.

Proposing a single new config item which is a custom table

Directive Name Report value Live value
default-src https:
'unsafe-inline'
https:
'unsafe-inline'
script-src
img-src https:
data:
.yimg.com
.twimg.com
[dropdown]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant