-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
directory iv may be lost when using cloud sync apps #151
Comments
That is correct, could happen. The worst thing that could happen is losing the file names. The file contents can always be recovered. |
As I don't see a way to fix this I'll declare this a known limitation and close the ticket. |
Hello,
Just wondering why it is not possible to use the deterministic encryption
"-aessiv" flag to avoid that problem? I thought it would overwrite with the same
gocryptfs.diriv file, even if it was generated from a different computer, but it doesn't...it is not as deterministic as in reverse mode...just wondering why?
Best regards!
|
Looks like this could be fixed, or at least mitigated, by creating the diriv deterministically from the path, #108 (comment) . I think I'm gonna add a command line option for that. |
hi~ I made and backup-ed-many-times a single gocryptfs-folder, and give a name say "stock01". And this container "stock01" could be used for computer A and B as in the OP. from that, I am using this as this is how I use: unenc-data --> "stock01" --------> google drive next time, when i modified unenc-data, then sync the encrypted-stock01 to google drive. it should work that way, I gave some simple trials. |
We have lost the filenames of a significant amount of data and cannot find the source of the issue with no way of providing debug information or a way to replicate this. Apologies for this but I'll try my best to explain what we used it for. For compliance, we were using GoCryptFS to archive company data locally and mirrored this onto Google Team/Shared Drive. The last time this was done was in November 2018 and then we removed the data from our on-prem server. After this date, we stopped using GoCryptFS and began storing data directly on Google. In February 2019 we needed some of the data and using GoCryptFS worked fine. The next time we tried to access the data was 1 week ago in 2020 and no files show up which I can only assume is an issue with the directory iv. The last time the files were modified, including the directory iv's, was in 2018 - the date the last backup occurred. No file has been modified since that date so we can't understand why it has stopped working. However, now we have a need to encrypt data again and would like to start using this again but want to know how we can prevent this and if anything was done regarding #issuecomment-344848637 please? |
Hi, it seems unlikely that you had a synchronization conflict on the diriv file - this can only happen when new empty directories with the same name are created at the same time at different hosts! Can you show an |
This sounds like a wrong gocryptfs.conf is used, or that you are mounting using --masterkey (are you?) |
No, I'm using a config file. As far as I'm aware there's only one key and that file hasn't been modified either but another one could exist - thank you for pointing that out. It may take a while for me to check and get back to you. Do you still want to see the list? I'm just concerned about the filenames showing (I understand they are encrypted). |
About the file listing, what I wanted to look at are the following things, you could look at the list yourself and check:
|
Think of the following situation:
Computer A and Computer B shares some file using cloud sync apps.
They use gocryptfs to encrypt the files on the cloud.
The conflict happened because of the same file name "gocryptfs.diriv," which stores the iv to decrypt the filename.
If one computer overwrites the gocryptfs.diriv that another computer uploads, the directory iv will be lost.
The text was updated successfully, but these errors were encountered: