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 1hIixE-00040d-OF for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Apr 2019 00:06:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIixD-0007Ax-C6 for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Apr 2019 00:06:31 +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 1hIixC-0007Aq-CS for pgsql-bugs@lists.postgresql.org; Tue, 23 Apr 2019 00:06:31 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIix9-0005CX-MN for pgsql-bugs@lists.postgresql.org; Tue, 23 Apr 2019 00:06:29 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D6188220CA; Mon, 22 Apr 2019 20:06:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 22 Apr 2019 20:06:26 -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=4XKPvmN6+1jZgz2zAGtardiLZ+1 cRatHd7C0xHYY5Sw=; b=qXApSkod5VjhNAawGiJOYnds7O3VFnTiwJUsCegDTNH hVn2jwmnNoWzEB2k6Cx4EwsCcGwU+FgrCqHFOgDtZePE9d+52mv1+SWETF2eEV3Q iXidw0horgrZyBRh4eREIBB78MRb/UdoAHo3SLKL2EWwobxudM5RlO7PB7uOdSm3 qrv/WP4BphYBiwKCfs6ydrTlWiqk53cxpsjDRYncVZBBMzOvAv271VgJpMhIjEEs QFR5XpI9ZnGEAK9p5UDuRf6OHSoNSGHDt0XXdt1s7W4eNsgSzMb3/rOX5dOTTNfh trrGCFYNjocDEhI1dspv/+B9Qp41ngNBZv0JarXapuQ== 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=4XKPvm N6+1jZgz2zAGtardiLZ+1cRatHd7C0xHYY5Sw=; b=XUCH2L0mEK+d14GftVSmSq MO/daRmALGTn74clPCP2t9aLXTISZZtKoMIr/8p2RT83TgR5H4C1IZ4ItB+eBsUa AKls3s2jV1m7kLUJHmxGipBIPegmB5ELx1pCOOqSbcUnnRFHkO+bil94wxXNXXo1 aZkaOnVqxq31HMxc6xqhfeShn/fISgny25uNYAsCMvSPM3l+r0j1BC1ldk60WMH7 DvpmjootSoW9r9qehFxaDm6ddKSyDMIN8C8A3LSDi3XlXzcQNsSm0yQZVPwwdTDm je2FQFFV3+zetGmG/qUYlx+6n92xo8uWdJyZVSMjCpqsIQ9ZkeGTCBvZYpB8xOSg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeejgddvvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd 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 E4AE9103C8; Mon, 22 Apr 2019 20:06:23 -0400 (EDT) Date: Tue, 23 Apr 2019 09:06:19 +0900 From: Michael Paquier To: Stephen Frost Cc: Tom Lane , "Jonathan S. Katz" , pgsql-bugs@lists.postgresql.org Subject: Re: Possible to store invalid SCRAM-SHA-256 Passwords Message-ID: <20190423000619.GD2712@paquier.xyz> References: <016deb6b-1f0a-8e9f-1833-a8675b170aa9@postgresql.org> <4240a41f-a957-fd7d-7c24-31683f259b9d@postgresql.org> <20190422015051.GA3433@paquier.xyz> <3033.1555940554@sss.pgh.pa.us> <20190422135215.GG6197@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mR8QP4gmHujQHb1c" Content-Disposition: inline In-Reply-To: <20190422135215.GG6197@tamriel.snowman.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --mR8QP4gmHujQHb1c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 22, 2019 at 09:52:15AM -0400, Stephen Frost wrote: > I recall having exactly that debate when SCRAM was being worked on and > the push-back basically being that it was more work and we'd have to > have additional syntax for ALTER USER, et al. I wish I had had more > time to spend on that discussion. Water under the bridge now, but > hopefully we learn from this and maybe someone refactors how this works > sometime soon (or, at least, whenever we add the next password > encoding). I am not sure that this would have been more work for ALTER TABLE as we could have relied on just password_encryption to do the work as we do now. The reluctance was to have more additional columns in pg_authid as far as I recall, and I sided with having a separate catalog, and more independent verifier type checks in the catalogs, as you may recall, which would have also eased password rollups for a given role. -- Michael --mR8QP4gmHujQHb1c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAly+VvsACgkQnvQgOdby QH0zPQ//THkUrytt+8Pw81HxX1DPR97nGwlC0uWJoxnPeYSGiYb1+HB+1jyV60j0 EtP1bEasRAjRrrnMtLKX3imghB6pYErwBOMaXs+aq74PXbdOwtuJtvo/f1/x0Yg+ 7S410K9PvXJwOhbm4K6TqIfikJ1SnWNm10/QwDRFOS/P1zejALHDNw19+d3vcwGt pXugC3Y9XpIttmQJj4S72o7d5HkWuwcxvXpgxqCbg9VOdqUT9PhTcuK5JqFMJJ5N NUyt3F8pYQtSM8oF2IKHAgh6I5oiHZY5sE/YbNtzpGNtE0gL6a+JlrWc0y/Dt+tc brTAjl+PjHIgTAbRVZJLDb2v4IAW5NIk4cx2pMj3awelB8/nhj7Y/gbeO/ogzbRP 5WJzm9tgLDKwBMJSJSG5n+DJZ6AnY2Elt1Znge3wyHjEIvzIsYk35fbrfJKFa/1l cIueR271uJSkrO95TUh17NwRVHiKXjK2JYBo7k4MsYouQCqPPiP/Gyw8Jq9L4yQu oXNYOHpbKoYFmAbVwq/9IfppJLpBpimM4OW8ivlaJp2DL7dpt114iLL9vn845l6x dK3ZcRDx2Ne9I6nA+hWbURxomTMaG3DMbPiFpO8bEZhD+OOzEyxMzKzStvdGN4Yc OthVX2SjkKYvYWd36dSVMll2l7Jx2TZMh7/Q4Fm43mxfQcdoABY= =lIGW -----END PGP SIGNATURE----- --mR8QP4gmHujQHb1c--