-
The keyfile seems a critical component of the Can we clarify what the keyfile is, where it is stored, and how we can protect against a possible loss of access to the whole repository? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What is the keyfile?A keyfile is a file where the single key used to encrypt (and MAC) all data in the repository (a.k.a the "masterkey") is stored. It is not stored directly, but itself encrypted by a key which is derived from a password. So, for each password which has been "added" to the repository, there is a keyfile. But all keyfiles in fact just store the identical "masterkey". Where are the keyfiles stored?In the repository under How we can protect against a possible lossIn short: redundancy. It depends on the redundancy/guarantees of the storage you use for your repository. If these guarantees are fine for you, this is enough protection. If not, you have to add your own redundancy. Using a hot/cold repo gives redundancy as keyfiles are saved in the hot and cold repo part. Also you could use several passwords to generate multiple keyfiles using Besides thinking about protection against loosing keyfiles, always make sure that you the right focus on the real risks that hurt you. Having a backup for a missing/corrupt keyfile is fine, but if that data pack file containing the key to your bitcoin wallet also has gone corrupted, the effect can be very similar ;-) |
Beta Was this translation helpful? Give feedback.
-
|
Note that rustic-rs/rustic_core#468 allows to directly use the masterkey instead of the keyfiles stored in the repo. (But this doesn't solve the question how to backup the master key ;-)) |
Beta Was this translation helpful? Give feedback.
See also https://github.com/restic/restic/blob/master/doc/design.rst#keys-encryption-and-mac
What is the keyfile?
A keyfile is a file where the single key used to encrypt (and MAC) all data in the repository (a.k.a the "masterkey") is stored. It is not stored directly, but itself encrypted by a key which is derived from a password. So, for each password which has been "added" to the repository, there is a keyfile. But all keyfiles in fact just store the identical "masterkey".
Where are the keyfiles stored?
In the repository under
/keys/. Actually in p…