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

[1.0.0] Remove v3 onion secrets when transitioning to ssh over local #4798

Merged
merged 1 commit into from
Sep 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions install_files/ansible-base/tasks/transistion_ssh_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- "{{ playbook_dir }}"
patterns:
- '*ssh-aths'
- '*ssh.auth_private'
register: find_ssh_aths_result

- name: Delete any aths ssh files found
Expand All @@ -20,13 +21,15 @@
run_once: yes

- name: Force a reboot conditionally, when tor_over_ssh status changed
command: shutdown -r now
shell: sleep 2 && shutdown -r now
async: 1
poll: 0
when: aths_deletion_results|changed

- name: Provide helpful user message and end early
fail:
msg: |
Due to the transition from ssh-over-tor to ssh-over-localnet
please re-run `./securedrop-admin install` again to continue
re-configuration.
please run `./securedrop-admin tailsconfig` and then re-run
`./securedrop-admin install` again to continue re-configuration.
when: aths_deletion_results|changed