-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Labels
topic/http-gatewaytopic/originIssues related to Origin-based securityIssues related to Origin-based security
Description
Alt-Svc
is an Internet Standard (RFC7838) which allow an origin's resources to be authoritatively available at a separate network location, possibly accessed with a different protocol configuration.
TL;DR
The idea of
Alt-Svc
is for a website to be able to tell a client "For technical reasons you don't need to care about, please talk to me using [this other web address]."The client optionally does so. (They don't have to.) If they do so, they do not change the address bar or give any sort of visual indication to the user.
– src
Potential IPFS Use
Websites could announce they are available over IPFS in a way that does not require additional DNS lookups.
/ipfs/
$ curl -s -I -X GET https://bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq.ipfs.dweb.link/ | grep -i Alt-Svc
Alt-Svc: ipfs="bafybeiemxf5abjwjbikoz4mc3a3dla6ual3jsgpdr4cjr3oz3evfyavhwq"; ma=315360000; persist=1
/ipns/
$ curl -s -I -X GET https://wikipedia.org/ | grep -i Alt-Sv
Alt-Svc: ipns="wikipedia.org"; ma=3600; persist=1
Pros:
- Location bar kept intact (same Origin!)
- Following existing standard
- Prior Art exists, Tor Browser will use .onion address if announced by a website
- Enables smooth upgrade from HTTP to IPFS transport
- Can be cached HSTS-style
- No DNS TXT lookups
Cons:
- Location bar kept intact (needs additional indicator that IPFS was used)
- Requires initial hit to HTTP server
- Relies on native support in browser itself
- There is no API for WebExtension to register itself as a handler
References
- tools.ietf.org/html/rfc7838
- mnot.net/blog/2016/03/09/alt-svc
- trac.torproject.org/projects/tor/ticket/21952#comment:31
- Prior Art
- Tor Browser supports
Alt-Svc
- Brave planning to support it as well (Support alt-svc for .onion brave/brave-browser#1121)
- Website Announcing it is Available over Tor
$ curl -s -I -X GET https://tor.cloudflare-dns.com/ | grep -i Alt-Svc Alt-Svc: h2="dns4torpnlfs2ifuz2s2yf3fc7rdmsbhm6rw75euj35pac6ap25zgqad.onion:443"; ma=315360000; persist=1
- Tor Browser supports
da2x, agentofuser, bmann, leettran and thattommyhall
Metadata
Metadata
Assignees
Labels
topic/http-gatewaytopic/originIssues related to Origin-based securityIssues related to Origin-based security