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 1rFz4Y-00D3UH-J1 for pgsql-www@arkaria.postgresql.org; Wed, 20 Dec 2023 16:05:26 +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 1rFz4X-00EMMn-86 for pgsql-www@arkaria.postgresql.org; Wed, 20 Dec 2023 16:05:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rFz4X-00EMMe-1H for pgsql-www@lists.postgresql.org; Wed, 20 Dec 2023 16:05:25 +0000 Received: from mail-lj1-x242.google.com ([2a00:1450:4864:20::242]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rFz4U-00BM38-AA for pgsql-www@lists.postgresql.org; Wed, 20 Dec 2023 16:05:23 +0000 Received: by mail-lj1-x242.google.com with SMTP id 38308e7fff4ca-2cc76645281so9120221fa.1 for ; Wed, 20 Dec 2023 08:05:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703088319; x=1703693119; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=y1orl1PwwWath81lEeDntfySyR/5MXunrcf8+x65+uQ=; b=l5PNkAE8SAMSdsZZd3eav+F7NvBDIg7c3a11yKPitWTexEkPljLZnYrQoA47BUzFMs BKziPAkV0tNymgbnzuIpSu2PCL7laDisy/0OlvUXS0vw3kXhHPrn6cw3+U2D/B2Gz2YN Gl/xO3z1sGhu8ZkxFBbdC1qfETFwrr0DymV1PIIdDmKwS6wJz2mQ4TmjB3Rx/OyPCcs2 5NGJb5XJFZvCdMbHZiJ/p9gWCPuu9Im7kiEkJ0JMETISTHc1OGJ2ne/SU2d7xMEwaQLl jm3cVm7u7fHybswBDUve3WLhQRCC/9G97g4KzEbNQiZmHJysTai+ZC87l5fzu9Eb28Es 32AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703088319; x=1703693119; h=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=y1orl1PwwWath81lEeDntfySyR/5MXunrcf8+x65+uQ=; b=Q5wsU5F5KLLTg7iOfToBd3JJhwpBc7Iz3wzNVCbCQeWYV6j4LHRbYXFHHu5EbGpadz CpW2IBJO3vqeQUSQvcdP9bc0XzqAMBDJ697+eeLt16IBuiiwPMBZwqx+sK4/ArN5htFO DSrFHPd1J9JKY9Y0/yxCUL7bJabgQZGR84gavvM6iItz2yh2fSXQ6QUaybD2yQtJ1AMo 6OoCEJVmIezCsKyGITvMvQO8+QqpYgoDFZvonwqSKMGuMyOUoo0AdATdJk4Sx12yAWbb djrKoa+mNIq7zIaIc5DJnXAm1Xy5eawXCh7lrL3JTt3p6v3eEJ3NExxzfYm/Fpqms4Rq UNKg== X-Gm-Message-State: AOJu0Yy2niOHnm1jQbBLs+mHPC+JPsgpKnIrCsSX7gSJOJvZBwshK8+J dEntfLM3DLo4ksK4ONT+2xSj2f5+S2CwrpbG2NLggzQ5MtGfhA== X-Google-Smtp-Source: AGHT+IFJy0L8wDjSg1J57GbstFRxaVCZzJsKSENJ93XF3QLRHt2TLdFnphZwLFldhLgRn+CSYyZQC8PeWP4JvQMSUHs= X-Received: by 2002:a2e:b7d4:0:b0:2cb:2e1c:cc15 with SMTP id p20-20020a2eb7d4000000b002cb2e1ccc15mr1850441ljo.15.1703088318874; Wed, 20 Dec 2023 08:05:18 -0800 (PST) MIME-Version: 1.0 References: <79ee1e4d-ef04-414e-a5e0-1732590ff763@cmatte.me> <8267c32e-2acb-4bf9-adc0-139fa695355d@cmatte.me> In-Reply-To: <8267c32e-2acb-4bf9-adc0-139fa695355d@cmatte.me> From: Akshat Jaimini Date: Wed, 20 Dec 2023 21:35:05 +0530 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?= , pgsql-www@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000448990060cf32685" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000448990060cf32685 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable We actually have a new tool that tests all the functionalities in the website. So just wanted to run it through that before. I'll run the tests against your gitlab mirror. Checkout the harness here: https://github.com/destrex271/pgweb-testing-harness Regards, Akshat Jaimini On Wed, 20 Dec, 2023, 20:11 C=C3=A9lestin Matte, wrote: > Hello, > > Not sure what you're asking =E2=80=94 I don't have access to the pgweb re= po > Do you mean a pull request? > My local copy is on gitlab: > https://gitlab.com/cmatte/pgweb/-/tree/auth_email?ref_type=3Dheads > > Regards, > > On 20/12/2023 14:32, Akshat Jaimini wrote: > > Hi! > > It would be great if we could test this patch with the testing harness > to confirm that nothing would break(although I am sure nothing would but > there's no harm in testing). > > > > Is it possible to setup a develop/testing branch on the pgweb repo from > where the harness can pull it? > > > > Regards, > > Akshat Jaimini > > > > On Tue, 19 Dec, 2023, 22:21 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 > settings. > > 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. > > > > -- > > C=C3=A9lestin Matte > > > > -- > C=C3=A9lestin Matte > > --000000000000448990060cf32685 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
We actually have a new tool that tests all the functional= ities in the website. So just wanted to run it through that before.

I'll run the tests against your g= itlab mirror.

Checkout t= he harness here:=C2=A0https://github.com/destrex271/pgweb-testing-harness


Rega= rds,
Akshat Jaimini

On Wed, 20 Dec, 2023, 20:11= C=C3=A9lestin Matte, <celes= tin.matte@cmatte.me> wrote:
= Hello,

Not sure what you're asking =E2=80=94 I don't have access to the pg= web repo
Do you mean a pull request?
My local copy is on gitlab: https://gitlab.com/cmatte/pgweb/-/tree/auth_email?ref_type=3Dheads=

Regards,

On 20/12/2023 14:32, Akshat Jaimini wrote:
> Hi!
> It would be great if we could test this patch with the testing harness= to confirm that nothing would break(although I am sure nothing would but t= here's no harm in testing).
>
> Is it possible to setup a develop/testing branch on the pgweb repo fro= m where the harness can pull it?
>
> Regards,
> Akshat Jaimini
>
> On Tue, 19 Dec, 2023, 22:21 C=C3=A9lestin Matte, <celestin.ma= tte@cmatte.me <mailto:celestin.matte@cmatte.me>> wro= te:
>
>=C2=A0 =C2=A0 =C2=A0auth.py contains an error message with an hardcoded= @postgresql.org <http://postgresql.org> email = address.
>=C2=A0 =C2=A0 =C2=A0This patch makes it possible to change it using a v= ariable in the settings.
>=C2=A0 =C2=A0 =C2=A0I used ADMINS because it already exists in pgweb wi= th the correct value (and pgarchives), but that can be discussed as it does= n't exist in pglister.
>
>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0C=C3=A9lestin Matte
>

--
C=C3=A9lestin Matte

--000000000000448990060cf32685--