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

Create Custom CSP #2977

Open
1 task
K8Sewell opened this issue Dec 6, 2024 · 0 comments
Open
1 task

Create Custom CSP #2977

K8Sewell opened this issue Dec 6, 2024 · 0 comments

Comments

@K8Sewell
Copy link

K8Sewell commented Dec 6, 2024

Summary

To ensure feature parity until all open source resources are updated to not use inline scripts or styles 'unsafe-inline' was added to the default CSP. It is possible to customize the CSP per page and this will allow for a more secure policy - only allow 'unsafe-inline' in very specific cases until open source packages have updated their style and script injections.

Acceptance Criteria

  • 'unsafe-inline' is removed from the default CSP and all features that require it have their own custom CSP

Engineering Notes

https://api.rubyonrails.org/classes/ActionController/ContentSecurityPolicy/ClassMethods.html#method-i-content_security_policy

#2875 - related ticket

Exceptions to Mitigate

  • Mirador
  • Blacklight Range Limit
  • Webpacker
  • Font Awesome
  • OnClick actions in search bar

Image

Image

Image

Image

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

No branches or pull requests

1 participant