Skip to content

Subresource Integrity and raven.js #2476

Closed
@shekyan

Description

@shekyan

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.

  1. an SRI backup handler is loaded first
  2. handler loads third party scripts
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions