Re: Serverside SNI support in libpq - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Serverside SNI support in libpq
Date
Msg-id 5DE15F1A-3D87-4DD1-904E-8DA7FC9D102A@yesql.se
Whole thread
In response to Re: Serverside SNI support in libpq  (Noah Misch <noah@leadboat.com>)
Responses Re: Serverside SNI support in libpq
List pgsql-hackers
> On 20 Sep 2026, at 23:16, Noah Misch <noah@leadboat.com> wrote:

> security@ received a report about a NULL pointer SIGSEGV in $SUBJECT.  I'm
> attaching the reporter's materials.

When reloading SSL configuration fails, we retain the previous config, but the
ssl_sni GUC was changed which could lead to new connections trying to access
SSL config which didn't exist.  The proposed fix is to allow mismatched SSL
config and ssl_sni settings which I think is more confusing than treating
ssl_sni like the rest of the SSL config and retaining it's value on config
reload failure.  The attached v2 does that, adds a WARNING (on top of the
already present logged warning) and expands the tests from the original
submission.

--
Daniel Gustafsson


Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Add a permission check to pg_stat_get_backend_subxact()
Next
From: vignesh C
Date:
Subject: Re: sequencesync worker race with REFRESH SEQUENCES