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.96) (envelope-from ) id 1w3eYI-001QYs-1P for pgsql-www@arkaria.postgresql.org; Fri, 20 Mar 2026 18:26:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3eYG-007nFX-2r for pgsql-www@arkaria.postgresql.org; Fri, 20 Mar 2026 18:26:29 +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.96) (envelope-from ) id 1w3eYG-007nFN-1z for pgsql-www@lists.postgresql.org; Fri, 20 Mar 2026 18:26:29 +0000 Received: from mail-yw1-x112c.google.com ([2607:f8b0:4864:20::112c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3eYD-00000000Dq1-0teL for pgsql-www@lists.postgresql.org; Fri, 20 Mar 2026 18:26:28 +0000 Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-79a40fb9890so9484577b3.1 for ; Fri, 20 Mar 2026 11:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774031184; cv=none; d=google.com; s=arc-20240605; b=M+Ua6+ggAS+YC9uuR/+q0K11eXodIeAthIjdgcJb/I35BDUyO/1Rq1Dr2/ZAkPzY/D u4tF+/+5OtG5cqekHCxB5axxThCsOLSxUe9REgYVGBAC3GmhpJA4+QfNY9wjj47E72Ov zU98ZavusD5Ec1S1mZTRXxXv3e/o5xxolfZ/I11cwfomVpowYsivGxbtiPD/dN1YR7Eg PRM7ywmiFunvh0ZTUzD/IijIDlGF3W8OaoaGSD0EZFD4gVJN7HBASVbYxxePPFUKNmWx ulIimDJj6OWUi6ZhrDbp2vbU5MWvz6rptT7N1NeId8HvcRCoa+qNAdV+n5ooH1FNQJlX FluQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=6+B/ngAl23+VSBWJEBFZbG19cVWhsfKFSuZpVUzDBn4=; fh=+dRhbc22I4tp+yxKUtbuertawDd5WW/PZhJv0gHspzM=; b=MoeAgq9IvKHXBIfgfqZKBdDT/Ya4ViNTC91/qtfoyXESwbdRFU/GZz7B8dHTvG7x0L u/Nuggxtbla1ki42fqY1OTGOg+UCiA3u1GMXZD0DroOtvRn3J86CpHUQPUeeNuVetyzd bHoZE4QxpVE+U0GDxcEo8k3ciUI+o7Fj7gPQsQFDKM8WIPDmY4yiB02+ywwpc880jeWB h87zbU2rI13D5bLwAQupif07YDGS8abWv3tBnQpLJDjPmqWVbJ6ytqQztJ9P2KNQ51pZ iRjNFiFKwKMoEw0lmOhHWqjivpqKp1pDqaG501NP1swaZoqSH/Tq7lYuJai+P2o7y2qD brLw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander.net; s=mail; t=1774031184; x=1774635984; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6+B/ngAl23+VSBWJEBFZbG19cVWhsfKFSuZpVUzDBn4=; b=EJbj8xaXyAWYY/Qkonv/XzfFoO7H4gkLCqNoz25CjdscZNTdZkhWg5ve5HKHL3zRPn L1aiQT0ZL269lVr3NUGUxy/wWqm4QDmXi6FS/wR+x+ypwUCRjgJRIwbdEsFv8CEqISP3 mONYySOUXtkkk5utIayIPcei6uSTZBZLLzaI0xeuaPaKorwug/KWxJr28RMXhosJCQ8Q UXs3ZmEdGZu4O4LTcbY8ae2qILBnQ5j4wCTy2k/BMk8XeuLkh+GcXNse2G4Vvf26q+X3 1kTrYdbFUNTy7XurhI/36eLMG8/gKmpYT2t8PLSEQNDDMobFcCQbCuztACMwrvq8QjeI FeJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774031184; x=1774635984; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6+B/ngAl23+VSBWJEBFZbG19cVWhsfKFSuZpVUzDBn4=; b=OSgFSAD5i88Gujv0xr5V9YdYO7eUJ0xm1aKQNGNrTdtEmhrz0ZD49Is0QAUxxwM+C0 GSn6LUZSmqDf0l5/6ki74cXD9wtPhuJJL9yfI6rJ8CaGSAEiP9XtyyIVM0wyTcquoV3x Grst6QLqwMvyS4VNpv1g2wKEZMiOJUx5thICI1HCGHUUZNv1bTbkkih2eyg3OMKdNK+Y a+iHsSo97+sIh7K4fcqYzgoVzqkDGB4Y9ipaldn2hZsVuQS48HR1fTK4z+IBvTfBKpmv RMhhaOc7ME3RMZnf1JTm1C93HzMxxP5tMbCLIRhxPOS6UxQoMTA+VzVwQgE0qbOQhFZM tVHw== X-Forwarded-Encrypted: i=1; AJvYcCUl21xxXbTvkcqCgOmJFB3w6HtchyUwz+GcVQ8puz5m15J6sgrs8BBcixA52lBWbQnyA2fS9A3yAf0=@lists.postgresql.org X-Gm-Message-State: AOJu0Yz4nA3WYo9VHzwd7+rzNO5lQKh6w/U/9rl0W3ZEfUgSfq1KxEm5 t3Tq4UbmDxBN50kcD6qNL3ZE4udazBBboTFl8EGQcAiKEBr1IwOox8fTS7696S17itC6ST8jWY5 M9N63WssbfkCYfUJY+/2meEQDp30SkJydOLjNJ+JCuP1SRoiF4VTMRQ== X-Gm-Gg: ATEYQzxMozlf78whtoAiwrdymPo3A/MMnsz7EHcZn5soT2UfMbtIxvN7Cc/8S+0BSP+ 8H3HXCqwS81yjqq4Tl8cHqGS4ORssVW0dFjdnU1Av+o3P2p+YtnPX4yu25CCOCS1Sqe8hHWJDaa ytHNYOtJDhlhDLBiv4U8TD96t/Urh153Tf5R1Jyjzr5B93PYazelGdzkmZnkoMWfqp+NAAHqINM awFp/akNO/RaaZf9bcYNRhk3uY6dpGA9RSllLtRLYd3A6CQaBpCW8mBbxi2ilaJqg/TDa6pjLnA 4H+ZSd44PbqLzZi3gj8vetusaAjd8XAv1F77kldh0QZResITIBzlPP8VTaSFxusViUVvzY9j X-Received: by 2002:a05:690c:1a:b0:79a:2ea7:36b7 with SMTP id 00721157ae682-79a90c15fccmr42225697b3.51.1774031183699; Fri, 20 Mar 2026 11:26:23 -0700 (PDT) MIME-Version: 1.0 References: <4aec458a-547d-42c5-9576-5f105694b035@app.fastmail.com> In-Reply-To: <4aec458a-547d-42c5-9576-5f105694b035@app.fastmail.com> From: Magnus Hagander Date: Fri, 20 Mar 2026 19:26:10 +0100 X-Gm-Features: AaiRm517_r2CZTq9kPYktlZi9gLEyQh8SWofqjcOa3c1iRoq2yNbZgrqhaSsCHM Message-ID: Subject: Re: Unable to log out of postgresql.org To: Jack Bonatakis Cc: Daniel Gustafsson , pgsql-www@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000086736d064d78d2aa" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000086736d064d78d2aa Content-Type: text/plain; charset="UTF-8" Nice spot. However, this fix won't work. Putting a csrf token on every page is incompatible with the caching system we have in place. One way to fix it would be to just allow logout GET again (I think this got broken on a django upgrade where it wasn't tested). But maybe the better way to fix it would be to have the logout link go to a page with a POST form on it, and have that form do what the GET link does now. I assume the GET is blocked because otherwise someone could trick a user, or redirect them, to the logout URL and they get logged out. I'm not sure how realistic or how big of a problem that is, but getting rid of it would not hurt... Would you be interested in working on a patch for that as well? //Magnus On Fri, 20 Mar 2026 at 00:49, Jack Bonatakis wrote: > Hi Daniel, > > Thanks for confirming. I took a look at the repo and have a fix that works > locally. Please see the attached patch. > > Jack > > On Thu, Mar 19, 2026, at 6:21 PM, Daniel Gustafsson wrote: > > > On 19 Mar 2026, at 23:15, Jack Bonatakis wrote: > > > I seem unable to log out of postgresql.org. I have tried in multiple > browsers and have received the same error each time. > > I can reproduce that as well. > > -- > Daniel Gustafsson > > > > --00000000000086736d064d78d2aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Nice spot.

However, this fix won't work. Putting a csrf token on every page= is incompatible with the caching system we have in place.

One way to fix it would be to just allow logout GET again (I think= this got broken on a django upgrade where it wasn't tested). But maybe= the better way to fix it would be to have the logout link go to a page wit= h a POST form on it, and have that form do what the GET link does now.=C2= =A0I assume the GET is blocked because otherwise someone could trick a user= , or redirect them, to the logout URL and they get logged out. I'm not = sure how realistic or how big of a problem that is, but getting rid of it w= ould not hurt...

Would you be interested in workin= g=C2=A0on a patch for that as well?

//Magnus
=


On Fri, 20 Mar 2026 at 00:49= , Jack Bonatakis <jack@bonatak.is= > wrote:
Hi Daniel,
<= div>
Thanks for confirming. I took a look at the repo and hav= e a fix that works locally. Please see the attached patch.

Jack

On Thu, Mar 19, 2026, at 6:21 PM, Da= niel Gustafsson wrote:
> On 19 Mar 2026, at 23:15, Jack Bonatakis <jack@bonatak.is> wrote= :

> I seem unable to log out of=C2=A0postgresql.org. I have tried = in multiple browsers and have received the same error each time.
=
I can reproduce that as well.

--
Daniel Gustafsson


<= div>

--00000000000086736d064d78d2aa--