-
Notifications
You must be signed in to change notification settings - Fork 46
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
Update mimetype handling and --view-only for open-in-dvm #501
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After building custom debs as described, then rebuilding locally, the changes here work well. I ran into a snag with the "all tests pass," related to v3 onions and --verify
behavior. Pushed up a fix to run the check as the debian-tor
user; if you've got v2 services enabled, would appreciate confirming it works well there too.
While I was able to confirm that gedit was used after submitting a .desktop
file, and I wasn't able to save changes in the DVM (one of the core resolutions this PR aims for), testing with xdg-open
inside sd-app
did allow me to clobber the originally submitted file. Therefore we need updates to the corresponding package PRs in order to update the open-in-dvm
behavior. For the context of the Client, we always want the open-in-dvm behavior to be read-only, so updating the corresponding desktop file will ensure that even xdg-open
makes it read-only. Such a change is still in the spirit of defense-in-depth, given that the client explicitly calls qvm-open-in-dvm
itself.
Had only tested the `tor --verify-config` command with v2 onions. Under v3, the test fails due to permissions. Running the same command as "debian-tor", rather than as "user", resolves.
1d3a93b
to
e3b0b5c
Compare
Thanks for the review and fixing the tor test case @conorsch . Your comments should now be addressed in respective repositories, also added tests here for the open-in-dvm desktop file. I have also updated the test plan accordingly. |
Rebuilt local packages, ran through test plan, everything working beautifully. Test plan report: In dom0:
In Tor browser
In sd-app
Not formally approving just yet, since we still need to snip out the TEMPORARY commit (will do so shortly), as well as approve the other related PRs. All PRs should be merged together in order to avoid problems. |
e3b0b5c
to
4b87327
Compare
Rebased on top of latest master (505a616), and removed temporary commit as requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test plan is passing. All related PRs have been reviewed and merged.
Status
Ready for review
❗ Temporary commit will need to be removed prior to merge ❗
This is due to the use of https://github.com/freedomofpress/securedrop-workstation/wiki/Evaluating-new-deb-package-behavior for reviewer convenience
The reviewer of this PR should also review and merge the following PRs before merging this one:
Description of Changes
Fixes freedomofpress/securedrop-client#960
Fixes freedomofpress/securedrop-client#961
Testing
In a dev VM:
sd-workstation
folderIn dom0:
make clone
and moveconfig.json
andsd-journalist.sec
in place, if necessarymake all
completes without issuemake test
all tests pass (except update tests for sd-app, due to 0.1.3 < 0.1.3 nightly series)In Tor browser
In sd-app
xdg-open
that file on disk manually (from /home/user/.securedrop-client/data/...) opens in a dvmxdg-open
that file on disk manually (from ~/QubesIncoming/sd-app/...) opens in a dvm (I recommend you use a plaintext file for convenience for next step)/tmp/sd-app...
and then closing the application does not modify the file in sd-appChecklist
If you have made code changes
If you have made changes to the provisioning logic
make test
) pass indom0
of a Qubes install