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 1pKQM6-0005F1-L2 for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Jan 2023 20:57:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pKQM4-0008Be-K0 for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Jan 2023 20:57:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKQM4-0008BV-B8 for pgsql-bugs@lists.postgresql.org; Tue, 24 Jan 2023 20:57:20 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pKQLy-0001lt-FP for pgsql-bugs@postgresql.org; Tue, 24 Jan 2023 20:57:18 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6C4135F7B6; Tue, 24 Jan 2023 15:57:13 -0500 (EST) Date: Tue, 24 Jan 2023 15:57:13 -0500 From: Stephen Frost To: Tom Lane Cc: Pavel Borisov , noloader@gmail.com, Magnus Hagander , PostgreSQL mailing lists Subject: Re: [OT] Microsoft: Kubernetes clusters hacked in malware campaign via PostgreSQL Message-ID: References: <379034.1673389287@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7kYhMwEOiWgoxiUM" Content-Disposition: inline In-Reply-To: <379034.1673389287@sss.pgh.pa.us> User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --7kYhMwEOiWgoxiUM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Pavel Borisov writes: > > Regarding the fact that using weak passwords isn't limited, I think > > anyone can write an extension that limits (or advises against) weak > > passwords based on the author's definition of weakness, like checking > > by dictionary or so. That's the power of Postgres extensibility. I > > don't like an idea that Postgres core should enforce some arbitrary > > things like "weakness". >=20 > It's less easy than it sounds, actually, because current best practice > is that the server will never see the cleartext password at all, so > you can't apply the usual litany of weak-password checks. About all > you can do is apply a brute force rainbow attack, which is far from > cheap (although I guess the DBA could run such checks in the background). > Even that might be rendered infeasible if the password is stored as > a SCRAM verifier; I'm not sure about that. Anyway, this is why > contrib/passwordcheck is a development backwater rather than something > people actually use. For better or worse, people do actually use it and it would be much better if we'd actually allow some effort to be put into improving this situation. I'm all for better choices of authentication methods, but that simply isn't always an option and there are cases where DBAs have to be able to require passwords on select accounts be set via cleartext to allow passwordcheck and similar tools to enforce password complexity requirements. Pushing back against that means fewer folks will use PostgreSQL because it isn't able to reasonably address this requirement (unlike most of the other databases out there..), and that's unfortunate. Thanks, Stephen --7kYhMwEOiWgoxiUM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmPQRiUACgkQ7WyKOINH ZFXp9hAAs5k/pvfd8IIMJv5ec/gNL86copk/IW2vW8tr6ZtKfX9g6qIQphp54mC7 OwU+1UGROrny3yYq8DjUidmAOzVzI1/8NcfHcPy7TQ6WlOBS1GyF1hwdr8byQdbE 1486z4JcPRlUSnWzEwbs4N7BtLO+bPC5Vvq1wZDzbmOmgtRaPo0RArfioOC+3246 +buP2rjAn3JR/WTi51/6t866W4UFH88NMHQ57wcTgPAidjynIyp3OjUTX8jnyuqK wmlAI85xNlnBdND+QJ7B1bKcjgyJlH5QLxNH969FMAw1SYtwFG5Zs5a21iuV3Un8 f7X1iLoe8A9S8VVSdrSUvk8YQv/Q3NCai7l+om7CY7JaUruvfQpzUE60dBxxhtF9 KEQzedUr7nsSmDcHCJ2skjwlHExedHnQRSJ6X4I6P5hUzXSRkH+3azomESRT71Mf dqBhK7EFFFiOWUTFwleW+E3tRivLPJ8U/KBkTZgT/dU1rXzQF3fi6sRzGoBDLlBk ZbDaRz2ozfjEt9sJevldfvy+sRdOZpHV8qBrggIlRVnQeExr85/WPFpbozBbejf6 ziX1BBSQ1d9g9yqKtZrx8i+TTUeSfxvizrBvl6VKipIg9crYtq6NTTJjjLmS5lOv UCIULtC2SpWM0qWufixqVpDYNFiASAfJkOLT3iB0cKYV4iVtYA4= =O4P6 -----END PGP SIGNATURE----- --7kYhMwEOiWgoxiUM--