Changes between Version 2 and Version 3 of Convergence Secret


Ignore:
Timestamp:
2013-03-18T08:12:18Z (12 years ago)
Author:
ClashTheBunny
Comment:

Convert to RST from Marlow

Legend:

Unmodified
Added
Removed
Modified
  • Convergence Secret

    v2 v3  
    1 = Convergence Secret =
     1{{{
     2#!rst
     3What Is It?
     4-----------
    25
    3 == What Is It? ==
     6A file's capability is derived from two pieces of information on
     7upload: The content of the file and the upload node's "convergence
     8secret". By default, the convergence secret is randomly generated by the
     9node when it first starts up, then stored in the node's base directory
     10(<Tahoe's node dir>/private/convergence) and re-used after that. So the
     11same file content uploaded from the same node will always have the same
     12cap string. Uploading the file from a different node with a different
     13convergence secret would result in a different cap string—and in a
     14second copy of the file's contents stored on the grid. If you want files
     15you upload to converge (also known as "deduplicate") with files uploaded
     16by someone else, just make sure you're using the same convergence secret
     17as they are.
    418
    5 A file's capability is derived from two pieces of information on upload: The content of the file and the upload node's "convergence secret". By default, the convergence secret is randomly generated by the node when it first starts up, then stored in the node's base directory (<Tahoe's node dir>/private/convergence) and re-used after that. So the same file content uploaded from the same node will always have the same cap string. Uploading the file from a different node with a different convergence secret would result in a different cap string—and in a second copy of the file's contents stored on the grid. If you want files you upload to converge (also known as "deduplicate") with files uploaded by someone else, just make sure you're using the same convergence secret as they are.
     19The advantages of deduplication should be clear, but keep in mind that
     20the convergence secret was created to combat snooping. For example, with
     21a convergence secret and a file, I can generate a file capability that
     22would allow me to determine that you have uploaded a file to the grid.
     23This isn't a big deal for things that are personally produced, but is a
     24big deal for commonly known things that you want to keep secret that you
     25know about. Examples would be a Bible in China or The Anarchist's
     26Cookbook at the High School that I went to. Here's the details of the
     27origin of the convergence secret: `Convergence Secret Justification`_
    628
    7 The advantages of deduplication should be clear, but keep in mind that the convergence secret was created to combat snooping.  For example, with a convergence secret and a file, I can generate a file capability that would allow me to determine that you have uploaded a file to the grid.  This isn't a big deal for things that are personally produced, but is a big deal for commonly known things that you want to keep secret that you know about.  Examples would be a Bible in China or The Anarchist's Cookbook at the High School that I went to.  Here's the details of the origin of the convergence secret: [https://tahoe-lafs.org/hacktahoelafs/drew_perttula.html Convergence Secret Justification]
     29.. _`Convergence Secret Justification`:
     30   https://tahoe-lafs.org/hacktahoelafs/drew_perttula.html
    831
    9 == What If I Change My Convergence Secret? ==
     32What If I Change My Convergence Secret?
     33---------------------------------------
    1034
    11 All your old file capabilities will still work, but the new data that you upload will not be deduplicated with the old data.  If you upload all of the same things to the grid, you will end up using twice the space until garbage collection kicks in, if it's enabled.  As one user put it, it would move the node where you change the convergence secret into a new deduplication domain.
     35All your old file capabilities will still work, but the new data that
     36you upload will not be deduplicated with the old data. If you upload all
     37of the same things to the grid, you will end up using twice the space
     38until garbage collection kicks in, if it's enabled. As one user put it,
     39it would move the node where you change the convergence secret into a
     40new deduplication domain.
    1241
    13 == How To Use It ==
     42How To Use It
     43-------------
    1444
    15 To enable deduplication between different clients, '''securely''' copy
     45To enable deduplication between different clients, **securely** copy
    1646the convergence secret file from one client to all the others.
    1747
    18 For example, if you are on host A and have an account on host B
    19 and you have scp installed, run:
     48For example, if you are on host A and have an account on host B and you
     49have scp installed, run:
    2050
    21 {{{
    22 scp ~/.tahoe/private/convergence my_other_account@B:.tahoe/private/convergence
     51  *scp ~/.tahoe/private/convergence
     52  my_other_account@B:.tahoe/private/convergence*
     53
     54If you have two different nodes on a single computer, say one for each
     55disk, you would do:
     56
     57  *cp /tahoe1/private/convergence /tahoe2/private/convergence*
    2358}}}
    24 
    25 If you have two different nodes on a single computer, say one for each disk, you would do:
    26 
    27 {{{
    28 cp /tahoe1/private/convergence /tahoe2/private/convergence
    29 }}}