-
Notifications
You must be signed in to change notification settings - Fork 42
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
[securedrop-export] [spike] Support Veracrypt #1730
Comments
Some preliminary notes:
I think that the simplest thing to do will be to modify our What we will do now is simplify disk-test to see if there's exactly 1 connected USB with 1 partition. Then, if so, return a success code, prompt for the passphrase, and in the subsequent step, ascertain whether the disk is encrypted correctly (LUKS, VeraCrypt), or not (USB_ENCRYPTION_NOT_SUPPORTED). The con of this approach is
It may get a little bit more complicated when we add support for already-unlocked drives, but I think we can figure it out and still avoid duplicating any code. |
Update on detecting VeraCrypt drives, and overall update: We can detect already-mapped VeraCrypt drives by looking through the logical volumes in The earlier part of my comment is still true-- after prompting for passphrase, we can then report back to the user one of the following states:
Now re: other updates, I've been talking to @gonzalo-bulnes about some changes we may want to make to the export code (client and this repo) in order to facilitate adding further features and making the code more testable. I'm working on a PR to refactor out the commandline wrapper code (all the I'm partway through these changes and will put up a draft PR soon. I think this will make it a lot easier to perform error-handling and add additional export functionality in the future. (cc @creviera since this is a little bit out of scope of the original discussion of this issue) |
After talking more to @rocodes in person about this, my understanding is that this is a large enough refactor that veracrypt support might need to be pushed back until the next release, which unfortunately isn't until August. There's still three weeks before we need to make that decision though! |
Description
Use the veracrypt cli to implement the export workflow (check encryption, unlock device, dismount, etc), similar to how we do this for a luks-encrypted device using cryptsetup (see https://github.com/freedomofpress/securedrop-export/blob/main/securedrop_export/disk/actions.py for implementation details).
The text was updated successfully, but these errors were encountered: