yalelibrary / YUL-DC

Preliminary issue tracking for Yale University Libraries Digital Collections project
3 stars 0 forks source link

[Discuss] Investigate SPA results - CSP #2789

Closed laurenb33 closed 1 month ago

laurenb33 commented 3 months ago

We need to investigate and discuss how to apply the recommendations from the recent DCS SPA - starts on pg. 2 of the report (the link is in the Teams channel).

The first recommendation is add a Content Security Policy (CSP) to our web server, app server, load balancer etc. to help detect and mitigate certain types of attacks.

Important Links from @mikeapp

Acceptance

laurenb33 commented 2 months ago

In the February 2024 DCS SPA report, the first mitigation recommendation was that the DCS web server, application server, load balancer, etc. should be configured to set the Content-Security-Policy header. The development team would like to apply for an exception from this requirement because configuring a set CSP header for DCS would be difficult because we have in inline Javascript in many of our .html.erb files. The inline JS is in the .html.erb file so that variables are simpler to track. The lift it would take to excavate all of the inline Javascript and organize it into separately packaged Javascript is not insurmountable but would take relatively significant time to reorganize. Lastly, we have protections in place to monitor and protect from unwelcome or nefarious calls; our development and operations engineering team have implemented AWS WAFS on each cluster.

sshetenhelm commented 2 months ago

We can close these as soon as we get confirmation from Lauren that she's shared these with George.

laurenb33 commented 1 month ago

I submitted this exception on 5/6 - ready to close!