Fix errors in Tails validation logic; bump Tails version req #5965
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Status
Ready for review
Description of Changes
Fixes #5942
The journalist auth file should always be present when
./securedrop-admin tailsconfig
is run and is not logically tied to the SSH-over-Tor setting or the presence of SSH onion service secrets.The
tor_v3_keys.json
file is only required if SSH secrets are present and SSH-over-Tor is enabledWe can no longer support the Tails 3 series, so it's appropriate to error out at this point when users attempt to use it
Testing
Estimated testing time: 30-60 minutes
On a physical or virtualized Admin Workstation with SSH-over-Tor enabled
app-journalist.auth_private
,tor_v3_keys.json
,app-ssh.auth_private
andmon-ssh.auth_private
from~/Persistent/securedrop/install_files/ansible-base
into a temporary location like~/Persistent
./securedrop-admin --force tailsconfig
in/Persistent/securedrop
app-journalist.auth_private
is missing. [Explanation: This file must always be present to access the web-based Journalist/Admin Interface.]app-journalist.auth_private
into placeapp-ssh.auth_private
andmon-ssh.auth_private
into placetor_v3_keys.json
is missing [Explanation: This file contains the private key needed to authenticate against the SSH onion services.]~/Persistent/securedrop/install_files/ansible-base/group_vars/all/site-specific
and setenable_ssh_over_tor
tofalse
tor_v3_keys.json
into placeDeployment
Although folks really should not be using Tails 3 anymore, it likely will warrant a call-out in our release notes.
Checklist