Now that #24553 (moved) has re-enabled alt-svc, the Circuit Display should probably indicate when the connection was made via an .onion alt-svc. Currently it doesn't.
Feel free to use this for testing: https://perfectoid.space/test.php
When the page turns green, click on the green https lock to see the circuit.
Trac: Username: mahrud
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items
0
Show closed items
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Linked items
0
Link issues together to show that they're related.
Learn more.
I'm not sure if that should be a separate ticket but I would find it important to see that the page has been fetched via .onions directly from the URL bar without having to expand anything.
What do you think about using the onion-behind-a-lock icon for pages that are fetched via .onion (due to Alt-Svc)?
The trouble is that the connection is not consistently via .onion, only opportunistically. And besides, displaying one of the 10 .onions that, say, Cloudflare owns is kinda pointless.
Replying to gk:
Hey, gk! This ticket is primarily not about circuit display, but
What do you think about using the onion-behind-a-lock icon for pages that are fetched via .onion (due to Alt-Svc)?
and even more correct:
Why the hell doesn't it inform about using plain text .onion connections on https sites?!!! (No questions for https .onion alternate routes.)
Example of cf alt-svc: cflarexljc3rw355ysrkrzwapozws6nre6xsy3n4yrj7taye3uiby3ad.onion:443 (plain text (http)!!!)
So, here is an interesting issue: If you load the website the first time the circuit display actually shows part of the onion circuit (the one the client controls) but the website still says that the content got loaded over the regular Tor circuit. This is true. What happens is that a second request is issued for the favicon which uses the onion in the alt-svc header which then updates the circuit display even though the content did not get loaded over the .onion. What should the display show here?
Leaving https://www.deepdotweb.com/ as an interesting example here. To make things more complicated: there are different Cf alt-svc involved it seems while it is not clear how much traffic they actually carry (in addition to the non-.onion one).
So, here is an interesting issue: If you load the website the first time the circuit display actually shows part of the onion circuit (the one the client controls) but the website still says that the content got loaded over the regular Tor circuit. This is true. What happens is that a second request is issued for the favicon which uses the onion in the alt-svc header which then updates the circuit display even though the content did not get loaded over the .onion. What should the display show here?
The favicon explanation/idea was actually a red herring. What we see is actually a circuit display issue (which we should deal with, though) in the sense that it does not show any alt-svc routing requests at all using the Cloudflare .onion service but rather an orthogonal one. This happens because once the Alt-Svc response header is processed the mapping is created and part of that is validating it (see: AltSvcCache::UpdateAltServiceMapping) which means in the https:// case just establishing a connection to the alt-svc host. And the circuit display gets in turn updated with the client side rend circuit caused by that validation request. There is no actual content sent back and forth here as it takes the non-alt-svc route.