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 1hJ4aS-00017a-3Q for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Apr 2019 23:12:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hJ4aQ-0002oc-Rm for pgsql-bugs@arkaria.postgresql.org; Tue, 23 Apr 2019 23:12:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJ4aP-0002dT-Qg for pgsql-bugs@lists.postgresql.org; Tue, 23 Apr 2019 23:12:26 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hJ4aM-000379-Jh for pgsql-bugs@lists.postgresql.org; Tue, 23 Apr 2019 23:12:25 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CE52D21FE0; Tue, 23 Apr 2019 19:12:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 23 Apr 2019 19:12:20 -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=QzFItHkZtrqJVn8Bjg9ePcfqHMr OK//aKf4pyeWBBfs=; b=nT4yPOQxv8WKYm7HVIRkC+t6y3d6Xmxx6Bt4gQAWIuo dxAPfAploM16IvKhHdPRb7cVVT902uoNB9siiobNOuMypMdUjBZD4D8FjKLQiqhe 1CT2NaWiiiJN3iZOX3/1RlVSHcxJvsoVAkDXt7wv8qFpxrLZfPULNlBImLw06pjk lQBaPJ3pP9FEfd5eA0VJ7GGz2yXSb6gIeAy5eGinRgTlO3gxx+K5eWQzzllfRke/ lLjQ+VMwtks1Z955Iz1L2quWsLmiVB7fynkoQUw03qTU3JW19KnPxu9hMsHKcOs5 8xHUjb4g45ZVkUeTny8DvIiHJmCHgw6eXFLYUEyR+Rg== 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=QzFItH kZtrqJVn8Bjg9ePcfqHMrOK//aKf4pyeWBBfs=; b=1AbJ65qsWvK81Pgx2UVdej R86HrzO1HP302CXgt3o5+9PMQu26XR26O+SGlTfNzqhU/DDU+K72HePTLsOjjPDz fOX2s4GUZz6GZr2H+q+meEhCZ7AR3WIUA8yfLXgO4+Xo9JINe4gLwJHKCqRefK+4 1PejfmxlV5k39jPJxil1P3v3hjG2yCjrOPRRaCnj51niMPcizO122hd69/fRb6gz FGOc5Z5K6Swokx5HlgH3/G69o28QFsXJ2PnTuNWgOpsLBINcBFgzqXF2W73+jTqQ tbLVRp+KNod+UABGyl0cBlrUrq5slP99H8Vn/9WII5UKi/tfnhTrbkVaZqDkVadA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrgeelgddulecutefuodetggdotefrodftvf 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 C3EE4E424F; Tue, 23 Apr 2019 19:12:18 -0400 (EDT) Date: Wed, 24 Apr 2019 08:12:16 +0900 From: Michael Paquier To: "Jonathan S. Katz" Cc: Tom Lane , pgsql-bugs@lists.postgresql.org, Stephen Frost Subject: Re: Possible to store invalid SCRAM-SHA-256 Passwords Message-ID: <20190423231216.GA1878@paquier.xyz> References: <3033.1555940554@sss.pgh.pa.us> <5a93333c-dde6-ee52-f870-4dccfc50eb6f@postgresql.org> <30284.1555972921@sss.pgh.pa.us> <15140775-08c3-45bd-6dab-fdcd290d1bf0@postgresql.org> <20190423010142.GE2712@paquier.xyz> <10698.1555981849@sss.pgh.pa.us> <265876b8-1a72-89cd-bdcf-e641d93e166c@postgresql.org> <20190423021018.GF2712@paquier.xyz> <20190423065701.GL2712@paquier.xyz> <43882bd7-a002-dd50-bf9a-401560285485@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <43882bd7-a002-dd50-bf9a-401560285485@postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 23, 2019 at 10:19:30AM -0400, Jonathan S. Katz wrote: > - If you have an invalid SCRAM-SHA-256 password (e.g. > SCRAM-SHA-256$1234), you would have been unable to log in anyway, so in > all likelihood you would either have had an admin reset your password, > or you gave up. > - If you had a md5 hash with bogus characters in it, it'd be the above > as well >=20 > So likely it's been resolved in some way: the user has been issued a new > password or has given up on PostgreSQL >=20 > With that said, we could do something like: >=20 > "To determine if this release affects an of your users ability to log in > using either the SCRAM-SHA-256 on MD5 password based methods, you can > run the following query: s/an of/any of/. > We advise that you reset the passwords for these users. Sounds fine to me, thanks. I am not sure if we would want to have something in the release notes, on a wiki page with the release notes including a link to it, or just no direct mention in the release notes. In the past, say for the issue with the incorrect VM page references, we have been a wiki page with queries and such for diagnostics. > +1 for fixing so its consistent (at least from a behavior standpoint). >=20 > I confirmed that it's in 9.5 & 9.4 as well. Thanks for confirming, I am going to patch 9.4~9.6 with that. -- Michael --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAly/m9AACgkQnvQgOdby QH1ppg//c+u+iHO6I/X0n5fS67XHhqzx30K/3Ye14VODYX23PgPYY/hjfYyHUqKe uVGk3M/0XpNkLHXoNmI/9iqiPoE4SOHIN67Z4NtKJ/bG+dONx18GbZUflLQCSHCw jzyMU/BIiGhX1drDX+NIF2gkXQGJ+tDi0lsxOGFRPuzn4MiiwK0IaBLOgWoqEGWO PXBx4kXWivb3pqUBQu8h0FXuGL3zKbE8T1C7zF1tXxEGzVJBMhDFmiYiHj8hlKKU F3AunrMC75klqFBvjSZMYYi/9fgtdGIq3eI+9pfNpLZ8jRqVN17K1tanb+wBQD+v LVasbXKsHoCgSZgoGLXem4YwaPa18/zxDBmNr5kXf9YkMbf6kgwYxf2+NmElKxCc NlDl4fvQTwp0L32XoqlLPA2C1xQO2E+gcQ8nT3Q/KIHxyeGp7v3UpM7lsHz3nBUY AMCNBNAP7IjHXFEVaZQ/rhKMJdLf6QY5o9fjr2i9wHkxqjyC7rJj6ddb1EArawUM veK5yxh5ffo/0Y9EmUD0ePkkcMG4zvgEFZCBqll97L7l7/HbelAr9G4OmqvTZIW6 b++gEOeaOc2+CYNu9RIIaLx+3yyl124A0GcyCWzP/c0r8Yvtkk1YR5O5IZVmmKsJ 7Gkn/UxgZswnMOIogeVM3qHYg9OtN1nYw0ptA3HXV672jwJG/F8= =vPNW -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--