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 1n8nGA-0000uy-6N for pgsql-www@arkaria.postgresql.org; Sat, 15 Jan 2022 17:54: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 1n8nG8-00079T-9J for pgsql-www@arkaria.postgresql.org; Sat, 15 Jan 2022 17:54:36 +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 1n8nG7-00079K-UP for pgsql-www@lists.postgresql.org; Sat, 15 Jan 2022 17:54:36 +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 1n8nG5-0003El-Di for pgsql-www@lists.postgresql.org; Sat, 15 Jan 2022 17:54:34 +0000 Received: by mail-lf1-x132.google.com with SMTP id d3so41262734lfv.13 for ; Sat, 15 Jan 2022 09:54:33 -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=ztgDmukaxpILebGlzDmnGbCjGMp0A0fZo4FqMGtMOVE=; b=v32ein+JN5Bl1WR76MB2ibDou+pU9BNdXLZOlh/vkug1go/A6WnN77Lf1skJrkoF4k dzbmy+JaitDIkMIIwqlvZ/Go/Isn8cJ39BCSucOAuBKGiMxJBcB6E3wA9TeAJLNek7Vn ipTj6oA8mvw8ZVxyqKu/yU7nx/SLn7JfGz95O7LNxv1lgRA0g1frbWiBdXsMnGqdhQVG 5oc4tUDzi/uFhGBEq/s8a8sVhw322PbjlOHjB9eTCrp8ghjtv+gHnQeMLi1Bfs+PIjXv tFh1GhFNNmg1esYNZUm3PKO3lF2gBysUP/ejW5A8fn2z3TexqOwoGU5ivVPnv0ka/kHp QW2Q== 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=ztgDmukaxpILebGlzDmnGbCjGMp0A0fZo4FqMGtMOVE=; b=OMVImXXzoBaXdbZ4nZghsap+kfTXWfClFBA02eI/iRQg6wmz+Ob931r9Agbpe9hNXJ SZxTOQqnzvpOPtMAdHMszQYAfPB9nyo0RgNhjBqzoumDLbh4gvmReoQXlBDksNruYEvu 5X2tlsHllvnZmPUC/7/3EKhNRNkD8dr9LHvfUSb0Am9NR3ebPdSR9O5kI/i9rl4yxSP2 69Xnw9pk/QYWxy7vnSW6VVwhMianbgqChTGd7rcoqx6wHBkjZqL+Ss1sINtoMDZ1G9NA k2p0YTexfXdE2GJ2buSO31b5kiJRSPOrkBGdHuIw66ayjYpvfxt7l+ObDKDd4oVkvSTS KKrQ== X-Gm-Message-State: AOAM531SsvtZLLonV7mj8UReLAYmwuTwejmb6lLQdJwHydYoGU4Yo8QA Br7GFMrRDLCuiol8dQe2/n7xBikmud2PVBR+sr2Lzw== X-Google-Smtp-Source: ABdhPJy7Jtn2tJXVnmQKhll1KJH2tLO5aoo2D+XZFbWmtZPqqH5fHiINTAxhuer0qx8aw5EDt1LaNi6Whyc/BVDY3f8= X-Received: by 2002:a05:6512:3f17:: with SMTP id y23mr10432435lfa.176.1642269270934; Sat, 15 Jan 2022 09:54:30 -0800 (PST) MIME-Version: 1.0 References: <5fb488f9-999c-e41f-356b-edcf258d6424@cmatte.me> In-Reply-To: <5fb488f9-999c-e41f-356b-edcf258d6424@cmatte.me> From: Magnus Hagander Date: Sat, 15 Jan 2022 18:54:20 +0100 Message-ID: Subject: Re: [PATCH 1/2] pgarchives: Add missing authentication backend to settings.py 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 Thu, Oct 28, 2021 at 7:42 PM C=C3=A9lestin Matte wrote: > > Hello, > > Authentication when using private archives in pgarchives is broken with c= urrent settings.py file. > This first patch add a missing backend in settings.py, without which sess= ions aren't registered and users get redirected indefinitely. > In the second patch of this series, I add missing parameters for configur= ing PGAUTH, copying the ones from pglister. Yeah, technically it's configured to use django auth but then we override that elsewhere. It might be worthwhile to remove those hardcoded redirects and make it possible to use the system with the built in django auth. But until someone does that, I agree that putting a working value into AUTHENTICATION_BACKEND is definitely better. And also the example file that was in your patch #2. Both patches squashed and applied. Thanks! --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/