Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lU8J2-0001jX-Tv for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Apr 2021 13:33:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lU8J1-0004Vs-AL for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Apr 2021 13:33:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lU8J0-0004Vl-Hv for pgsql-hackers@lists.postgresql.org; Wed, 07 Apr 2021 13:33:15 +0000 Received: from [64.147.123.31] (helo=wforward2-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lU8Iw-0001y9-71 for pgsql-hackers@postgresql.org; Wed, 07 Apr 2021 13:33:13 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailforward.west.internal (Postfix) with ESMTP id B2BDF1552 for ; Wed, 7 Apr 2021 09:32:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 07 Apr 2021 09:32:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=zKkCtb/LGp4ghYMgCdIGQGTDM1gG0xOqIyDn9H+G5 U0=; b=hInwTmt6t0egGCuu9SCnnuXW000K7y53TVg70nTopewlcPAJBLTZuMFfg qjxp9H/fyIAsx1kBfLULCiNmXFkfrmKtSm7SvqSv9sres00qzz5pHR5h8mdsZRMf 0BkaGCh4Mo/dTeGzIolCjIsPnTX9DTLaUWApHDFI4/fcpA5RAixO4qWH9EJ5z8Rq Gr84zdhB2FdI9LoY0HrMUa9LG0BvElL+pzub8rY1tt/3Bpd4gO33bl1AnucDlI2m lNDixh3yR687CyGCZlfA0uFjP4bX5D2GasbVEIRKpWbRiV2OyCJBuVAx9C32myY0 5LkxpeiP2/ekgLJ3+aMWVIib2giQw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudejjedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuhffvfhfkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpefffeegleejtedtvdeigfekkeevgfeludevtefgheetfeelteetjeeuheeg geduheenucfkphepleefrddvtddvrddvheefrddugeefnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: from laptop206oxuk.local (p5dcafd8f.dip0.t-ipconnect.de [93.202.253.143]) by mail.messagingengine.com (Postfix) with ESMTPA id 6DCF124005A for ; Wed, 7 Apr 2021 09:32:57 -0400 (EDT) Subject: Re: SSL SNI From: Peter Eisentraut To: "pgsql-hackers@postgresql.org" References: <7289d5eb-62a5-a732-c3b9-438cee2cb709@enterprisedb.com> <9407b344-7342-b2b7-004f-d5250687be42@enterprisedb.com> <4eaa2b56-c3d0-67b6-4716-010d001c7601@enterprisedb.com> Message-ID: <4bf3ae1c-b28e-8960-e89f-c390c5cf01a2@enterprisedb.com> Date: Wed, 7 Apr 2021 15:32:55 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <4eaa2b56-c3d0-67b6-4716-010d001c7601@enterprisedb.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.31 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 18.03.21 12:27, Peter Eisentraut wrote: > On 25.02.21 19:36, Jacob Champion wrote: >> On Thu, 2021-02-25 at 17:00 +0100, Peter Eisentraut wrote: >>> Just as additional data points, it has come to my attention that both >>> the Go driver ("lib/pq") and the JDBC environment already send SNI >>> automatically.  (In the case of JDBC this is done by the Java system >>> libraries, not the JDBC driver implementation.) >> >> For the Go case it's only for sslmode=verify-full, and only because the >> Go standard library implementation does it for you automatically if you >> request the builtin server hostname validation. (I checked both lib/pq >> and its de facto replacement, jackc/pgx.) So it may not be something >> that was done on purpose by the driver implementation. > > Here is a new patch with an option to turn it off, and some > documentation added. Committed like that. (Default to on, but it's easy to change if there are any further thoughts.)