securedrop icon indicating copy to clipboard operation
securedrop copied to clipboard

SecureDrop always attempts installation via Tor if -ssh.auth_private files exist on Admin Workstation

Open nathandyer opened this issue 1 month ago • 2 comments

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

  1. Install SecureDrop with SSH-over-Tor enabled
  2. Reinstall Ubuntu Server on App and Mon
  3. Remove .ssh/config and generate new SSH keys
  4. Copy SSH keys onto the new servers
  5. Verify that ssh app and ssh mon work as expected
  6. 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.

nathandyer avatar Jun 12 '24 21:06 nathandyer