Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rG23l-00DKVB-40 for pgsql-www@arkaria.postgresql.org; Wed, 20 Dec 2023 19:16:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rG23j-00G5Sp-Gh for pgsql-www@arkaria.postgresql.org; Wed, 20 Dec 2023 19:16:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rG23j-00G5LS-8a for pgsql-www@lists.postgresql.org; Wed, 20 Dec 2023 19:16:47 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rG23g-00D1jO-A1 for pgsql-www@postgresql.org; Wed, 20 Dec 2023 19:16:46 +0000 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-28bd734aab4so799250a91.3 for ; Wed, 20 Dec 2023 11:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1703099802; x=1703704602; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=oARIST+kd8cuxHQqa94nNTaqijjYF5p0JRdaaJcbpsY=; b=SKggD0ZCrze8wOC92bCG6BeQx8IYIUUzdOSQRXj3c4ypQftInZElRENYnjzD+zBj/g VEnmzNriHwj8T2nsyaISo+MrMd9mlakIpwBSHU2FwRrlsdz7NdX8ZVJFcWP0jO1AfThc OwHcoRtTvoycHD6+eI9sB4Edhuz2/3LGFX5buamddqjBhHl+KFFQ3Pv5ERUBRrY93Bup ICFbswjupyejtDHu5CISM2Obxcxpk2iFtMEI7YJNayCmutkqLDuL54piXCMpVO+yZa8O aA1TCLWes/HyYxV49Dc0EJpQ0/L+pV9Nw9Exj4NAQxCHqRYQafCPX2rSXrBIYWGIK/0K 5kGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703099802; x=1703704602; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oARIST+kd8cuxHQqa94nNTaqijjYF5p0JRdaaJcbpsY=; b=gjDsBYA3C+NykmQDysDErnCaHFd6j+A4BZSw3J53RPiFhXNRzLAoQPLVYgbq+c+9FU F4MMFFBZDR+CciNfrVNiN6bFlUw/dvOAhFE/UqnE+mXI6qzYw+1YRcnBLlVAIt2UzFSm oZflbGxeLoFUM1jCqEbFntX7u6/4+/gdL7FRQOQE+ge3Zt+//BovJISju9vISAEzvaYG ujfaMajqaRN2ByYEwaRUPf5MvcUZ9lyPhjnpENoj1fBI5AtML7F7yCxfp8BjvCsQTrK8 CZ3t2XOapgVkXvycooQb8F493teTtq0u7nzIQc5pvtNzyicRw8Zw6lCXlAm89oXOtka1 d0bg== X-Gm-Message-State: AOJu0YyUDMUEcFFy9+M9xLj/LsRMNqezUZGkbcgoytKyaadPbOmLw/zO q4g8vlsU0nrjN7+OTpAWk/fyi2sE9Fe4qRZcV0YmqKXX4SY/Vq3VTf0= X-Google-Smtp-Source: AGHT+IFmYalJ08pBXM2qlZbk6OcrSGnF1AgQvup4Or+4sWVN7HzWfYRYJKm4CV7vjH7Bt06EdeCDQy7nLVafjKVx/oQ= X-Received: by 2002:a17:90a:e651:b0:28b:af80:ad5a with SMTP id ep17-20020a17090ae65100b0028baf80ad5amr3247657pjb.16.1703099802269; Wed, 20 Dec 2023 11:16:42 -0800 (PST) MIME-Version: 1.0 References: <79ee1e4d-ef04-414e-a5e0-1732590ff763@cmatte.me> In-Reply-To: <79ee1e4d-ef04-414e-a5e0-1732590ff763@cmatte.me> From: Magnus Hagander Date: Wed, 20 Dec 2023 20:16:30 +0100 Message-ID: Subject: Re: [PATCH] pgweb: auth.py: make it possible to customize email address in error message To: =?UTF-8?Q?C=C3=A9lestin_Matte?= Cc: pgsql-www@postgresql.org 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 Tue, Dec 19, 2023 at 5:51=E2=80=AFPM C=C3=A9lestin Matte wrote: > > auth.py contains an error message with an hardcoded @postgresql.org email= address. > This patch makes it possible to change it using a variable in the setting= s. > I used ADMINS because it already exists in pgweb with the correct value (= and pgarchives), but that can be discussed as it doesn't exist in pglister. Maybe the correct choice is to actually add it to pglister? That said, having a fallback is probably still a good idea since we have loads of servers that run this auth.py plugin, but for the pglister specific thing I think that would be a reasonable thing to expect? --=20 Magnus Hagander Me: https://www.hagander.net/ Work: https://www.redpill-linpro.com/