cloud-gov / pages-core

cloud.gov Pages is a publishing platform for modern 21st Century IDEA websites.
https://cloud.gov/pages
Other
276 stars 68 forks source link

Provide Sub-resource Integrity #2347

Closed eddietejeda closed 2 years ago

eddietejeda commented 5 years ago

User Story

Background (Optional)

Our security scans alert that assets are missing "Subresource Integrity" More info: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity

Can Federalist handle this for our users?

Acceptance Criteria

After evaluating, edit this part:

Level of effort - Low

Implementation outline (if higher than "low" effort):

amirbey commented 5 years ago

@eddietejeda to discuss w/ team the vision on why this is necessary

@davemcorwin - while this is could be a best practice, requiring this could impact usability for our users

davemcorwin commented 4 years ago

@eddietejeda This is something that is specific to js resources loaded via script tags. The best we can do here is update any templates with script tags to include the integrity attribute. If so, we can create issues in the template repos to add them.