From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4CAaA0JZO2FUbgEAgWs5BA (envelope-from ) for ; Fri, 10 Sep 2021 15:10:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +MhUOkFZO2HsRgAAbx9fmQ (envelope-from ) for ; Fri, 10 Sep 2021 13:10:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6FF1FC2DA for ; Fri, 10 Sep 2021 15:10:25 +0200 (CEST) Received: from localhost ([::1]:45534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mOgIR-0001Iy-9G for larch@yhetil.org; Fri, 10 Sep 2021 09:10:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mObdV-0004C7-SJ for guix-science@gnu.org; Fri, 10 Sep 2021 04:11:49 -0400 Received: from mx1.dismail.de ([78.46.223.134]:13198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mObdT-00024J-JC; Fri, 10 Sep 2021 04:11:49 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 5204ae24; Fri, 10 Sep 2021 10:11:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=date :message-id:from:to:cc:subject:references:mime-version :content-type:content-transfer-encoding; s=20190914; bh=vqFXGsFQ /fm4srjAoL9rXXRTOREGRNtPJbiLO/q/KGU=; b=SVdQVJMvDXlksYvBf+2Rf3wb 8NBqrWi96+bk3CH/nxfYVJNvi9PhbGuuwENcB9+7acfEKqtf5VE38UOY5kaQe+K/ K7fW1mfVAdy+xB3JldVBSuE7dTP4vg6TGGudVhB49W0JVOmj03jlGx/Q/Y6EPkOv jnWAGmNNZi5PeiOTgl02ffvwS7uMYjcgjse2TSY/hggRW+61Zt5DgZVwePZIJOFg NRfrZpRxAi+yA+vSmjsq3Y03KSuUVZTmTB3sDa1pm716CN8hvI5zDb/bWysQLUv8 OvcDbphL69EwN5/vDPZkXj3K8gf+z6IKuZ2PXQR5pURP2gKCzYMzUy6bLNVWgA== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 489a066f; Fri, 10 Sep 2021 10:11:42 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 7b88d670; Fri, 10 Sep 2021 10:11:42 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id dd986792 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Fri, 10 Sep 2021 10:11:41 +0200 (CEST) Date: Fri, 10 Sep 2021 04:11:39 -0400 Message-ID: <20210910041139.GB15993@gac.attlocal.net> To: guix-science@gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: guix-jupyter and allowing network access in isolated containers References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 10 Sep 2021 09:10:07 -0400 X-BeenThere: guix-science@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: jgart via Guix-Science Reply-To: jgart Errors-To: guix-science-bounces+larch=yhetil.org@gnu.org Sender: "Guix-Science" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631279425; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=wFrrSCZwrVauoFZ8aXV/QoMDzjxZM5nkeFsr/EyKfWM=; b=cSHwNXiDJBsjjuhD+5JHCbgLgJDrzgiEGTUIn+NOdJE6OdkpjNqHAp78bne2BxCFvW75k3 ETEJpaTFulphCz3whz6ViL+IlgIyEeZOI+MhpWeT22qJ/lyhrqg4EixtO/05hJJUnGuk1n C4OsymfzS/v5vQhMlZEkxEGv2f4sObnX3JRn5ZXjfdqyGk4NKbXWamikbUx2cbUbiAO6FX mAlxc+Aw9z3jMLwO750cuese20JtMUI3skMF3ZIvumIdL+TcWPXWBmnWewoCC0eV3d4/wu hHdHhPkoFgdu3B3QmjFNbEFdo3F2e+y1TphnTrkEHNOkc1D85hJcpBWlBikgag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631279425; a=rsa-sha256; cv=none; b=cKa9+e2sFtqIhlRiBm2IukxwHW67AGntVdlKJj0v6WneF7m8IujThuhrqlrpBQduPBqixC 8/pn/ASar1Vt8LDAPD6qIU41RfGVOk76EsTLEFZNlX4WJcBhzH5t1lcvfRF3cxqliFG+ct hzErq8A5lyTgZg3Gqh0k7pMBgFrvLh0h6tmacMqXiPAucwJ5f9qoELPt+cj5XN+0yR1Kuo PSqq4Y4Ua1KOxQVCsLFf8NULjqA2XUBYc4c5GGEbT2s/DwDoGN34Anra+setvUHdArSo+4 INkuw0IwmCpeS0kvNKEJSfE7LjEjPUHnbxWOttUgCejknGRYXurPRABYFhdfRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=SVdQVJMv; spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Spam-Score: -1.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=SVdQVJMv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-science-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-science-bounces@gnu.org X-Migadu-Queue-Id: 6FF1FC2DA X-Spam-Score: -1.41 X-Migadu-Scanner: scn0.migadu.com X-TUID: RP+kKwKqpIkf Hi Ludo, Hope all is well! I'm messaging here to keep our corespondence public in case it is helpful for others. An isolated guix-jupyter container does not have access to the internet by default as I read from your blog post and from the source code of guix-kernel. What would be the best way to allow networking in a guix-kernel/guix-jupyter isolated container? Should I be modifying the code for eval/container* in order to create a custom jupyter kernel that allows network access for code run in notebook cells? Some places were eval/container* is found in the code: https://gitlab.inria.fr/guix-hpc/guix-kernel/-/blob/master/guix/jupyter/containers.scm#L40 https://gitlab.inria.fr/guix-hpc/guix-kernel/-/blob/master/guix/jupyter/kernel.scm#L181 I'm assuming that the --network command line option won't work with guix-kernel and why I'm asking about creating my own modified jupyter kernel container instance with network access. Does it makes sense to have a majic to allow a guix-jupyter notebook user access to the internet? ;;guix allow like `direnv allow` or ;;guix network after the corresponding cli option of `guix environment --network` I'm interested in this feature for guix-jupyter because I am putting together a demo notebook showcasing requests to the GeneNetwork REST API. all best, jgart _________________________________________ / 3B1D 7F19 E36B B60C 0F5B 2CA9 A52A A2B4 \ \ 77B6 DD35 / ----------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||