From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8CP0MzwFc2J1bQEAbAwnHQ (envelope-from ) for ; Thu, 05 May 2022 00:59:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WPfNMjwFc2ICTwAAG6o9tA (envelope-from ) for ; Thu, 05 May 2022 00:59:08 +0200 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 82787C14A for ; Thu, 5 May 2022 00:59:08 +0200 (CEST) Received: from localhost ([::1]:59450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmNxa-0002p4-Nd for larch@yhetil.org; Wed, 04 May 2022 18:59:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmNxM-0002oe-Lu for help-guix@gnu.org; Wed, 04 May 2022 18:58:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmNxK-0006f9-JT for help-guix@gnu.org; Wed, 04 May 2022 18:58:52 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 799CF240026 for ; Thu, 5 May 2022 00:58:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1651705127; bh=F0D+4eo++uFU5o+hyNVOpBNggdwbdAFURsQQf5rN+Gg=; h=From:To:Cc:Subject:Date:From; b=DaH6Qm51fUGqu4HYAns3T1wDk/VB6z63s/M+Ynhr/kk7kajSvO8ROmKGbFgSN1L1J Xtwrgw8OaOghpT5YcNlCSjRVYrWSkizwBn0PwAi3PF2K51nKuhjDcdUmjYjQFelC5a 4j1rjEkzumWkUWJDkV1U3dKnHro63FOjdy3LEt5ADExRRSYTESutMGdzLxrsH2YSXx xnmdfbfaTfQplDKyiGwCIUJQFvVaEeJOqSYjdbAFMW9iIlAtz+R4arJ+srPeZMBzMJ osnPfBuU7B7v6k0ML/ePd/pMWeDByA7oF4nxUeZJRVzUoYud0FDJLJgeSlsx9NxF44 lfS6XgLm1gwEg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Ktsh60HNVz6tmm; Thu, 5 May 2022 00:58:46 +0200 (CEST) References: <87a6c6boqq.fsf@posteo.de> <87y1zq2wv2.fsf@elephly.net> From: Mekeor Melire To: Ricardo Wurmus Cc: help-guix@gnu.org Subject: Re: A package search engine for a curated list of channels Date: Wed, 04 May 2022 22:29:09 +0000 In-reply-to: <87y1zq2wv2.fsf@elephly.net> Message-ID: <87ilqkykgv.fsf@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=mekeor@posteo.de; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651705148; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MXB7vrgQ8K1JAXR+kHQS0aS/kZagzPXzST79/g5Xz0U=; b=km3WalmA2qTikHxSXV3D6af+QjlEx5Gol1YZEr+Ub+DAPjzhwki9+WjQX9VNKtyrJ1hd2l dwtf37SKtpqPY3ymQGPBzFx8S5fjW3QHLFDToensDa/LKTepvuIqaywyZtRIlJpePnTg3U DNmpNuV/W3Uo3rnmcPI5bpXH+YejYfhjxcg7kC5Q0usNDotUr0yi+rFJeNhHqrjO01xgJP R2h5db2lm6VrGy6HniLwqt/G7QuvFpRK+12lun5JqbjTLi7uU+sSx/6EsLASfgYSCUv7zs /r+gpp9UPri5mPQBBmx4xduZejYjWMbmkSdpWfF8RwUMcTbP6+EBwKSzPSCkng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651705148; a=rsa-sha256; cv=none; b=Vo/zRu4ZJ0BvplPK9WlXWPOEM0W3UDs1RJkTBAKxHqURQOURAPV4e5XyVllcF577XvU8JX 1tF5lAtbuEGCjviNnGFZWVeZeJS8rsRbmTYLKddoptgEw1j3U4cmYgF0Iolcq/KSl/Y+nG phlf9+VkO00q7++/FICW30ZMYI0RKH2twOjq2Ecka4urvA6h9Q+ZT0O3LlbXzpiYjGhcQ0 Dxlnoh1xH7xEMOuoWZEL0/0+mz7C/8tlTBWBGXTkWnavYqsJyJcKSr8qnWyqTidrc4b1XY gXh1tacqGkjZEF0xJk6CpxFeTiSChfiOWdolLVDnUh04CwTZ3m00JGogUcQJGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=DaH6Qm51; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -9.49 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.de header.s=2017 header.b=DaH6Qm51; dmarc=pass (policy=none) header.from=posteo.de; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 82787C14A X-Spam-Score: -9.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: yxWLxWHeRMPA 2022-04-27 / 20:37 / rekado@elephly.net: > See https://github.com/UMCUGenetics/hpcguix-web. It handles the > constant updates to all Guix channels and the search. You=E2=80=99re welc= ome > to contribute to it, e.g. to add an API, suggest changes in how > results are displayed, etc. > > An example deployment can be found at https://guix.mdc-berlin.de > > Guix has a service for it that makes deployment easy. > > You=E2=80=99ll see that it lists packages from guix-science and other cha= nnels, > e.g. https://guix.mdc-berlin.de/package/rstudio-server For the record: hpcguix-web is a really nice program but it does not offer sandboxing. Thus, it'd be a lot of work to make sure the channels do not contain code that executes malicious commands on the server which runs hpcguix-web. An alternative would be to implement some kind of isolation. But channels and package declarations are just scheme/guile code, so they will probably always be able to run arbitrary commands on the server. Another approach would be isolation. For each channel, we could run hpcguix-web inside a Docker-container so that there's some isolation. Then, we'd need to run another web-service which "bundles" the packages.json files of all single-channel, dockerized hpcguix-web instances. But: (1.) Does Docker really offer sufficient isolation? (2.) AFAIK, inside a operating-system-declaration with a docker-service, it's not possible to declare further / nested operating-systems which shall be run inside docker-containers. This would be awesome. We could write something like this then: --8<---------------cut here---------------start------------->8--- (operating-system (services (list ;; ... (service docker-service-type (docker-configuration (images (map (lambda (chan) (operating-system (services (list ;; ... (service hpcguix-web-service-type (hpcguix-web-configuration (specs #~(begin (use-modules (guix channels)) (define site-config (hpcweb-configuration (channels (list chan)))))))))))) some-long-list-of-channels))))))) --8<---------------cut here---------------end--------------->8---