Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnaaD-0002Ea-Fc for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jul 2019 03:26:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnaaC-00044O-5R for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Jul 2019 03:26:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnaaB-00044H-R5 for pgsql-bugs@lists.postgresql.org; Wed, 17 Jul 2019 03:26:19 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hnaa9-00073i-Gj for pgsql-bugs@lists.postgresql.org; Wed, 17 Jul 2019 03:26:18 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CC394223CD; Tue, 16 Jul 2019 23:26:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 16 Jul 2019 23:26:16 -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=fm2; bh=sVrU4n6A0npCZyDGF7ZwyfOEDE7 paGoR66G2YtQsIWQ=; b=nMDSlUumzv8U6X6rhhrCbO+aIBBDq8J03SaOKNJCoEN XxZRQ5CrIOHcwo0eX74oSvRpHucsJpEFIIdZUTQGndDDuo8YzZtzUidkmQwvvIge u6j+DpdCFSxsp+e5pD292psSl29Fr5lvk2O+Kf1OVBuf+pf4b+b2Uhpgjvvjhzpq LAHAuukuu87yZfGbE9X4ZmKfk2H3IMTIKFTk2HzZqZin0CW5hdKcBaKsxjc/NLOC vezoHjG36tkykfXYP8dnk06ehh7c9djZAj+T6rHojIvonsr3K8D4EV+NKBA7Al3f +6IdIjlu0XI93gEMoK05KBrbm5terjVpj4az8nHZ4rw== 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=fm3; bh=sVrU4n 6A0npCZyDGF7ZwyfOEDE7paGoR66G2YtQsIWQ=; b=bb4FyFmHbQK6yVR8BTGIyo aqev4s0qBVdWHz3LXIwMdgBHjjGOqpoXXuvDNmS9fmmZLXaY0U2vQpN9q29yfSWx 3+votMGGyy3Qd32imZEovU31EPAztVLPxgtpOTJcU7ivEpkz+bT9a5137KVkPWh/ KUfDUyCIVPMHLy2qgj9pkXttyOdHVbTwehZY/nzVx2FknGEY1soaBZvGL+IL1UWX cc7uKi5hS5uoGgO6fGO66LEUdCqygR9cSfLzml51Nf1xDBaRHqW47K1fJlzsfbMf V9GBAOoNFeml/dxJoql/cGc5D9afZ6xMBtneoWI7WsI4esTvgsZAUiWeIcIRwJUg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedugdejvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculdejtddmnecujfgurhepfffhvf fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecukfhppeduudekrddvge durddvgeelrddvtddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehp rghquhhivghrrdighiiinecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1f9ca.ap.nuro.jp [118.241.249.202]) by mail.messagingengine.com (Postfix) with ESMTPA id EF3508005B; Tue, 16 Jul 2019 23:26:14 -0400 (EDT) Date: Wed, 17 Jul 2019 12:26:12 +0900 From: Michael Paquier To: raf Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15911: Why no Bcrypt in pg_hba.conf? Message-ID: <20190717032612.GF2130@paquier.xyz> References: <15911-a96c5fc2f29cdecc@postgresql.org> <87ftn5zze8.fsf@news-spur.riddles.org.uk> <9218.1563300642@sss.pgh.pa.us> <20190716232242.bvdu6w7jnk3fj237@raf.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IuhbYIxU28t+Kd57" Content-Disposition: inline In-Reply-To: <20190716232242.bvdu6w7jnk3fj237@raf.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --IuhbYIxU28t+Kd57 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jul 17, 2019 at 09:22:42AM +1000, raf wrote: > Tom Lane wrote: >> Thus, we aren't going to add stuff on a whim, and when we do add some >> new mechanism, there has to be a really solid argument that it's a >> *significant* advance over what we have. Agreed. Adding a new authentication method is a lot of work as this extends the protocol, and still with SCRAM we are not done yet with drivers not linked directly with libpq, and I have some experience in the area. > bcrypt is better than pbkdf2 but pbkdf2 is still good > for the same reasons that bcrypt is good (brute force > resistance). if you want bcrypt/scrypt/argon2, pbkdf2 > will probably be good enough. and some organisations > may require pbkdf2 because it is NIST-approved while > the others aren't. Good, we use PBKDF2 for the password salting. If it is possible to justify that this has much more benefits in the current practices, and that we are still able to stick with the latest RFC specifications, there may be an argument to get something done and improved, but I don't quite see what that would be and more importantly if we actually need to do so. -- Michael --IuhbYIxU28t+Kd57 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl0ulVMACgkQnvQgOdby QH0QKBAAmG8J0K+pl3DAIFNFrWx7JwgTTdfjZyGenA8g1rr2pBCfbc9Hwkmgdzzu gFShuSwWfomA0ZHjyIKNtU/c5Apg9EoxKSMs8esZ6i3nmacVTYodXdztLNZBE3x0 OqJVNaB+YxCJtS91qO21SgyjjhoRJr7y/GDZD7hxkoNzI8/GOdCWlHaEkRYHfOBJ cjTb5r4bN/Ap1MTHM/e4FyTuSHZvTSGkpSsT4Eo/2YLsVdHVF1WFgpGBJKUQjl6c 3AT5UzbDc5JFSvBtw7oQKcGrFBW2lV002KctWldwbVx6sGIpbL7hd0MBPR70v6e9 3D3+r4GvENNzEEjJ6QHEE1Xc3r2NGHk5hNVSLmXwWNHNZECaXg3HFYkYxQiAVn9Q 8it+0BM8AfblW2M6N5tvyxJJObFwftOcwWEEv0Ij2o1U5VFcUOu340nxb29OlT4b 2T/y7CqPK5aYAHhDRygechuGjukoRo3073+UWCWzLcGjUZqOONBxE4itL6C7Bo2r o9u2chEOnWMGfK5vcxJUDSyhimX6up+l2LCaCyx+abf/VSTi1qkLLuxBep0u0CkF TWaezw49kJkoniDg/pa79l6UHVM9Eqx5SL8a4JNSbR3QOOw9QhqtY/7s12BxPC73 c2qvQ5kMAxWk6bGZF8cXEgZc3X+QPBf7d9e6qU9ZL56HqlbFCu0= =WjP6 -----END PGP SIGNATURE----- --IuhbYIxU28t+Kd57--