From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: McDermott, Becky <bmcderm@sandia.gov>
Cc: pgsql-jdbc@lists.postgresql.org <pgsql-jdbc@lists.postgresql.org>
Subject: Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)
Date: Wed, 23 Mar 2022 08:25:06 +0900
Message-ID: <Yjpauv3HLvdrPFzf@paquier.xyz> (raw)
In-Reply-To: <2612178.1647989669@sss.pgh.pa.us>
References: <BY3PR09MB862794CBC601C194B6332FB7C8179@BY3PR09MB8627.namprd09.prod.outlook.com>
<YjpSkOHebto4hoVm@paquier.xyz>
<2612178.1647989669@sss.pgh.pa.us>
On Tue, Mar 22, 2022 at 06:54:29PM -0400, Tom Lane wrote:
> I worried about that too in the earlier pgsql-general thread. But the
> Java exception trace looks like the error is being thrown client-side.
> Also Becky says she can connect successfully with psql, which indicates
> that the server-side stack is not subject to those problems you mentioned.
I don't know enough about the JDBC driver to be sure, but that would
mean that the code path related to processServerFirstMessage in the
JDBC driver is taken after the backend has computed the SHA-256 hash
for the mock authentication (first SHA-2 computed in the exchange so
the backend would crash first with a libpq exchange). Anyway, I also
got the impression that this was an initialization stack.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: michael@paquier.xyz, tgl@sss.pgh.pa.us, bmcderm@sandia.gov
Subject: Re: Java client connection problem on FIPS enabled hosts (with password_encryption = scram-sha-256)
In-Reply-To: <Yjpauv3HLvdrPFzf@paquier.xyz>
References: <BY3PR09MB862794CBC601C194B6332FB7C8179@BY3PR09MB8627.namprd09.prod.outlook.com> <YjpSkOHebto4hoVm@paquier.xyz> <2612178.1647989669@sss.pgh.pa.us> <Yjpauv3HLvdrPFzf@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox