Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGOne-00024K-EW for pgsql-www@arkaria.postgresql.org; Sat, 05 Feb 2022 17:24:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nGOnd-0000WD-B1 for pgsql-www@arkaria.postgresql.org; Sat, 05 Feb 2022 17:24:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nGOnd-0000W3-3w for pgsql-www@lists.postgresql.org; Sat, 05 Feb 2022 17:24:37 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nGOna-0004lb-Hy for pgsql-www@lists.postgresql.org; Sat, 05 Feb 2022 17:24:36 +0000 Received: by mail-lf1-x132.google.com with SMTP id u6so18742807lfm.10 for ; Sat, 05 Feb 2022 09:24:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=J0lLwRlCr55PW1a4pe5xMPo7u+h6KVLWGTCWMZXhpoI=; b=UPhLRqtaO/0simVFtKcYJPSjoM77V1F1n99zHaTQxZg27K6MXENTsygpBVxG1duEfc XVb3gtRqg8Up0De6mTEdGtOAcrp2JeHaIwk5Mzyw/h33tRWaxxaESVIh+KBI6n2e7HRo MKnsUZquVpRLtImuJg1gRWrQ7MI2Hgb6JIfeoKou/Ui/ZaoMc94FYhT5CJihAW0mQAu+ 1viSy7oEL9xZkmj+18+V533PIjOodq6+hzdNBr31jUTjxc25ldLPA96IVlXaj/y8HxV0 LlUpWWA0N1saJrZeODl+4H+fezIYO22X7UFRJ+0QTUkaImF0EPuCXUc8TCm9fvHX35t0 xznw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=J0lLwRlCr55PW1a4pe5xMPo7u+h6KVLWGTCWMZXhpoI=; b=6pMlxaJho+rUmKKYGcVHo+Qs/y9wVtB0lG5bstIEw/vpq7eIYpgLC3lZHHLMLeZMbl wbAS8xMMBcgeIZibc1UMJ+k97dxAWtEALa0hoM9S5MSSfX39t5SmOZIVXtktwGthm7IB hJCZm72MxiC0E9GngXJ1++MOS6YBY93T0bw2lTcDkrJOC3fik/FbcmLolJE4Gcp4yECa g4KZ0eXrzbm9SuXL2QYrk+lIYwIVuXx4oY5oP/PjOcVXnUlYBjhHf6W77NI+z4kV334Y 5Rigi2CoqT/WD471wcgy3511xZ7rZIDklcmHjmwbnMIjyny0hbqZswg2rQIt4UgWOV1z yr5g== X-Gm-Message-State: AOAM530VrkgkrY0MgrMieNxcyh07hY9lYaK1o+XvOYRGGG2gIRzVLu0O Ppxwrzlrd1qVq9/BwVffi10LZz8VnqRZbWO2Ljl3NxrjmcGvDg== X-Google-Smtp-Source: ABdhPJxeIn9jXwPhWKDyKTWrkDS6RMJ146HF/92gv2Wr3rnf7LvMUIv6KMKpZAHh+GKdi9SPe3tEVfO0Z3NiPUbuneQ= X-Received: by 2002:ac2:4e08:: with SMTP id e8mr3160557lfr.266.1644081873103; Sat, 05 Feb 2022 09:24:33 -0800 (PST) MIME-Version: 1.0 References: <1d060463-e562-7783-decd-b5a7f3c4c06c@cmatte.me> <1b4db143-3410-54c2-bb91-1242ae430bcd@cmatte.me> In-Reply-To: <1b4db143-3410-54c2-bb91-1242ae430bcd@cmatte.me> From: Magnus Hagander Date: Sat, 5 Feb 2022 18:24:22 +0100 Message-ID: Subject: Re: [PATCH] pgarchives: pglister_sync: import lists with subscriber_access set to True To: =?UTF-8?Q?C=C3=A9lestin_Matte?= Cc: PostgreSQL WWW Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 2, 2022 at 9:16 AM C=C3=A9lestin Matte wrote: > > > This should definitely be fixed. > > Thanks! > > >> By default, subscriber_access is set to False and there is no way to m= odify that within the web interface. > >> As a consequence, access to lists on private servers is restricted to = superusers, and there is no easier way to modify that than to edit the data= base manually. > >> > >> It seems more logical to me that this value be set to True by default,= as access can still be moderated to avoid lists being publicly available. > > > > In what way would access "still be moderated"? In pgarchives, that's a > > pure boolean and there are no further checks. User accounts are > > auto-created. > > I meant that subscriptions can still be moderated in pglister (if lists a= re configured that way), so that anybody does not have access to archives. Ah, right. That still doesn't fully solve the problem though -- because once somebody has been approved in moderation, they automatically get access to everything on the list from before they were added. Which may not be what's wanted -- we have cases where we're archiving things for "no regular use", but leave it for superusers to be able to go look things up in an emergency for example. In that usecase, it's not tied to the subscription at all. > > The idea is that anything that's "open" should have to be set > > explicitly and thus we should default to it being off. Based on that I > > have at least initially applied a version of your patch that sets it > > to false. > > That makes sense. > > >> That said, it may be better to have a way to modify that within the we= b interface in pglister. > > > > I agree in principle. The argument does fall off a bit on the fact > > that there is *no* admin interface to pgarchives. You don't have a way > > to add a list manually either, without doing it directly in SQL. So we > > either accept that SQL is the way things are done, or we should tackle > > the bigger problem of setting up such an interface. But I think we > > could get pretty far by just enabling the general django admin > > interface and set up the required classes for that -- we don't > > necessarily need to move things like reparsing and hiding of messages > > into such an admin interface. > > I meant this could be added in the admin interface of pglister, not pgarc= hives, as it already exists and pglister_sync can then push (and update) th= e configuration to pgarchives. Ah, then I understand. That's an interesting aspect. Right now, pglister has no knowledge of what actually runs on the archiving side other than "send the emails over here" and "create links that look like this". In general, I like that level of disconnect -- it should be possible to swap out the archive solution from underneath it, or indeed run the same pglister instance against multiple different types of archives. --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/