rfjakob / gocryptfs

Encrypted overlay filesystem written in Go
https://nuetzlich.net/gocryptfs/
MIT License
3.51k stars 249 forks source link

[Question] Is using the same config for multiple filesystems a bad idea? #835

Closed SimonPilkington closed 5 months ago

SimonPilkington commented 6 months ago

My use case is: I want to rsync one of my gocryptfs filesystems to an external server while keeping another completely local. I don't think having different master keys would provide additional security in this case so I tried using the same config for both. I did this by initing the second FS, deleting its config and keeping only the diriv, then telling it to use the first FS's config when mounting.

As far as I can tell, this works. Did I miss something?

EDIT: I forgot to mention, the config is external to both filesystems and stored under $HOME/.config

rfjakob commented 5 months ago

Looks good to me. This is equivalent to having two subfolders in one filesystem, which is obviously OK.