-
Notifications
You must be signed in to change notification settings - Fork 492
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
Auto-download over Tor #12094
Auto-download over Tor #12094
Conversation
…2023-12-04-WW-AutoDownload
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.
The PR is quite hard to review because it bundles many changes but is really good.
I tested and could download through Tor without any issue.
What do you consider is missing for this feature? It seems to me that there is not much else to do other than remove debug code
I see no difficulty nor controversies in this PR, it's simply good. I guess you can remove debug code, and I will provide a more complete review
I extracted some minor changes to #12121 to make this PR smaller. |
…04-WW-AutoDownload # Conflicts: # WalletWasabi.Daemon/Global.cs # WalletWasabi/Services/UpdateManager.cs
I removed the debug code. I'm not really aware of anything missing. |
# Conflicts: # WalletWasabi.Daemon/Global.cs
An easy way to test this is to use this PR to download the new release, right? |
Yes, that's right. |
Hmm, for me updating WW fails with:
On master, verifying the signature passes and the download starts. |
Right, there was extra BOM character in |
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.
tACK, I was able to download v2.0.5
over Tor with this PR.
For the code changes, I can only give a trustACK.
@Kukks Friendly ping. I believe you were interested in "HTTP redirect support for Tor". |
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.
tACK
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.
tACK 322284b
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.
The code is hard to review for me, but I went through it for quite some time and do not find clear mistakes.
I also tested and it works without any issue.
Should redirection also be tested? Or is the implementation common knowledge?
It is tested by downloading the file. But it can be tested also in other situations.
It's not "common knowledge". It's more like "HTTP protocol is not actually easy to implement" because RFCs are not totally complete regarding behavior (in edge/corner cases). It's hard to test redirecting fully. So I did my best to implement it and I just hope it's OK. And then on the other hand, if we discover there is a bug, we will simply add a new unit test and fix it. We need redirecting only for this particular auto-download feature. @Kukks has other use cases, so maybe we'll colaboratively find out other needs. |
Depends on #12121
Fixes #8800
Follow-up to #8741
This PR adds auto-download feature over Tor. Currently, it works over the clearnet. To make the feature work, it was necessary to implement HTTP redirection support for Tor.