make the option of random-key encryption available through the wui and cli #294

Closed
opened 2008-01-30 18:34:46 +00:00 by zooko · 4 comments

For #293 I added a parameter to upload functions to indicate whether we wanted content-hash-key or random-key encryption. Now I want to add a way for users to control this parameter through the wui and the cli.

For the wui, I want a checkbox next to the "mutable?" checkbox, which says "content hash key?". Of course, the question of content-hash-key or random-key applies only to immutable files -- for mutable files the key is always deterministically derived from the public key and the encrypted salt.

I don't know how to make this wui nice -- either have a checkbox for content-hash-key which dynamically appears whenever you select immutable-file, or else have a radio-button-selector offering mutable file, immutable file content hash key, or immutable file random key.

I hope that a wui wizard will address this issue, but in the meantime, I'm just going to add a separate checkbox with a label like "for immutable files: content-hash-key Y/N".

As for the cli, we can add a --content-hash-key=yes/no option, and raise a UsageError if someone passes both --mutable and --content-hash-key.

For #293 I added a parameter to upload functions to indicate whether we wanted content-hash-key or random-key encryption. Now I want to add a way for users to control this parameter through the wui and the cli. For the wui, I want a checkbox next to the "mutable?" checkbox, which says "content hash key?". Of course, the question of content-hash-key or random-key applies only to *immutable* files -- for mutable files the key is always deterministically derived from the public key and the encrypted salt. I don't know how to make this wui nice -- either have a checkbox for content-hash-key which dynamically appears whenever you select immutable-file, or else have a radio-button-selector offering mutable file, immutable file content hash key, or immutable file random key. I hope that a wui wizard will address this issue, but in the meantime, I'm just going to add a separate checkbox with a label like "for immutable files: content-hash-key Y/N". As for the cli, we can add a `--content-hash-key=yes/no` option, and raise a [UsageError](wiki/UsageError) if someone passes both `--mutable` and `--content-hash-key`.
zooko added the
code-frontend
major
enhancement
0.7.0
labels 2008-01-30 18:34:46 +00:00
zooko added this to the eventually milestone 2008-01-30 18:34:46 +00:00
zooko self-assigned this 2008-01-30 18:34:46 +00:00
terrell commented 2008-01-30 19:07:46 +00:00
Owner

if they're mutually exclusive - use a radio button. no reason to have more than one option/flag to keep track of.

if they're mutually exclusive - use a radio button. no reason to have more than one option/flag to keep track of.

I've started working on this a bit, in conjunction with the "backupdb" and the tahoe cp command (since the CLI could do the CHK computation itself, and if it could pass the results to the node via webapi and key=, then we wouldn't incur a second hashing pass, and when the webapi becomes capable of doing streaming upload with pre-computed keys, we wouldn't incur a second IO-to-temp-disk pass either).

I've started working on this a bit, in conjunction with the "backupdb" and the tahoe cp command (since the CLI could do the CHK computation itself, and if it could pass the results to the node via webapi and key=, then we wouldn't incur a second hashing pass, and when the webapi becomes capable of doing streaming upload with pre-computed keys, we wouldn't incur a second IO-to-temp-disk pass either).
zooko was unassigned by warner 2008-06-01 21:25:29 +00:00
warner self-assigned this 2008-06-01 21:25:29 +00:00
tahoe-lafs modified the milestone from eventually to 1.7.0 2010-03-11 00:53:56 +00:00
Author

Nowadays I'm not sure that I actually want users to have the option of random-key encryption, as such, but I do want them to have the option of streaming upload (#320), which would require random-key encryption. Merging this ticket into that one.

Nowadays I'm not sure that I actually want users to have the option of random-key encryption, as such, but I *do* want them to have the option of streaming upload (#320), which would require random-key encryption. Merging this ticket into that one.
zooko added the
duplicate
label 2010-05-16 05:26:16 +00:00
zooko closed this issue 2010-05-16 05:26:16 +00:00
davidsarah commented 2011-01-03 05:11:01 +00:00
Owner

See also #1288 (support streaming uploads in uploader).

See also #1288 (support streaming uploads in uploader).
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: tahoe-lafs/trac-2024-07-25#294
No description provided.