-
Notifications
You must be signed in to change notification settings - Fork 244
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
WIP restore CSP #2651
base: main
Are you sure you want to change the base?
WIP restore CSP #2651
Conversation
Awful news for us: internet consensus seems to be 'js.erb is getting replaced by hotwire because it fundamentally doesn't play nice with CSPs'. bluh |
Do you have a reference for that quote? |
I'm going to pick this up |
Huh, our current CSP is not great:
We should not allow |
read em and weep I think: https://twitter.com/dhh/status/1252751363219419136?lang=en |
I'll make a larger issue for this since I think it's going to be more involved, but the state of play as I understand it is basically:
So I think the action item as it stands is to figure out what alternative to js.erb/rails UJS is least chaotic for us, and then implement that, and THEN we'll be able to CSP properly again. Though if there's a way to target the CSPs so that it hits everything EXCEPT js.erb payloads that would be sick. |
I rule and have completed some work on Case Manager that's ready for review!
(brief, plain english overview of your changes here)
This pull request makes the following changes:
(If there are changes to the views, please include a screenshot so we know what to look for!)
It relates to the following issue #s:
For reviewer:
feature
if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.dependencies
if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.