Description
Subresource Integrity is promising new technology that allows to verify the integrity of third-party resources included by the web page, and provides a backup mechanism to load the resources from trusted (but slow) sources. Backup mechanism is just an error
event, that needs to be handled by the developer.
From what I understand, this flow does not align with the way raven.js should be deployed, e.g.
- an SRI backup handler is loaded first
- handler loads third party scripts
- own scripts are loaded
Since SRI does not provide reporting mechanism, and there is no common way of getting notified when integrity violation happens. I'd be happy to use Sentry for that purpose, but there is chicken and egg problem in regards to what load first: raven.js without verifying it's integrity or SRI loader script without hooking raven.js into it.
How do you think this can be solved? May be I am overcomplicating things and there is some obvious way to use sentry to monitor SRI exceptions.