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 1tmfMG-008fMt-Il for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2025 20:47:21 +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 1tmfMF-008XYV-P7 for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Feb 2025 20:47:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tmfMF-008XYN-Fn for pgsql-hackers@lists.postgresql.org; Mon, 24 Feb 2025 20:47:19 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tmfMD-000bdH-0F for pgsql-hackers@postgresql.org; Mon, 24 Feb 2025 20:47:19 +0000 Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-855923e7f53so346749639f.2 for ; Mon, 24 Feb 2025 12:47:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740430036; x=1741034836; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=eROcuZdNyo7nKOMD28qvklL8ZUdIHLJowJQtnSk1LDg=; b=EgPSl20BVH7c/QBqsj+TyahA43YRdQ8OihsMWdgkxzz4TyjrPl0JSqCIup2TWkXGeD aJyP67D+YAfDpv0ko/2oX9w2vXr3TcL5LKVXAOiIGxMrKP41qcePGOv+h2hTHk2gX0Qn XH+fqwBjMBQ1vBE6TUeVKDEGjGlD01Yg3dnOtTHEBWF3U7JBiBnaiRdwU6ug9+mm0bat GLLOvcshRDzgGgxIAv4QUBCVaAEjl8G/P6/q2W77d+imclJlPTFwRpJEMRsyE8dpNEX8 jQ/c39Gka/Wy2e6R/1VhaweAEmKZ+RQTMYkdHd83Ia4Qk8auM867F8hm8vIGeEJYxi4D DWAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740430036; x=1741034836; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=eROcuZdNyo7nKOMD28qvklL8ZUdIHLJowJQtnSk1LDg=; b=sR6CGBVlKXUMSkCMSEWB7umO3FY5y57VamAnvhDYh0JBxSBxpDzmy6Lw4kZlD3Uceb 60TLFIQqVivpjd1qgVxNeJq8ZPKQM6K/OIxdoQgNqocSihDEnL4RhVxI2W/SZHCZr7/P /IEG9v83gosdlTDQTMsPyJiSrwdcyMF+0rc8AE0VxQqhy1OUxw6iPivrGpcaC4bak6fq YmbCCefsiI6JbpqQAePdQc/nLI0jVql3tR1y9xgm7I3ww3XAmWv6RCHb6OL4bwNTzc0E C0NlxDqHKVIwLZiRaCnjIDR7erZsvNN1HV265YYf9IB/Wku5hWbFEDM2Kvfb/Y4CwCvr sFzg== X-Forwarded-Encrypted: i=1; AJvYcCUdhkchUdoPleM9aodmMGsFqSTEonRvVZDDxf6VnGhoETmNL2H/zLWJYBrnhS7ZX17KWoBHoyg9YzYhHyak@postgresql.org X-Gm-Message-State: AOJu0Yx7nS6b240qUuQMwkCMqBJSvFvhLfgBeAp9f6cWBJES5ZkvBu5z z6rwLMMN5LrvYqP3PhrLaqCoZmXgnKPvOavsCUNCfCGl86fYo1OA X-Gm-Gg: ASbGnctllSt5Cq1wxCuxDCu3Z6pAescQ/mWWT3/9WCmPiYUMTO9Nm0g6+gJRbnvz5bG t/uWWd2hhEEZe0UGJn3Wbo8ae4pMDMviI2NKE+tNaLjn8x3PMC+5FuoRg+rI4ov1gfqAcm9xKeZ QbWcVugRZXi/Pq1e7h9gV5dXTsGF522xFRViJvKs7cbyTG0q0Mm4y0P0seSS50XQlktSNrt23g3 I0tAe9YN347gGiV9AD5RpZB3dxvXH8hNLF3ZLhcQxbN+sfV/s8MY90D+FRUv47R9SSxhNb4vYTN gaAaHylD7frnL86+UiQesrmvynyGtsFC85Iu8cpIaUP0cMnMK6BtQ9re3MYWDGEwzFw8I44BPb3 OjXogx5s2k+lw91Zg X-Google-Smtp-Source: AGHT+IEO7VsTJztQ4T//IIPyl4qgUwMD3UVCRsjc7YSi3+LloIUg+AEJqVjIuuOz+6PrMxHC99ZUDw== X-Received: by 2002:a05:6e02:18ca:b0:3d2:abe7:35ab with SMTP id e9e14a558f8ab-3d2fc0d611amr7810775ab.10.1740430035741; Mon, 24 Feb 2025 12:47:15 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4f04750fcf1sm64774173.99.2025.02.24.12.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Feb 2025 12:47:15 -0800 (PST) Date: Mon, 24 Feb 2025 14:47:13 -0600 From: Nathan Bossart To: Greg Sabino Mullane Cc: Aleksander Alekseev , pgsql-hackers Subject: Re: PATCH: warn about, and deprecate, clear text passwords Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Feb 24, 2025 at 09:26:07AM -0500, Greg Sabino Mullane wrote: > * Lay the groundwork for eventually disallowing plain text passwords > completely. A long way off, but this is the start. After a couple years, we > could switch the default from "warn" to "disallow". A few years after that, > disallow completely. I wonder how folks feel about the idea of removing the ability to send passwords to the server in clear text. There may be some scenarios where clear text is probably fine, and most of passwordcheck's checks rely on being able to see the clear text password, but we've long encouraged folks to "pre-encrypt" passwords. I also think it's hard to argue that sending a clear text password is much more convenient than createuser or \password (not to mention the PQchangePassword() function in libpq). That being said, this seems like it has the potential to break a lot of stuff, and we probably ought to be cautious about that, too. This is perhaps a nitpick, but one issue with ERROR-ing for clear text passwords is that the default logging settings seem to send the statement to the logs, too. So, it might actually increase the likelihood of the password showing up in the logs. I'm not sure what else could be done, but I believe the conventional wisdom is that logs can contain sensitive information, so maybe it's okay... It still seems weird to me to try to help folks to avoid logging passwords by logging their passwords. -- nathan