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

Provision submission key fingerprint in config.json to sd-svs #291

Merged
merged 1 commit into from
Jul 18, 2019

Conversation

emkll
Copy link
Contributor

@emkll emkll commented Jul 17, 2019

Towards freedomofpress/securedrop-client#475

The SecureDrop client expects a file named config.json in /home/user/.securedrop_client/ containing the journalist key fingerprint. This key is used to encrypt replies to the submission (journalist key), so that replies can be decrypted by journalists in the client. This is because replies are encrypted in the client.

/home/user/.securedrop_client folder is populated on first run, and since it's the home directory, must be applied to sd-svs and not sd-svs-template

dom0 config.json file should now contain the GPG fingerprint of the submission key, which will populate config.json file in sd-svs.

Test plan

  • make clean
  • checkout this branch and make clone
  • add a submission_key_fpr containing the GPG fingerprint of the SecureDrop instance used
  • make all
  • all tests pass with make test
  • I can send a reply to a source from the client

The SecureDrop client expects a file named config.json in /home/user/.securedrop_client/ containing the journalist key fingerprint. This key is used to encrypt replies to the submission (journalist key), so that replies can be decrypted by journalists in the client. This is because replies are encrypted in the client.

/home/user/.securedrop_client folder is populated on first run, and since it's the home directory, must be applied to `sd-svs` and not `sd-svs-template`

dom0 config.json file should now contain the GPG fingerprint of the submission key, which will populate config.json file in sd-svs.
@emkll emkll force-pushed the 475-client-reply-fix branch from 6ce3ac3 to 8fff04c Compare July 17, 2019 22:29
Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

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

i ran make test and see a couple issues (the first one ive seen before):

  1. policy issue
Policy for VMShell should be:
### BEGIN securedrop-workstation ###
$anyvm $tag:sd-workstation deny
### END securedrop-workstation ###


FAIL
  1. submission_key_fpr error
ERROR: test_sd_client_config (test_svs.SD_SVS_Tests)
...
KeyError: 'submssion_key_fpr'
...
FAIL: test_Policies (test_qubes_rpc.SD_Qubes_Rpc_Tests)

@sssoleileraaa
Copy link
Contributor

oh i see the new submission_key_fpr was added to the config.json.example. will copy that over and retest!

Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

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

works beautifully with the securedrop client debian package. will just need a follow-up securedrop-client issue to get this working when running the client via the run.sh script, which will default to a tmp directory. we will need to copy the config.json file there.

@sssoleileraaa sssoleileraaa merged commit 43dc174 into master Jul 18, 2019
@sssoleileraaa sssoleileraaa deleted the 475-client-reply-fix branch July 18, 2019 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants