Skip to content

Commit

Permalink
Add v2 onion deprecation warning to securedrop-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
eloquence authored and kushaldas committed Jul 14, 2020
1 parent 0ad9e63 commit 0ab186c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion admin/securedrop_admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ def __init__(self, args):
str.split,
lambda config: True],
['v2_onion_services', self.check_for_v2_onion(), bool,
'Do you want to enable v2 onion services (recommended only for SecureDrop instances installed before 1.0.0)?', # noqa: E501
'WARNING: For security reasons, support for v2 onion services ' +
'will be removed in February 2021. ' +
'Do you want to enable v2 onion services?',
SiteConfig.ValidateYesNo(),
lambda x: x.lower() == 'yes',
lambda config: True],
Expand Down
2 changes: 1 addition & 1 deletion admin/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def verify_locales_prompt(child):


def verify_v2_onion_for_first_time(child):
child.expect(rb' installed before 1.0.0\)\?\:', timeout=2) # noqa: E501
child.expect(rb'Do you want to enable v2 onion services\?\:', timeout=2) # noqa: E501
assert ANSI_ESCAPE.sub('', child.buffer.decode("utf-8")).strip() == 'no' # noqa: E501


Expand Down

0 comments on commit 0ab186c

Please sign in to comment.