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

Subresource Integrity #5

Merged
merged 2 commits into from
Apr 19, 2023
Merged

Subresource Integrity #5

merged 2 commits into from
Apr 19, 2023

Conversation

jodosha
Copy link
Member

@jodosha jodosha commented Apr 19, 2023

Features

  • Support Subresource Integrity
  • Generate a sri node in Manifest with an array of hashes (see code snippet below).
  • The feature is activated by passing a --sri argument with a comma-separated list of algorithms (e.g. --sri=sha256 or --sri=sha384,sha512).
      "index.js": {
        "url": "/assets/index-A3EJVGR4.js",
        "sri": [
          "sha256-/lxoexmKjJgp4Fx1JnExzKN1/UKRcjBMmDkREEuF448=",
          "sha384-FxEUrhNW+v8maw4V1mMu8UrnJcbWUd5/9dWSJii1wGbCPrE+SQuqaSfLAtO5tk6k",
          "sha512-qnX1lVVY+KBRuXcXbaeJQNfT9Motew0OAQKwhkq0dalyBsM6Mzgmk3oD7pn08UVKsApLZZcMwDcZcTHvsV8jvg==",
        ]
      }

@jodosha jodosha added this to the v2.0.0 milestone Apr 19, 2023
@jodosha jodosha self-assigned this Apr 19, 2023
@jodosha jodosha merged commit d0cd3ee into main Apr 19, 2023
@jodosha jodosha deleted the subresource-integrity branch April 19, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant