From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iFAjJcAqQmFPIQEAgWs5BA (envelope-from ) for ; Wed, 15 Sep 2021 19:17:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qGZOIMAqQmFqDgAA1q6Kng (envelope-from ) for ; Wed, 15 Sep 2021 17:17:52 +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 8762D66DB for ; Wed, 15 Sep 2021 19:17:51 +0200 (CEST) Received: from localhost ([::1]:47188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQYXd-0004QT-Ev for larch@yhetil.org; Wed, 15 Sep 2021 13:17:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQYHW-0002QB-5H for help-guix@gnu.org; Wed, 15 Sep 2021 13:01:10 -0400 Received: from box.euandre.org ([46.101.160.115]:58265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQYHR-00049R-IM for help-guix@gnu.org; Wed, 15 Sep 2021 13:01:09 -0400 Received: from authenticated-user (box.euandre.org [46.101.160.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.euandre.org (Postfix) with ESMTPSA id CFAFDFC3EB; Wed, 15 Sep 2021 14:01:02 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=euandre.org; s=mail; t=1631725263; bh=tqxIWXgMAZXuysSlKMUkyGnE/FOGPscU+xQ9K7Em/I0=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=C3VFt1NRKjAmGHTzXFf6nvdVv82T+LulVZt8zvmBjaZrO4Z8GUDvH9z77r1E/wIeN 7pLRfdpp69ntRMF5ejcs71c3KcTBwrES5TLxJLqkxD/XwGkzFlycZfzweWc30+hxCQ cd5kFpdGkDaS/maNgD9HNzmYrR4JTCGiupeejkzc5kzsgjqrlHDUW1FpcxR7rcwnCn vokEHZ9BAjvzSkteuUZOW+zmJP9BVyr8i0rV86kryHTaH60DNU/eh3Y7D+8lJl3fb5 snyuj94MryI6ic8M8/E3oAU5aFyJD2awmSSnzlM5MN0kYS+fvldIJeJgjBWiReKzYp Zj4oPZwHTXF6A== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <162982163567.793927.6624373973993891167@localhost> References: <162732098483.1190082.2428052336447457010@localhost> <45678c8e547ff29fb6a7810d0d056d2a26a554be.camel@divoplade.fr> <162844494799.195169.5544877138905416641@localhost> <162904717504.1902474.2861575348138623741@localhost> <162982163567.793927.6624373973993891167@localhost> Subject: Re: Can't serve a custom channel on a HTTPS repository From: EuAndreh Cc: help-guix@gnu.org To: Leo Famulari Date: Wed, 15 Sep 2021 14:00:59 -0300 Message-ID: <163172525988.1171990.1918429373113497775@localhost> Received-SPF: pass client-ip=46.101.160.115; envelope-from=eu@euandre.org; helo=box.euandre.org X-Spam_score_int: 0 X-Spam_score: -0.1 X-Spam_bar: / X-Spam_report: (-0.1 / 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, PDS_OTHER_BAD_TLD=1.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1631726272; 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=p2OEW8n9eDCd59kr+HZlpS78Dvtc8GUFin7ifue5EYE=; b=YvBP73UCYbVawB2eDxJRmkC36pt7ia0pS4qZmzGQsIFXoTD5oslOCiVpTlEOwevBOapAXf 9xcRyy5FtoxPe3NAoCay0ovlA/s2KiqlS4oeA0zUM8SR1eH7uKhiSfidbrGJHQMa2SLA3P WQkpM5H3H4hkyftLVwUSOblmI1H1qULxBS5nW58BMjhpqWLV8N4o2tC41A87sRsXdVK7RT 5Ni70q2e/oloF2nREJd5+WmwYaxqLyuQuBnCHiqoQDnFLSauM4QbOUZjSaPtADpMU5vPMF AWOmCNMpBEaCy/PsfZ300tlh2fqlZ8HGYIgS5uKbT24EdjAIKI/A6O1FxExxAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1631726272; a=rsa-sha256; cv=none; b=EyvyaMWezgGTjXXNWC9zDy+5VvBVK5yxFyDzoLRys92rQcM11ZKRBetNOLY5hagCGJw8mq ZzJBG7+uu/nGRcoOyHCDda1hoD7rv1wRpMilt03Tq3cADdtKSCXelw0lf6xkGW8HalEEBE iSt1thjeuGzUUBdmxHK9V8VhuyNwQypRl7eNygwWI98Mrd63vkKe/pvRL15/tyHjOJW1IH 9hmoz+gsWUtCGkJMK3Ld+mC+WebqPvpqy+4zDWJrmoB2nx9crx5oiez2zBvA542y/AIxb7 ph0OzyiC+rP74LJxzinMqnV+0kl1OGv6iumYAYq3L9sfgftqNWO1/SpPvm3OxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=euandre.org header.s=mail header.b=C3VFt1NR; dmarc=pass (policy=quarantine) header.from=euandre.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.60 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=euandre.org header.s=mail header.b=C3VFt1NR; dmarc=pass (policy=quarantine) header.from=euandre.org; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 8762D66DB X-Spam-Score: -2.60 X-Migadu-Scanner: scn1.migadu.com X-TUID: h1wgzX8j8hZ6 Final conclusion: libgit does support bare repositories served via HTTP, but only when using = Git's "Smart HTTP", but not the "Dumb HTTP" [0]. Take Guix's channel served on Savannah: $ curl -I https://git.savannah.gnu.org/git/guix.git/info/refs HTTP/1.1 200 OK Content-Type: text/plain $ curl -I https://git.savannah.gnu.org/git/guix.git/info/refs?service= =3Dgit-upload-pack HTTP/1.1 200 OK Content-Type: application/x-git-upload-pack-advertisement In this case, Savannah is honouring Git's query params, and speaking the "Smart HTTP" protocol. The problem came when I tried serving a bare Git repository over HTTP using= the "Dumb HTTP" protocol, and that libgit doesn't implement [1]: $ curl -I https://euandreh.xyz/package-repository.git/info/refs HTTP/2 200 content-type: text/plain; charset=3DUTF-8 $ curl -I https://euandreh.xyz/package-repository.git/info/refs?service= =3Dgit-upload-pack HTTP/2 200 content-type: text/plain; charset=3DUTF-8 [0]: https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols [1]: https://github.com/libgit2/libgit2/issues/4652#issuecomment-390903142 --- So my suggestion is that Guix understands how to fetch from channels that a= re just tarballs. Right now channels are married to Git, and specifically, libgit's reimplementation of Git. This is limiting for people who: 1) want to have bare Git repositories served via HTTP, but using only the=20 "Dumb protocol"; 2) want to have Guix channels on things other than Git, like Mercurial, Fos= sil, BitKeeper, etc.; 3) want to distribute only the tarball of the channel, and not the reposito= ry where the code of the channel lives. I see Guix channels understanding tarballs as a solution to the above. One could argue that other DVCS would be treated as second class, since no authentication or caching would be done, but I find this reasonable, and al= so decoupled from the choices of the channel provider. As long as they can pr= oduce a tarball with Guile files, iit works. This is a much lower bar to creatin= g and maintaining Guix channels.