From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 04 08:54:08 2020 Received: (at 41694-done) by debbugs.gnu.org; 4 Jun 2020 12:54:08 +0000 Received: from localhost ([127.0.0.1]:45406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgpNn-0002Nu-S4 for submit@debbugs.gnu.org; Thu, 04 Jun 2020 08:54:08 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:60921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jgpNm-0002NP-Iu for 41694-done@debbugs.gnu.org; Thu, 04 Jun 2020 08:54:06 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay5-d.mail.gandi.net (Postfix) with ESMTPA id 5CCEA1C0002; Thu, 4 Jun 2020 12:54:00 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 04 Jun 2020 12:54:00 +0000 From: Brice Waegeneire To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: [bug#41694] [PATCH] doc: cookbook: Add entry about getting substitutes through Tor. In-Reply-To: <87367baua7.fsf@gnu.org> References: <87blmmkx87.fsf@gnu.org> <20200603191249.29382-1-brice@waegenei.re> <87367baua7.fsf@gnu.org> Message-ID: <5b7e576318d73e89ba5a9cafb6861061@waegenei.re> X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 41694-done Cc: guix-devel@gnu.org, 41694-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On 2020-06-04 12:29, Ludovic Courtès wrote: > Hi, > > Brice Waegeneire skribis: > >> * doc/guix-cookbook.texi (Getting substitutes from Tor): New section. > > Yay! > >> +@node Getting substitutes from Tor >> +@section Getting substitutes from Tor >> + >> +@quotation Warning >> +@emph{Not all} Guix daemon's traffic will go through Tor! Only >> +HTTP/HTTPS will get proxied; FTP, Git protocol, SSH, etc connections >> +will still go through the clearnet. Again, this configuration isn't >> +foolproof some of your traffic won't get routed by Tor at all. Use >> it >> +at your own risk. >> +@end quotation > > I would suggest adding a line of intro before the warning, otherwise we > see the warning before even knowing what the section is about. :-) > >> +Guix's substitute server is available as a hidden service, if you >> want > > I think official terminology these days is “Onion service”. > >> +to use it to get your substitutes from Tor configure your system as >> +follow: >> + >> +@lisp >> +(use-modules (gnu)) >> +(use-service-module base networking) >> + >> +(operating-system >> + … >> + (services >> + (cons >> + (service tor-service-type >> + (tor-configuration >> + (config-file (plain-file "tor-config" >> + "HTTPTunnelPort >> 127.0.0.1:9250")))) >> + (modify-services %base-services >> + (guix-service-type > ^^^^^^^^^^^^^ > Too many spaces here. > >> +@example >> +# herd set-http-proxy guix-daemon http://localhost:9250 >> +$ guix build --substitute-urls=https://bp7o7ckwlewr4slm.onion hello >> +@end example > > To make it copy/pastable, you can remove the prompt and write it as: > > sudo herd set-http-proxy … > guix build … > > Something along these lines LGTM. > > Thank you! > > Ludo’. Thank you for the review Ludovic. Pushed as c987b72382e739bf887849b02c533eda317ea52b with the 3 modifications you were requesting. - Brice