Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sysG9-002lV4-9u for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 12:27:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sysG7-00HC6e-3X for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 12:27:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sysG6-00HC4s-PN for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2024 12:27:11 +0000 Received: from smtp.burggraben.net ([88.198.69.140]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sysG4-000CSv-70 for pgsql-hackers@postgresql.org; Thu, 10 Oct 2024 12:27:09 +0000 Received: from sciurus.exwg.net (unknown [IPv6:2001:470:7120:1:826d:97ff:fe4b:c7af]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "sciurus.exwg.net", Issuer "R11" (verified OK)) by smtp.burggraben.net (Postfix) with ESMTPS id A46F8C0030C; Thu, 10 Oct 2024 14:27:04 +0200 (CEST) Received: by sciurus.exwg.net (Postfix, from userid 1000) id 12444437941D; Thu, 10 Oct 2024 14:27:04 +0200 (CEST) Date: Thu, 10 Oct 2024 14:27:04 +0200 From: Christoph Moench-Tegeder To: Heikki Linnakangas Cc: Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: sunsetting md5 password support Message-ID: References: <7e9e3d30-f7f4-460f-a626-6cfad419d6cd@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <7e9e3d30-f7f4-460f-a626-6cfad419d6cd@iki.fi> User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ## Heikki Linnakangas (hlinnaka@iki.fi): > This is a bit weird state. What exactly is "upgrading"? I guess you > mean pg_upgrade, but lots of people use pg_dump & restore or logical > replication or something else entirely for upgrading. That's > indistinguishable from setting a pre-hashed MD5 password. Password hashes are only in the "globals" dump (pg_dumpall -r/-g), not in standard pg_dump (and I don't see anything about passwords in the binary-upgrade mode of pg_dump). Finally it might be a good thing that we separated data and roles. Maybe that even is a plan for pg_upgrade: understand md5-password when they appear in pg_authid, but do not apply special treatment in CREATE ROLE/ALTER ROLE, thus preventing the setting of md5 password as pre-hashed passwords. Regards, Christoph -- Spare Space.