securedrop
securedrop copied to clipboard
SecureDrop always attempts installation via Tor if -ssh.auth_private files exist on Admin Workstation
Description
This may be a bug with SecureDrop, or may instead be an opportunity for us to improve our documentation. In situations where a SecureDrop user had previously installed the system successfully and enabled SSH over Tor, but then elected to re-provision the servers with a clean installation of Ubuntu Server, when trying to re-run the playbooks they will fail with an SSH error because Ansible attempts to use onion services (which are no longer running on the servers) because it's only checking for the presence of the -ssh.auth_private files to determine how to connect to the servers.
Steps to Reproduce
- Install SecureDrop with SSH-over-Tor enabled
- Reinstall Ubuntu Server on App and Mon
- Remove
.ssh/config
and generate new SSH keys - Copy SSH keys onto the new servers
- Verify that
ssh app
andssh mon
work as expected - Run
./securedrop-admin install
Expected Behavior
The install run completes as expected.
Actual Behavior
The install run fails due to an SSH error.
Comments
A viable workaround is to rename the -ssh.auth_private
files to -ssh.auth_private.bak
(or remove them), which will cause Ansible to fall back to the LAN addresses.