Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

WIP: Use native Python functions instead of shelling out #129

Closed
wants to merge 15 commits into from

Conversation

legoktm
Copy link
Member

@legoktm legoktm commented Dec 5, 2023

WIP because tests are failing and it builds on top of #126.

rocodes and others added 15 commits November 30, 2023 08:44
…eraCrypt drive and unlocking VC drive, using cryptsetup.
…either bad VC passphrase or corrupted drive). Add logic to detect and use VeraCrypt drives.

Use new Status and Service for exporting files. Add method to cli.py to check all volumes and return most detailed information about each candidate Volume, including mounting if the volume is already unlocked.
…c test coverage.

Changes to VC unlock logic and service.py to mount LUKS drive immediately after unlocking.
mypy noted a theoretical case in which `udisksctl mount` exits with a 0
status code but doesn't return our expected output. In this case just
raise an exception as we couldn't figure out the mount point.

While we're at it, add a test case to verify the mountpoint is parsed
correctly.
I think this was just a mistake because the volume is already unmounted
before the volume is closed.
This should hopefully fix CI and running in containers that don't
have an active rsyslog daemon.
@legoktm
Copy link
Member Author

legoktm commented Dec 20, 2023

I've moved this PR to freedomofpress/securedrop-client#1749.

@legoktm legoktm closed this Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants