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

(develop) securedrop-admin tailsconfig forces presence of tor_v3_keys.json for Journalist Workstations #5942

Closed
eloquence opened this issue May 15, 2021 · 0 comments · Fixed by #5965

Comments

@eloquence
Copy link
Member

eloquence commented May 15, 2021

Description

Journalist Workstations should not hold a copy of tor_v3_keys.json, which contains sensitive SSH onion service client authentication keys. However, running securedrop-admin --force tailsconfig on current develop fails with an error complaining that tor_v3_keys.json is missing.

Steps to reproduce

  1. On a fresh Tails USB w/ persistence set up, check out https://github.com/freedomofpress/securedrop/ and copy valid app-sourcev3-ths and app-journalist.auth_private files into ~/Persistent/securedrop/install_files/ansible-base (per instructions in https://docs.securedrop.org/en/stable/onboarding.html)
  2. Run ./securedrop-admin setup
  3. Run ./securedrop-admin --force tailsconfig

Expected behavior

Command completes without error

Actual behavior

Command fails with error:

Authentication files for v3 onion services were found, but the corresponding tor_v3_keys.json file is missing. To enable updates to an existing SecureDrop instance, please add this file under ~/Persistent/securedrop/install_files/ansible-base.

This only happens on the develop branch, not on the last signed release tag.

Analysis

My read is that this is fallout from #5915, which removed the v3_onion_services condition here:

- name: Confirm that the Tor keys file is present
assert:
that:
- v3_tor_key.stat.exists
msg: >-
Authentication files for v3 onion services were found, but the
corresponding `tor_v3_keys.json` file is missing. To enable updates
to an existing SecureDrop instance, please add this file under
`~/Persistent/securedrop/install_files/ansible-base`.
when:
- v3_journalist_auth_file.stat.exists

v3_onion_services previously defaulted to False, ensuring that the check did not run on Journalist Workstations.

@eloquence eloquence changed the title (develop) securedrop-admin tailsconfig forces presence of tor_v3_keys.json for Journalist Workstations (develop) securedrop-admin tailsconfig forces presence of tor_v3_keys.json for Journalist Workstations May 15, 2021
@eloquence eloquence changed the title (develop) securedrop-admin tailsconfig forces presence of tor_v3_keys.json for Journalist Workstations (develop) securedrop-admin tailsconfig forces presence of tor_v3_keys.json for Journalist Workstations May 15, 2021
@eloquence eloquence added this to the 2.0.0 milestone May 17, 2021
@eloquence eloquence added this to Near Term - SecureDrop Core in SecureDrop Team Board May 18, 2021
@eloquence eloquence moved this from Near Term - SecureDrop Core to Next sprint candidates in SecureDrop Team Board May 20, 2021
@eloquence eloquence moved this from Next sprint candidates to SecureDrop Sprint #70 (5/5-5/19) in SecureDrop Team Board May 20, 2021
@eloquence eloquence self-assigned this May 20, 2021
@eloquence eloquence moved this from SecureDrop Sprint #71 (5/20-6/2) to In Development in SecureDrop Team Board May 27, 2021
@eloquence eloquence removed this from In Development in SecureDrop Team Board May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant