From: Mekeor Melire <mekeor@posteo.de>
To: Ricardo Wurmus <rekado@elephly.net>
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 [thread overview]
Message-ID: <87ilqkykgv.fsf@posteo.de> (raw)
In-Reply-To: <87y1zq2wv2.fsf@elephly.net>
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’re welcome
> 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’ll see that it lists packages from guix-science and other channels,
> 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---
next prev parent reply other threads:[~2022-05-04 22:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-27 13:51 A package search engine for a curated list of channels Mekeor Melire
2022-04-27 15:08 ` Edouard Klein
2022-04-27 18:37 ` Ricardo Wurmus
2022-04-27 21:07 ` 404 errors with hpcguix-web (e.g. for /packages.json) Mekeor Melire
2022-05-04 22:25 ` Show: Minimal Working Example of hpcguix-web Mekeor Melire
2022-05-04 22:29 ` Mekeor Melire [this message]
2022-05-05 9:01 ` A package search engine for a curated list of channels Ricardo Wurmus
2022-09-03 10:24 ` zimoun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilqkykgv.fsf@posteo.de \
--to=mekeor@posteo.de \
--cc=help-guix@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).