-
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
Disable v2 onion addresses on restore on Focal #5677
Conversation
This pull request introduces 3 alerts when merging c98ad06 into 2e513b1 - view on LGTM.com new alerts:
|
c98ad06
to
fafb675
Compare
This pull request introduces 3 alerts when merging fafb675 into 2e513b1 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## develop #5677 +/- ##
========================================
Coverage 85.38% 85.38%
========================================
Files 51 51
Lines 3709 3709
Branches 464 464
========================================
Hits 3167 3167
Misses 441 441
Partials 101 101 Continue to review full report at Codecov.
|
(Marked as release blocker for 1.8.0.) |
fafb675
to
31f6091
Compare
Rebased today. |
This pull request introduces 3 alerts when merging 31f6091 into 65e8d6b - view on LGTM.com new alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This left Xenial services untouched. On Focal it removed all v2 services but ssh. Seems like that should go as well.
I started working on the updating of the PR, and now wondering about the scenario of |
31f6091
to
e5fa74b
Compare
Rebased against develop. |
This pull request introduces 5 alerts when merging e5fa74b into f3e51b4 - view on LGTM.com new alerts:
|
e5fa74b
to
1066cd0
Compare
This pull request introduces 5 alerts when merging 1066cd0 into 88ac049 - view on LGTM.com new alerts:
|
Tried using this to restore a v2+v3 Xenial backup onto a v3-only Focal system. It fails at the compare_torrc.py step, as the configurations are obviously different, but this scenario should probably be supported. My expectation would be that the migration states should go as follows:
(implicit above is that there are no valid Focal targets with v2)
In all cases the docs need refreshing (see freedomofpress/securedrop-docs#133 ). Implementation notes
|
This pull request introduces 5 alerts when merging 05d83c7 into da9dbf2 - view on LGTM.com new alerts:
|
We filter out any v2 onion address related line from /etc/tor/torrc and also the directories from /var/lib/tor/services. This will happen only on Focal. On Xenial, everything stays the same.
05d83c7
to
8835810
Compare
This pull request introduces 5 alerts when merging 8835810 into 23bf5f8 - view on LGTM.com new alerts:
|
I tested with v2/v3 and only v3 restore. Also fixed the merge conflict in CI. Now, need at least more person to make sure that I did not loose anything after merge conflict. Maybe @zenmonkeykstop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflict resolution looks good based on visual review. Approving.
Status
Ready for review
Description of Changes
Fixes #5676 , towards #5731
We filter out any v2 onion address related line from /etc/tor/torrc
and also the directories from /var/lib/tor/services. This will
happen only on Focal. On Xenial, everything stays the same.
Testing
Deployment
Any special considerations for deployment? Consider both:
Checklist
If you made changes to the server application code:
make lint
) and tests (make test
) pass in the development containerIf you made changes to
securedrop-admin
:make -C admin test
) pass in the admin development containerIf you made changes to the system configuration:
If you made non-trivial code changes:
Choose one of the following:
If you added or updated a code dependency:
Choose one of the following: