Re: Direct SSL connection with ALPN and HBA rules
Jacob Champion <jacob.champion@enterprisedb.com>
From: Jacob Champion <jacob.champion@enterprisedb.com>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Michael Paquier <michael@paquier.xyz>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-05-14T17:14:38Z
Lists: pgsql-hackers
On Mon, Apr 29, 2024 at 11:04 AM Jacob Champion <jacob.champion@enterprisedb.com> wrote: > On Fri, Apr 26, 2024 at 3:51 PM Heikki Linnakangas <hlinnaka@iki.fi> wrote: > > Unfortunately the error message you got in the client with that was > > horrible (I modified the server to not accept the 'postgresql' protocol): > > > > psql "dbname=postgres sslmode=require host=localhost" > > psql: error: connection to server at "localhost" (::1), port 5432 > > failed: SSL error: SSL error code 167773280 > > <long sigh> > > I filed a bug upstream [1]. I think this is on track to be fixed in a future set of OpenSSL 3.x releases [2]. We'll still need to carry the workaround while we support 1.1.1. --Jacob [2] https://github.com/openssl/openssl/pull/24351
Commits
-
Remove option to fall back from direct to postgres SSL negotiation
- fb5718f35ff6 17.0 landed
-
Reject SSL connection if ALPN is used but there's no common protocol
- 17a834a04d5a 17.0 landed
-
libpq: Enforce ALPN in direct SSL connections
- 03a0e0d4bb78 17.0 landed
-
libpq: If ALPN is not used, make PQsslAttribute(conn, "alpn") == ""
- 3c184092651b 17.0 landed
-
Fix documentation and comments on what happens after GSS rejection
- 5c9f35fc48ea 17.0 landed
-
doc: Add note to prevent server spoofing with SCRAM
- d0f4824a5410 16.0 cited