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

Importmap integrity #944

Closed
1 task done
yoavweiss opened this issue Apr 15, 2024 · 2 comments
Closed
1 task done

Importmap integrity #944

yoavweiss opened this issue Apr 15, 2024 · 2 comments
Assignees
Labels

Comments

@yoavweiss
Copy link

yoavweiss commented Apr 15, 2024

こんにちは TAG-さん!

I'm requesting a TAG review of Importmap integrity - enabling subresource integrity checks on ES module imports.

Since modules initiate requests, there is a need for the ability to specify the integrity of dependencies, and not just the top level <script type="module"> integrity which can be supported via traditional means.

For specifiers like import 'pkg' that are controlled by import maps, the problem is that the import map is fully responsible for the resolved module and hence the integrity of the resolved module as well.

Without a mechanism to specify integrity, it is not currently possible to use module dependencies in environments where SRI is required and where those module dependencies are loaded lazily, as integrity metadata cannot be set via the module script tag or link preload tag directly.

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: As this is a small addition to the platform which enables significant architectural improvement to JS based deployments, I'd like to ship this rather soon. With that said, no strict deadline.
  • The group where the work on this specification is currently being done: WHATWG
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue):
  • Major unresolved issues with or opposition to this specification: None
  • This work is being funded by: Shopify

TBD:

  • Chrome team support (if needed)
@plinss plinss added the Mode: breakout Work done during a time-limited breakout session label May 1, 2024
@hober
Copy link
Contributor

hober commented May 3, 2024

Seems reasonable to me on first blush. Honestly it was always weird that import maps didn't include SRI from the get-go.

@plinss
Copy link
Member

plinss commented May 6, 2024

@hober, @martinthomson and I took another look during today's breakout. We're satisfied with this and happy to see it move forward. Thanks for flying TAG.

@plinss plinss closed this as completed May 6, 2024
@plinss plinss added the Resolution: satisfied The TAG is satisfied with this design label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants