4 ms·
Is this intended to include the featureset of Signed HTTP Exchanges (SXG) as well?
by zozbot234 5y ago
Is this intended to include the featureset of Signed HTTP Exchanges (SXG) as well?
- westurner 5y agoFrom https://news.ycombinator.com/item?id=28543911 https://news.ycombinator.com/item?id=28543911 : ``` From https://blog.cloudflare.com/automatic-signed-exchanges/ https://blog.cloudflare.com/automatic-signed-exchanges/ : > The broader implication of SXGs is that they make content portable: content delivered via an SXG can be easily distributed by third parties while maintaining full assurance and attribution of its origin. Historically, the only way for a site to use a third party to distribute its content while maintaining attribution has been for the site to share its SSL certificates with the distributor. This has security drawbacks. Moreover, it is a far stretch from making content truly portable. > In the long-term, truly portable content can be used to achieve use cases like fully offline experiences. In the immediate term, the primary use case of SXGs is the delivery of faster user experiences by providing content in an easily cacheable format. Specifically, Google Search will cache and sometimes prefetch SXGs. For sites that receive a large portion of their traffic from Google Search, SXGs can be an important tool for delivering faster page loads to users. > It’s also possible that all sites could eventually support this standard. Every time a site is loaded, all the linked articles could be pre-loaded. Web speeds across the board would be dramatically increased. "Signed HTTP Exchanges" draft-yasskin-http-origin-signed-responses https://wicg.github.io/webpackage/draft-yasskin-http-origin-signed-responses.html https://wicg.github.io/webpackage/draft-yasskin-http-origin-... "Bundled HTTP Exchanges" draft-yasskin-wpack-bundled-exchanges https://wicg.github.io/webpackage/draft-yasskin-wpack-bundled-exchanges.html https://wicg.github.io/webpackage/draft-yasskin-wpack-bundle... : > Web bundles provide a way to bundle up groups of HTTP responses, with the request URLs and content negotiation that produced them, to transmit or store together. They can include multiple top-level resources with one identified as the default by a primaryUrl metadata, provide random access to their component exchanges, and efficiently store 8-bit resources. From https://web.dev/web-bundles/ https://web.dev/web-bundles/ : > Introducing the Web Bundles API. A Web Bundle is a file format for encapsulating one or more HTTP resources in a single file. It can include one or more HTML files, JavaScript files, images, or stylesheets. > Web Bundles, more formally known as Bundled HTTP Exchanges, are part of the Web Packaging proposal. > HTTP resources in a Web Bundle are indexed by request URLs, and can optionally come with signatures that vouch for the resources. Signatures allow browsers to understand and verify where each resource came from, and treats each as coming from its true origin. This is similar to how Signed HTTP Exchanges, a feature for signing a single HTTP resource, are handled. ```
- dane-pgp 5y agoI was wondering how much overlap the two technologies have too. What I'd really like to see supported is a way for a web app to specify a public key and a version number, and for the browser to then prompt you every subsequent time you access that page if the key or version number has changed. This would effectively allow web apps to use the same security model as desktop apps, i.e. TOFU. Arguably, though, auto-updating desktop apps are less secure than even TOFU, but I don't know users can be expected to judge whether v1.2.3 is more secure than v1.2.2, so perhaps the prompt doesn't provide any practical benefit.
- westurner 5y agoIs this solveable by including a cache key in the URL or other client-side storage?
- dane-pgp 5y agoWell, there is the SecureBookmarks trick[0], which uses integrity hashes and Data URLs, so you're right that signatures aren't strictly needed (especially at the HTTP level). I think the difficult part is the UX, and how to handle the failure modes, which is why browsers might reasonably be reluctant to support something like this. [0] https://github.com/coins/secure-bookmark https://github.com/coins/secure-bookmark
- westurner 5y agoAre there additional HTTP status code-like error codes that need to be specified? What [same origin, SXG,] failure modes are there? From "HTTP 402: Payment Required" https://news.ycombinator.com/item?id=22214156 https://news.ycombinator.com/item?id=22214156 : > The new W3C Payment Request API [4] makes it easy for browsers to offer a standard (and probably(?) already accessible) interface for the payment data entry screen, at least. > https://www.w3.org/TR/payment-request/ https://www.w3.org/TR/payment-request/
- dane-pgp 5y ago