From: cosgroveb (@cosgroveb) <noreply+cosgroveb@github.com>
To: pgbouncer/pgbouncer <noreply+pgbouncer-pgbouncer@github.com>
Subject: Re: [pgbouncer/pgbouncer] PR #1584: feat: add support for upstream TLSDirect
Date: Sun, 04 Oct 2026 03:34:05 +0000
Message-ID: <gh-pgbouncer-pgbouncer-1584-rc4175996022@github.com> (raw)
In-Reply-To: <gh-pgbouncer-pgbouncer-1584@github.com>
References: <gh-pgbouncer-pgbouncer-1584@github.com>
(on test/test_ssl.py:675)
I don't believe this is a correct inference. A successful query does prove the handshake completed, naturally. I am not so certain that this however implies that SNI was sent since SNI is not really required by the server.
I can't really see a great way to assert this server-side.
In order for this test to prove that direct SNI is sent it might help to use of a stub or stand-in server and assert the hostname is sent properly.