remove the notion of "rootcap" from FTP-and-SFTP.rst #1487
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#1487
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two different people have asked me for help, saying they couldn't figure out what a "rootcap" is. Hopefully just calling it a "cap" will make it easier for them to find out from the other docs what it is.
Brian objected on IRC, saying "we're removing information that non-beginner users would benefit from don't we have a glossary where "rootcap" could be defined in terms of caps and dircaps?"
Attachment remove-rootcap-from-docs.darcs.patch (37862 bytes) added
I have the idea that Tahoe-LAFS is hard for people to understand, and maybe a reason for that is that it has too many concepts. The concept of a "rootcap" is, in my opinion, something that should be explained but not named. That is, we should tell people that a good way to keep track of their caps is to put them into a directory and then keep track of the cap to that directory, but we should not use the word "rootcap".
Perhaps there are other contexts where the notion of a rootcap is more salient, but in source:docs/frontends/FTP-and-SFTP.rst, I'm not sure if it adds anything over "dir cap". The two users that I spoke to both were setting up FTP (or SFTP), and both were stymied by thinking that they couldn't use any old dir cap, they needed to get a special "root" cap, and didn't know where to get one or what was special about it. The thing is: there isn't anything special about it in the context of source:docs/frontends/FTP-and-SFTP.rst, is there? Any dir cap that you put in there is automatically what we call a "rootcap" isn't it? Or do I misunderstand the meaning of "rootcap"?
Or is the idea is that you should have only a single root cap that you use for all of your Tahoe-LAFS access, such as in your web browser bookmarks you should have a single entry for the root to all your Tahoe-LAFS resources, and when configuring your SFTP server you ought to put in the same root cap for it as you have in your bookmarks? I don't agree with that idea.
Without thinking much, I basically disagree. A rootcap is a special cap in that there is an expectation that it will be stored other than in some tahoe directory. In particular, it's something that a user has to both back up and keep secure. In many senses, if you think of mounting a tahoe filesystem, it's really a combination of introducer and rootcap that identifies a directory tree.
All that said, I have not found the term confusing. But it may need to be explained better and more consistently.
The cap that is used as the root for an FTP/SFTP user account doesn't have any requirement or expectation that it not be stored in a Tahoe directory. (It is stored in the ftp.accounts file, but could easily be stored in a directory as well.) It's just any old directory cap, used in a particular way.
As far as I understood, the reason why some of our docs use the term "rootcap" is a historical one: at one point we only supported a single root for each user's "vdrive". Now that a path can start with any URI or any of multiple aliases (in the CLI at least, and #1346 would also give an alternative to logging in with a username and password in FTP/SFTP), there's no need for that concept.
OTOH, I think "root directory cap" in the original text meant "cap to an FTP or SFTP root directory". So I think it would be clearer to say:
Since "rootcap" is not an actual kind of cap, I agree it's better not to specifically use it. In the (S)FTP docs, "what directory cap should be granted" conveys the right meaning. I've done a trac search for "rootcap" to look for any other interesting usages and did not find anything.
The definition in the wiki is still useful for understanding historical docs that refer to rootcaps.
From: https://tahoe-lafs.org/trac/tahoe-lafs/wiki/Capabilities
In changeset:1562e2a3021344ab:
remove-rootcap-from-docs.darcs.patch was applied 8 months ago in changeset:43ba172f65aaa038.
Dang -- too bad someone forgot to remove
review-needed
8 months ago so amiller redundantly reviewed it. On the other hand, redundancy is a great technique for detecting problems. :-) I'm glad amiller thought about this issue and agreed with the way it was handled.In changeset:1562e2a3021344ab: