Skip to content

Commit b69fe5e

Browse files
committed
Merge sd-whonix into sd-proxy
Companion PR for client change [1] with the aim of deprecating whonix, in favor of delegating the tor connectivity aspect to sd-proxy running arti. Changes introduced: 1. sd-proxy connects to 'sys-firewall' directly: since sd-proxy is now handling tor connections, it must connect directly to the internet. It keeps the original goal of preventing the client from being able to connect to arbitrary domains. This is also something that sd-whonix did not guarantee (it could connect to arbitrary domains, albeit via Tor). 2. sd-whonix has access to onion service auth key Access done via qubes feature vm-config.SD_PROXY_ORIGIN_KEY 3. sd-whonix removed 4. Install `securedrop-proxy-config` in sd-proxy template [1]: freedomofpress/securedrop-client#2561 Test in ci: openqa
1 parent f6ecf68 commit b69fe5e

File tree

5 files changed

+5
-85
lines changed

5 files changed

+5
-85
lines changed

securedrop_salt/sd-proxy.sls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
{% import_json "securedrop_salt/config.json" as d %}
1212

1313
include:
14-
- securedrop_salt.sd-whonix
1514
- securedrop_salt.sd-workstation-template
1615

1716
sd-proxy-dvm:
@@ -26,7 +25,7 @@ sd-proxy-dvm:
2625
- template: sd-small-{{ sdvars.distribution }}-template
2726
- prefs:
2827
- template: sd-small-{{ sdvars.distribution }}-template
29-
- netvm: sd-whonix
28+
- netvm: sys-firewall
3029
- template_for_dispvms: True
3130
- default_dispvm: ""
3231
- features:
@@ -41,7 +40,6 @@ sd-proxy-dvm:
4140
- sd-workstation
4241
- sd-{{ sdvars.distribution }}
4342
- require:
44-
- qvm: sd-whonix
4543
- qvm: sd-small-{{ sdvars.distribution }}-template
4644

4745
sd-proxy-create-named-dispvm:
@@ -53,12 +51,13 @@ sd-proxy-create-named-dispvm:
5351
- class: DispVM
5452
- prefs:
5553
- template: sd-proxy-dvm
56-
- netvm: sd-whonix
54+
- netvm: sys-firewall
5755
- autostart: true
5856
- default_dispvm: ""
5957
- features:
6058
- enable:
6159
- service.securedrop-mime-handling
60+
- service.securedrop-proxy-config
6261
- set:
6362
- vm-config.SD_MIME_HANDLING: default
6463
- servicevm: 1
@@ -79,5 +78,6 @@ sd-proxy-config:
7978
- name: sd-proxy
8079
- set:
8180
- vm-config.SD_PROXY_ORIGIN: http://{{ d.hidserv.hostname }}
81+
- vm-config.SD_PROXY_ORIGIN_KEY: {{ d.hidserv.key }}
8282
- require:
8383
- qvm: sd-proxy-create-named-dispvm

securedrop_salt/sd-remove-deprecated-qubes.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# WARNING: only remove when complete reinstall is assumed (e.g. 1.0.0 release)
66
# This is because the workstation may have been offline for a while
77
# and skipped some salt updates.
8-
{% for untagged_qube in ["sd-retain-logvm"] %}
8+
{% for untagged_qube in ["sd-retain-logvm", "sd-whonix"] %}
99

1010
poweroff-before-removal-{{ untagged_qube }}:
1111
qvm.shutdown:

securedrop_salt/sd-whonix-config.sls

Lines changed: 0 additions & 9 deletions
This file was deleted.

securedrop_salt/sd-whonix.sls

Lines changed: 0 additions & 68 deletions
This file was deleted.

securedrop_salt/sd-workstation.top

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ base:
1717
- securedrop_salt.sd-proxy
1818
- securedrop_salt.sd-viewer
1919
- securedrop_salt.sd-app
20-
- securedrop_salt.sd-whonix
2120
- securedrop_salt.sd-remove-deprecated-qubes
2221
- securedrop_salt.sd-remove-unused-templates
2322

@@ -36,8 +35,6 @@ base:
3635
'sd-fedora-42-dvm,sys-usb':
3736
- match: list
3837
- securedrop_salt.sd-usb-autoattach-add
39-
whonix-gateway-{{ whonix.whonix_version }}:
40-
- securedrop_salt.sd-whonix-config
4138

4239
# "Placeholder" config to trigger TemplateVM boots,
4340
# so upgrades can be applied automatically via cron.

0 commit comments

Comments
 (0)