[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2819: make connected-sever address nicer
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Sep 2 18:21:10 UTC 2016
#2819: make connected-sever address nicer
-------------------------------+------------------------
Reporter: warner | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 1.12.0
Component: code-frontend-web | Version: 1.11.0
Keywords: | Launchpad Bug:
-------------------------------+------------------------
#2818 changed the "Connected Servers" table on the welcome page, to make
the "Address" column show the full connection hint list, instead of the
one address returned by `rref.getPeer()`. This makes e.g. Tor connections
over unix-domain SOCKS sockets nicer, but makes plain TCP hints
(especially when the target advertises multiple connection hints) more
verbose.
[Foolscap#267 https://foolscap.lothar.com/trac/ticket/267] is about adding
a new !RemoteReference API that could give us nicer information.
Specifically, it would tell us *how* the connection was made (which
handler, which hint, maybe which IP address the hostname resolved to),
rather than just the intended target of the FURL. That could provide some
assurance that we really did use Tor, for example.
So this ticket is about adding `IServer.get_connection_info()` to
!NativeStorageServer, which delegates to the new Foolscap API, and then
changing `allmydata.web.root.Root.render_service_row()` to use the new
information instead of `server.get_remote_host()` (which could probably be
removed altogether).
I'm tenatively scheduling this for the 1.12 milestone, because the default
tub.location=AUTO yields hints for every interface, which makes this
Welcome-page display pretty ugly, and I'd like to see that fixed. But it
depends upon the new Foolscap API, which I haven't finished specing out
yet, so I stand prepared to drop this from 1.12 if that doesn't happen
soon.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2819>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list