Skip to content
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

Sub-resource integrity #521

Merged
merged 4 commits into from
Nov 18, 2019
Merged

Commits on May 25, 2019

  1. Proof of concept support for calculating SRI for jinja2 backend.

    This is the start of the implementation of miracle2k#494
    
    Currently only tested on Python 3.7, missing unit tests and documentation.
    
    Basic idea is to extend the Bundle.urls() function to return a list of dictionaries {'uri': <same as before>, 'sri': <hash>} but only when requested (to not break existing users). A dict is used instead of a tuple to allow adding other values in the future. Currently only works for local resources.
    VorpalBlade committed May 25, 2019
    Configuration menu
    Copy the full SHA
    fbe7a29 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2019

  1. Add unit test to jinja2 module for SRI

    Part of implementing miracle2k#494
    VorpalBlade committed May 30, 2019
    Configuration menu
    Copy the full SHA
    b690155 View commit details
    Browse the repository at this point in the history
  2. Rework SRI flag to be on the urls() method instead of the bundle object.

    This makes it work better with nested bundles and removes the possibility of mixed settings.
    
    This commit also adds unit tests for the bundle class.
    
    Part of implementing miracle2k#494
    VorpalBlade committed May 30, 2019
    Configuration menu
    Copy the full SHA
    0bb0ec1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    967844f View commit details
    Browse the repository at this point in the history