Skip to content

Commit

Permalink
fix: set HiddenServicePoWDefensesEnabled only on explicit securedrop_…
Browse files Browse the repository at this point in the history
…app_pow_on_source_interface=True

Otherwise a "securedrop-admin install" without a prior "securedrop-admin
sdconfig" will default to enabling this feature.  Let's not surprise an
administrator who likely intended to enforce the existing configuration.

Co-authored-by: Kevin O'Gorman <kog@freedom.press>
  • Loading branch information
cfm and zenmonkeykstop committed Jun 13, 2024
1 parent 1a66400 commit 02a81f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RunAsDaemon 1
HiddenServiceDir /var/lib/tor/services/sourcev3
HiddenServicePort 80 127.0.0.1:80

{% if securedrop_app_pow_on_source_interface|default(True) %}
{% if securedrop_app_pow_on_source_interface|default(False) %}
HiddenServicePoWDefensesEnabled 1
{% endif %}

Expand Down

0 comments on commit 02a81f1

Please sign in to comment.