Opened at 2011-02-04T04:00:27Z
Last modified at 2021-03-30T18:40:19Z
#1357 assigned defect
'tahoe mount' command
Reported by: | davidsarah | Owned by: | davidsarah |
---|---|---|---|
Priority: | major | Milestone: | soon |
Component: | code-frontend-cli | Version: | 1.8.2 |
Keywords: | sftp tahoe-mount | Cc: | |
Launchpad Bug: |
Description (last modified by daira)
ticket:1353#comment:1 suggested a tahoe mount command, which would mount a Tahoe directory at a local mount point.
tahoe mount [OPTIONS] [-o MOUNT_OPTION[,...]] TAHOE_PATH MOUNT_POINT
(As for all other CLI commands, TAHOE_PATH could be given relative to the default tahoe: alias, an explicit alias, or an explicit URI.)
I propose implementing this using SFTP+sshfs. The SFTP frontend would be changed to allow logging in with an arbitrary cap URI as root directory (#1356). Then the above mount command would be implemented by invoking sshfs with the -o password_stdin option, and passing the URI on stdin. This avoids exposing the URI via the command line. Because any aliases in TAHOE_PATH are resolved by tahoe mount, it also avoids ambient authority weaknesses, even when an attacker is not prevented from connecting to the SFTP server.
The host and port of the SFTP server would be obtained by determining the node directory as usual, and looking for a tahoe.cfg with an [sftpd]port setting in that directory. (It might be useful to allow specifying this in a separate sftp.url file analogous to node.url, I'm not sure.)
Change History (8)
comment:1 in reply to: ↑ description Changed at 2011-02-04T04:31:48Z by davidsarah
comment:2 Changed at 2011-02-04T04:43:33Z by davidsarah
- Owner set to davidsarah
- Status changed from new to assigned
comment:3 Changed at 2011-07-24T22:38:43Z by davidsarah
- Milestone changed from 1.9.0 to 1.10.0
Out of time for 1.9.
comment:4 Changed at 2013-08-13T23:04:09Z by daira
- Description modified (diff)
- Milestone changed from 1.11.0 to 1.12.0
comment:5 Changed at 2016-03-22T05:02:25Z by warner
- Milestone changed from 1.12.0 to 1.13.0
Milestone renamed
comment:6 Changed at 2016-06-28T18:17:14Z by warner
- Milestone changed from 1.13.0 to 1.14.0
renaming milestone
comment:7 Changed at 2020-06-30T14:45:13Z by exarkun
- Milestone changed from 1.14.0 to 1.15.0
Moving open issues out of closed milestones.
comment:8 Changed at 2021-03-30T18:40:19Z by meejah
- Milestone changed from 1.15.0 to soon
Ticket retargeted after milestone closed
Replying to davidsarah:
Note that this doesn't preclude supporting other ways to mount a Tahoe filesystem using the same tahoe mount syntax, if we implement other FUSE interfaces in future. There could be a tahoe.cfg setting to specify the command that is executed. For example: