Skip to content
Discussion options

You must be logged in to vote

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?

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…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@s-leroux
Comment options

@s-leroux
Comment options

Answer selected by s-leroux
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants