-
Notifications
You must be signed in to change notification settings - Fork 687
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
[v3 onion migration] add v3 onion support to tor-hidden-services ansible role #4628
Comments
In the morning I became I bit confused about the time when both v2 and v3 are available and we are using auth-header. As I don't know when will we handle the v3 authenticated services. |
I will push the changes in the morning in a draft PR. Will update |
I wrote a Python script which can generate the private and public keys using Now, to execute the script properly, I will have to place the scrip to the adjacent ---
- name: Copy the command file
copy:
src: gentorv3keys.py
dest: ../../admin/.venv/bin/gentorv3keys.py
mode: 0755
when: "v3_onion_services|default(false)"
- name: Generate v3 Onion keys if mentioned
command: gentorv3keys.py
register: genkeyv3
when: "v3_onion_services|default(false)"
- name: Get the public and private key
set_fact:
torkeys: "{{ genkeyv3.stdout }}"
when: "v3_onion_services|default(false)"
- debug:
var: hostvars['localhost']['torkeys']['private_key']
when: "v3_onion_services|default(false)"
|
Description
This ticket is to modify the
tor-hidden-services
Ansible role to usev2_onion_services
andv3_onion_services
variables fromsite-specific
(ref: #4627) to support the following three cases for SSH on app/mon (if SSH over Tor is configured), Journalist interface, and the Source interface:HidServAuth
as we currently do for SSH and the Journalist Interface)ClientOnionAuthDir
for SSH and the Journalist Interface) - references: Appendix G here, tor client auth docsIf the
v2_onion_services
andv3_onion_services
values are unset (this covers a case where the admin re-runssecuredrop-admin install
after 1.0.0 without re-runningsecuredrop-admin sdconfig
), their defaults should be:v2_onion_services
:True
v3_onion_services
:False
Subticket of #2951
The text was updated successfully, but these errors were encountered: