From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id sIKUAQ4gvWWGHgAA62LTzQ:P1 (envelope-from ) for ; Fri, 02 Feb 2024 18:02:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sIKUAQ4gvWWGHgAA62LTzQ (envelope-from ) for ; Fri, 02 Feb 2024 18:02:06 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lassieur.org header.s=fm2 header.b=gUuDPCYK; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b="R RY46tg"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706893325; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Iv71jqKjE2DlmZbFffuz/J3cLgDRbRWWn//iDAcYS7s=; b=EBDmeN0GtkO1jsIA7HsDMN8w4fBslNCvM1h3ApeFjt1gUWCvEu2uey7H3sM5Y6sYLS9cZK Vq8WnFSkBPOSzDXXc7BKjNEaAJQ1nl27rcjB1yKaXfxFHdrmMR+RARoUwgDa5VEVaHlPoE wUE7NztdMg4ywCXpO9FJwyiSaMu3rhp1fNB4FMZul4me56rx5SCN/p/6axX/jvwWkmETJQ LUzaFjhEDlrCEbvTn1hN11lsE6nqHOhqlbizWaj1ZpbY56269dya8ylMu+pLY6cty053w1 QyyHz3tPJvpxsIDet0YmXY/2zKaeldzeKmjDuI9rJ3rXOIlLiIH+PXnNWXU9qA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lassieur.org header.s=fm2 header.b=gUuDPCYK; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b="R RY46tg"; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706893325; a=rsa-sha256; cv=none; b=rd4gVAeFIK7dSIQ23X6yioz0YA4XQ1wiR1O+hkncN1oN8RLpnFzY+vLMomfol+13AELFLV 3/1SzVL4q1kwgFlc3buwtXgqZS91+PVApm7o0cxcJoLR0viDTBW/dr7JwdlILcsMwGGBot LzTkwuPYPxV4mTQhZbr1G6XL/42C5btNd5DO7ekPjMQG1ZU0EcZ/0cWldbmzwtxvYpVWkx 7y+560N9T+pAr7VBPpnoXm1GLUmYm1hRUCmcSZNM5CAK7vTvDR20QAtZRtT7kRKJmOBxlg uvEBNfgr5kCYUu+uugDsBJ2Rhuw1bYUraSsxAofxLPl0Ix6u4ee5OYvrhp4QWg== 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 234311D5E1 for ; Fri, 2 Feb 2024 18:02:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVwus-0006xk-BP; Fri, 02 Feb 2024 12:01:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVwuM-0006rZ-0c for bug-guix@gnu.org; Fri, 02 Feb 2024 12:00:55 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVwuK-0006QG-Vw for bug-guix@gnu.org; Fri, 02 Feb 2024 12:00:53 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVwuU-0006b7-Gr for bug-guix@gnu.org; Fri, 02 Feb 2024 12:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68894: Prosody guix service required fixes. Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Feb 2024 17:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68894 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: email@msavoritias.me Cc: 68894@debbugs.gnu.org Received: via spool by 68894-submit@debbugs.gnu.org id=B68894.170689320425204 (code B ref 68894); Fri, 02 Feb 2024 17:01:02 +0000 Received: (at 68894) by debbugs.gnu.org; 2 Feb 2024 17:00:04 +0000 Received: from localhost ([127.0.0.1]:45498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVwtX-0006YS-GB for submit@debbugs.gnu.org; Fri, 02 Feb 2024 12:00:03 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:39725) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVwtU-0006XO-C7 for 68894@debbugs.gnu.org; Fri, 02 Feb 2024 12:00:02 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DCAEA5C0040; Fri, 2 Feb 2024 11:59:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 02 Feb 2024 11:59:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lassieur.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1706893183; x=1706979583; bh=Iv71jqKjE2DlmZbFffuz/J3cLgDRbRWWn//iDAcYS7s=; b= gUuDPCYKLJ4++tblIXSVhqOJ+Um8CcAFP651rgUpP2+WJIqtrIqFXbkVhK3gBp/1 D5abyUYct+TKMuxIeDKjrJl8fCJ8Bx2yyma0kJgupGMcUIYagwjrhT9dGn+rH7tv 3CSRuEC/Z+y+h3KhPZI6aligiQINjtrl0RJl2L/4sOfqeoPN8vCu2GWYFJLgMy50 5YdI1W2UaXjDNQ6Rn6yFpSnri1EgT9AorMpk8TpgjpXib2MhkzKalBJBqhwzYOLL oAoemDswrgx6WSpzO6/zL5oU9uXGM4DnjhxYgfpbB0BuOwYW4H0PlNGs2cMoyxc+ aNk79F2sB/heDJeF11ESIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1706893183; x= 1706979583; bh=Iv71jqKjE2DlmZbFffuz/J3cLgDRbRWWn//iDAcYS7s=; b=R RY46tgGhhhPnnY0uyZwZH8yOLWisstruRggT5QLBBygVmW/LfyWlcdT9M9B76+6J cioDIq77pvCYXeB9/M88XbJauPfuEDwJHll+rbnumZzvHPZm3j4F5hj1xp5efw+i Z2sMVaivvQnaJgx1IJUlUu3tz9RuAfc6+oHwp+alsd6JUTbRz2sXk/7L8JFx9kHt E8DEY11igvMSSTENIVDlI9WAfXrfoJszKz8QVvYhIaT1iqi3CvdvQQkQVpt1Sw0A qN6S/5PLylkvXi3J/RXGDPsLWBOOs/cot1u1DQO913C66ydiKdUraJ0K7vx/SNBn ZGo7qG+KKFoXcQPH9amrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrfedugedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevufgjfhffkfgfgggtgfesth hqredttderjeenucfhrhhomhepvehlrohmvghnthcunfgrshhsihgvuhhruceotghlvghm vghntheslhgrshhsihgvuhhrrdhorhhgqeenucggtffrrghtthgvrhhnpeevueevvdejgf dutdffveehgffhteeujeetffegveffheelhfegieeuieejleevueenucffohhmrghinhep ghhnuhdrohhrghdpphhrohhsohguhidrihhmnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomheptghlvghmvghntheslhgrshhsihgvuhhrrdhorhhg X-ME-Proxy: Feedback-ID: i4c21472a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 2 Feb 2024 11:59:42 -0500 (EST) From: =?UTF-8?Q?Cl=C3=A9ment?= Lassieur In-Reply-To: <41a23fb5-7698-bc69-8c22-80c5433b53cd@fannys.me> (email@msavoritias.me's message of "Fri, 2 Feb 2024 17:46:11 +0200") References: <41a23fb5-7698-bc69-8c22-80c5433b53cd@fannys.me> Date: Fri, 02 Feb 2024 17:59:40 +0100 Message-ID: <87mssidcoz.fsf@lassieur.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.57 X-Spam-Score: -1.57 X-Migadu-Queue-Id: 234311D5E1 X-Migadu-Scanner: mx12.migadu.com X-TUID: Ol5M2dRaT1MW On Fri, Feb 02 2024, email@msavoritias.me wrote: > Tried to write a system declaration that includes a prosody server. > > This bug aims to collect some bugs that were found and some features that= were needed during writing. > > 1. The opaque-prosody-configuration as used in this example > https://guix.gnu.org/en/manual/devel/en/guix.html#index-prosody_002ecfg_0= 02elua > > is broken. A workaround for now is adding raw-content as a field inside p= rosody-configuration. Indeed it seems like it's never worked. The issue is: how do we know the pid-file if the user is using the raw config. Sounds like we need a service, in that case, that works without pid-file. > 2. Prosody Includes a plugin installer now https://prosody.im/doc/install= ing_modules#using-the-installer > > so the plugin-directory here https://guix.gnu.org/en/manual/devel/en/guix= .html#index-plugin_002dpaths needs to be changed to wrap the > module installer instead. since its easier to do that than manually copyi= ng modules. > > This is for modules that are not part of guix yet. Ideally imo an xmpp pa= ckage file would be ideal to host any module that are packaged plus all > related software. > > 3. The modules enabled by default is outdated https://guix.gnu.org/en/man= ual/devel/en/guix.html#index-modules_002denabled > > A simple example vcard is deprecated now. also not sure if register shoul= d be default now since we have invites. > > 4. Security should be the default at this point=20 > > https://guix.gnu.org/en/manual/devel/en/guix.html#index-c2s_002drequire_0= 02dencryption_003f > > https://guix.gnu.org/en/manual/devel/en/guix.html#index-s2s_002drequire_0= 02dencryption_003f > > https://guix.gnu.org/en/manual/devel/en/guix.html#index-s2s_002dsecure_00= 2dauth_003f > > should be turned to true by default. all are already true by default upst= ream https://prosody.im/doc/s2s#security > > 5. The internal authentication here https://guix.gnu.org/en/manual/devel/= en/guix.html#index-authentication > > should be internal_hashed as per default. https://prosody.im/doc/authenti= cation it should never be plain. > > 6. Also a field for http_file_share is mandatory nowadays. see https://pr= osody.im/doc/modules/mod_http_file_share > > 7. room creation should be local for safety reasons > https://guix.gnu.org/en/manual/devel/en/guix.html#index-restrict_002droom= _002dcreation > > nobody allows non local anymore. > > I plan to get to do this btw after i am done with the joinjabber > server at some point. :) Cool, I'd be happy to review. Thanks for this email. It's a long time I haven't been using Prosody and unfortunately this Guile wrapper is a maintenance burden. Even more so now that XMPP is less and less used. I wonder if it would be better to just support a minimal raw config. Cl=C3=A9ment