Skip to content
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

Fixes GUI feedback in sd-journalist #149

Merged
merged 3 commits into from
Sep 14, 2018

Conversation

conorsch
Copy link
Contributor

Installs python-qt4 in whonix-ws-14

The python-qt4 package is required for the GUI feedback integration,
so status messages can be displayed to the user. The package isn't
present by default, and we need it in sd-journalist. Since we don't
have SD TemplateVMs yet, we're adding the package to the base template,
installing in whonix-ws-14, rather than sd-journalist, to get
persistence for the package.

Marking as WIP, because we still have another follow-up to fix the submission process pipeline. See #127 (comment) for details; I propose we append a resolving commit here, then use the following test plan.

Testing

  1. Run make all in dom0.
  2. Run qvm-shutdown --wait whonix-ws-14, to ensure the modified TemplateVM will be used on subsequent creation.
  3. Re-run make all in dom0.
  4. Run make test and confirm no errors.
  5. Browse to configured Journalist Interface in the sd-journalist VM.
  6. Download submission.
  7. Confirm submission is processed successfully, and you can view the decrypted content of the submission.

The `python-qt4` package is required for the GUI feedback integration,
so status messages can be displayed to the user. The package isn't
present by default, and we need it in sd-journalist. Since we don't
have SD TemplateVMs yet, we're adding the package to the base template,
installing in `whonix-ws-14`, rather than `sd-journalist`, to get
persistence for the package.
@conorsch conorsch changed the title Installs python-qt4 in whonix-ws-14 Fixes GUI feedback in sd-journalist Sep 13, 2018
@conorsch
Copy link
Contributor Author

@emkll, if you have a patch for the python3 bytes/string pipe error, please append here.

@conorsch conorsch added the WIP label Sep 13, 2018
Due to changes in Python3 string handling, strings must be encoded prior to being sent to the pipe, as it may introduce a type error such as:
`TypeError: a bytes-like object is required, not 'str'`
@emkll
Copy link
Contributor

emkll commented Sep 13, 2018

Went through the test plan for 40d73f3, lgtm. I've also added a fix for the process submission in 9b6ec99.
Not sure if this is a regression but noting some error messages when invoking sd-process-download directly in sd-journalist:

in poller_cb: DOWNLOAD_BUNDLE_CREATED
in poller_cb: DECRYPTION_PROCESS_START
in poller_cb: SUBMISSION_BUNDLE_UNBUNDLED
in poller_cb: SUBMISSION_FILES_EXTRACTED
in poller_cb: SUBMISSION_FILE_DECRYPTION_SUCCEEDED
in poller_cb: DECRYPTED_BUNDLE_ON_SVS
in poller_cb: DECRYPTED_FILES_AVAILABLE
stat post: No such file or directory
Failed to remove file at exit
stat post: No such file or directory
Failed to remove file at exit

@emkll emkll mentioned this pull request Sep 14, 2018
7 tasks
@redshiftzero redshiftzero removed the WIP label Sep 14, 2018
# * python-futures required bootstrap Salt support
# * python-qt4 required for sd-process-feedback GUI integration
#
qvm-run -a whonix-ws-14 "sudo apt-get install -qq python-futures python-qt4":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nit .. but can we use the salt paradigm of

install qt4:
  cmd.run:
    - name: qvm-run -a whonix-ws-14 "sudo apt-get install -qq python-futures python-qt4"

instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

word, testing this PR with this suggested change

Copy link
Contributor

@redshiftzero redshiftzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran through test plan as described, all looks good

@redshiftzero redshiftzero merged commit 21baa3a into master Sep 14, 2018
@redshiftzero redshiftzero deleted the 127-fix-feedback-on-sd-journalist branch September 14, 2018 20:45
@conorsch
Copy link
Contributor Author

I'm seeing the feedback widget get stuck on "Initial download bundle created." Looks like others are able to decrypt and view test submissions fine with these changes, so I'll consider it specific to my dev env for now.

@conorsch
Copy link
Contributor Author

I'm seeing the feedback widget get stuck on "Initial download bundle created."

@redshiftzero pointed me to the solution: the qubes rpc rules in dom0 had broken as a result of a whitespace error during review of #140 (fixed during review, possibly in #146). Not reopening because we already have #147 tracking the addition of dom0 rpc tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants