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 1jSfyK-0001q3-C5 for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Apr 2020 12:01:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jSfyI-0007yv-BY for pgsql-hackers@arkaria.postgresql.org; Sun, 26 Apr 2020 12:01:18 +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 1jSfyH-0007sm-55 for pgsql-hackers@lists.postgresql.org; Sun, 26 Apr 2020 12:01:18 +0000 Received: from forward4-smtp.messagingengine.com ([66.111.4.238]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jSfyA-0001N5-Ig for pgsql-hackers@lists.postgresql.org; Sun, 26 Apr 2020 12:01:14 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 400F21940D92; Sun, 26 Apr 2020 08:01:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 26 Apr 2020 08:01:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=wOFA0r40qixaLNYN6W3xfe0pajutlN9Hd7FoYAvoF +o=; b=07GtHaWNwK4Pnlgo8ZXyLrAt24xi+DPZB28x3H4KUWwt/fikFWoiiWVXv s3VyCgG2XQq9qRKlBdGVrZx1AUIUf2XsWSFpMSlvPFmYjZQfnTJ/GFgUFVVSUW86 mztTM3Zp67q0cqB4a+4zdmhDJ98wM/IIoMXsTipus4pubQrUOj5XbqNUfXQT7qPK rMHJQFU2sVRJet0ltNxgWx+DyZrbfe0Ivdsp8nFohRV8+9ekHiVmqGrDtYcPeqvX /P9FVNmO8Jm3ss4SYriXuL9TozSXir0G5xTHSHFVX9FGs7UUjhahR0HbYlC+vpLU 1Iv7zhX43UgHrCvPBIf+YJKwUrUZQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrheejgdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefheenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucffohhmrghinhepvdhnughquhgrughrrghnthdrtgho mhenucfkphepleefrddvgeefrdeirddvgedunecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhgu qhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df306f1.dip0.t-ipconnect.de [93.243.6.241]) by mail.messagingengine.com (Postfix) with ESMTPA id BCCAF328005D; Sun, 26 Apr 2020 08:01:05 -0400 (EDT) Subject: Re: Setting min/max TLS protocol in clientside libpq To: Daniel Gustafsson References: <20200115055809.GI2243@paquier.xyz> <20200116032233.GB3117@paquier.xyz> <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> Cc: Michael Paquier , Tom Lane , cary huang , PostgreSQL Hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <2266d9f2-70fe-3156-8fea-e3403461cbdc@2ndquadrant.com> Date: Sun, 26 Apr 2020 14:01:04 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1845A083-BA45-4881-B1A0-B6B25026E1DE@yesql.se> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-04-24 14:03, Daniel Gustafsson wrote: >> On 24 Apr 2020, at 12:56, Peter Eisentraut wrote: >> >> Can we reconsider whether we really want to name the new settings like "sslminprotocolversion", or whether we could add some underscores, both for readability and for consistency with the server-side options? > > 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? The names on the backend side are ssl_{min|max|_protocol_version. > The attached renames the userfacing setting, but keeps the environment variable > without underscores as most settings have env vars without underscores. Keeping the environment variable as is seems fine (also consistent with "channel_binding"). I would, however, prefer to also rename the internal symbols. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services