[tahoe-lafs-trac-stream] [Tahoe-LAFS] #3814: Remove the node "control" port
Tahoe-LAFS
trac at tahoe-lafs.org
Fri Oct 15 14:58:45 UTC 2021
#3814: Remove the node "control" port
---------------------+---------------------------
Reporter: exarkun | Owner:
Type: defect | Status: new
Priority: normal | Milestone: undecided
Component: unknown | Version: n/a
Keywords: | Launchpad Bug:
---------------------+---------------------------
A node automatically has a Foolscap-based "control" interface. This
exposes the following functionality to localhost:
* wait for a client to connect
* generate a small random file and upload it
* download a file and then delete it
* Run a speed test against storage servers (upload and then download a
small file, measuring elapsed time)
* get the amount of memory the node process is using
* measure foolscap "ping" time to connected servers
I think all of this is unnecessary attack surface. Also, much of it is
redundant or poorly placed.
Want to measure upload/download time? Great, do it, there are HTTP APIs
for that. Want to know memory usage? Great, use a platform API to look
it up. Want to wait for a client to connect? *Why*?
Additionally, the code that sets up the Foolscap tub for the control
interface uses failure-prone port assignment logic which causes frequent
spurious failures on CI, making this code a substantially overweight
maintenance burden.
I suggest that no one is using any of this functionality and no one
*should* use any of it and we should delete it.
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/3814>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list