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 1jS8ho-0007FJ-T7 for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Apr 2020 00:30:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jS8hn-0003wl-BV for pgsql-hackers@arkaria.postgresql.org; Sat, 25 Apr 2020 00:30:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jS8hl-0003kp-9e for pgsql-hackers@lists.postgresql.org; Sat, 25 Apr 2020 00:30:03 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jS8hh-000765-3Q for pgsql-hackers@lists.postgresql.org; Sat, 25 Apr 2020 00:30:00 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8064B5C0197; Fri, 24 Apr 2020 20:29:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 24 Apr 2020 20:29:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=sza+Q04STM1AcYcqoWEbU3DGd4L 9mpZSROxtoHJVFY0=; b=YnkiK59kJomFbwdynHrRMH82jn2KWskru+3nqanJ9D8 /+ezaqEIFFW57Bqysa2P/Af/TuYM58Zge6/E7yAV26AlEsN7YjIW0p+rJ7eM8BXQ iN8SYWIvg6draLujkf/nogmigAwklU/F7kJAiA+p3KVeg1b/QRFMA/iK/Epy7Yxj EvuisY8FqW+N8EZGTvNmhIHmKl+GtWF/EaC8zdIhXdf9w42RVT7jHGhTH4S82y/o kmcxBAuCMvjCQu191xL9QC2ypZHOn7Lbejy6S/smYGxrRIQ+9MdpxhL/xoQXeAbI fOM4wRFKcnqppZW7VUtalb9F1mes91tuoUsX1cpxdbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=sza+Q0 4STM1AcYcqoWEbU3DGd4L9mpZSROxtoHJVFY0=; b=CKPbjnHgvpSrGhMONAwyCV SjK4ThMKS+7zykVL7AsIfjOT2EdbTB/rTScqyelPqz85CQQxNY+JeOVVUjyo3Ys0 ygmwak+2y7oh0fWcvwXBRJlWv3qfMikISUDbqbZU4ArR4ceV4p4c7xvdFotM17SY SzjgQjVJqztVBAbEFrmUsomrZa/h6iF+CvsUAgwvYUpmWLF/PulN8InEgIi58Mr8 a7Ue+NvEcnWCkulXXo8K3mn8P/KLjKfiAMMWf8o5KA2AKlxwNy7v1fHQu5aq2aMc CI7okIzHrT0vEgGz4+DsaWzTq8D+9m1cGO0WELiNfIf3yknLfv94j/XNUSPSa4Og == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrhedvgdefhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesph grqhhuihgvrhdrgiihii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id C9FEF328006A; Fri, 24 Apr 2020 20:29:51 -0400 (EDT) Date: Sat, 25 Apr 2020 09:29:48 +0900 From: Michael Paquier To: Daniel Gustafsson Cc: Peter Eisentraut , Tom Lane , cary huang , PostgreSQL Hackers Subject: Re: Setting min/max TLS protocol in clientside libpq Message-ID: <20200425002948.GA1474@paquier.xyz> References: <20200117010954.GC2127@paquier.xyz> <20200117023835.GE2127@paquier.xyz> <6C5323F3-60C6-4C2A-B0D9-2816B08528D1@yesql.se> <20200127060108.GD4913@paquier.xyz> <28D35D23-A2E1-4C1B-8142-CD9094314A0F@yesql.se> <20200128035313.GB1552@paquier.xyz> <20200129062306.GE145179@paquier.xyz> <1845A083-BA45-4881-B1A0-B6B25026E1DE@yesql.se> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <1845A083-BA45-4881-B1A0-B6B25026E1DE@yesql.se> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Apr 24, 2020 at 02:03:04PM +0200, Daniel Gustafsson wrote: > That was brought up by Michael in the thread, but none of us followed up on it > it seems. The current name was chosen to be consistent with the already > existing ssl* client-side settings, but I don't really have strong opinions on > if that makes sense or not. Perhaps use ssl_m{in|max}_protocolversion to make > it more readable? There was no hard push in favor of this comment so I did not insist, but I am not wedded to the existing connection parameter names. - {"sslminprotocolversion", "PGSSLMINPROTOCOLVERSION", NULL, NULL, + {"ssl_min_protocolversion", "PGSSLMINPROTOCOLVERSION", NULL, NULL, Shouldn't that actually be "ssl_min_protocol_version" with one extra underscore? > The attached renames the userfacing setting, but keeps the environment variable > without underscores as most settings have env vars without underscores. There are two in this case: PG_COLOR and PG_COLORS. For readability it could make sense to use something like PG_SSL_MIN_PROTOCOL_VERSION or PGSSL_MIN_PROTOCOL_VERSION, but like Daniel I'd rather keep the env variables without underscores. -- Michael --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl6jhHsACgkQnvQgOdby QH0NTA/+KyIuKbkXSt76CFQNkRWyn2RqPvXNtxYqxiinfo63D5zu2yVOHIvUFYrk i0DgKcrtq3J9ElHohMTwERKpYiFz5PZEVuHu4Zgq0H3CJ7XaeWgv9yHfVRA+HV/V BkQuPHDQ6UdxfbEjTWuw7g51EEOAjm0tRs/rYHHu8ACfwmZmI5LgcQLtj02WzuOr eg9PhvgmsYGI+O6VML5yDa8QtyPxep9XdD7MysYJv8z5kfY+ad15/cTsxz4lGTKp QMyWaUf3VMidV+LZyLJzzCANk3bKg+I7bU06O1gYXtWeHEMbanTlZmiAFZjEARdH ZfnabZyiUzMMdmq+M+VKr7C7ixpgZ39DMlBUxb82DUs/vd5Ze7IkJCWlx0eoIwXk PbB3NfRABe8ksqR2ABsvSLwUqHg1+frzBGczZ8RfvSXroSUcwuIGaZQ8WzL+w0lw h96fgGqhvcWleQBAACGv4aMXEFMC6gGVmZSKJ6g/sHbXAn4RZ5DZkgLu85/XrWtf 20yc/6s4GnaLBK189LMFX0kZoBJRhvswgDHYtGci0e4wocUI725tNc74tWv80ggk NGQC+YFKbOxbzUgvLx09tHrZjomgB/pc99GEuxSTpe2WS8JUOIxU/3jt3kW/wr1Y rXySPTLIN+f7DvzWtxONzYxuVocigRae2UdqrOl1Dt0XohbXf3k= =ZWrF -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1--