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 1tuuvF-00DzLI-7O for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 15:01:33 +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 1tuuvD-006Jr2-SI for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Mar 2025 15:01:31 +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 1tuuvD-006Jh7-Hu for pgsql-hackers@lists.postgresql.org; Wed, 19 Mar 2025 15:01:31 +0000 Received: from mail-yw1-x1135.google.com ([2607:f8b0:4864:20::1135]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tuuvB-003iYB-21 for pgsql-hackers@postgresql.org; Wed, 19 Mar 2025 15:01:30 +0000 Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-6fead317874so57067357b3.0 for ; Wed, 19 Mar 2025 08:01:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742396489; x=1743001289; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=/Vtuew3jc1JDLedXbCiYNY8xkAjRfxhBHdmf53dGElc=; b=fkbyqf4tLmR1uqwTH8wzIt043b6651l0pIiDTZBkveEFvDkR6qG6w46ScrAQONvLGX LD+SdXCvNEHSr9uVueIAwBAqTgHwIPmBgPur81dm1tp6H6+9cwsfJThkKR1NQhGsFfJp 9NYH7yLLb5rGr+3mndIMcx6gnxCyBKptzpsiIYR4Bt/ys0ysDF94R1jd/DQqJLrsxHBi EWENVwj3f2hgEP1iuz1/ut526yYVYaoNDP9dub1h4slk6SWXikXDU+7C29KYjKie97aD 4h8nVCqczNL+bKa6yl7KcS3zHRlnntIO55UuUe6G/bFaKF4WAq7fmYm+WPIAJR7cUzxl +7Ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742396489; x=1743001289; h=in-reply-to:content-transfer-encoding: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=/Vtuew3jc1JDLedXbCiYNY8xkAjRfxhBHdmf53dGElc=; b=xQ4GuP6LsjDu6QqRO+2XtgFf1b47E62f2sFZNjzRIgJoKFTB93uioSQ8TTp1qa2Zah 28tk0G85hDPO0plCZFeALGnmXwwyl69U0ccJjTZ5ohfQN3Y7lvVi0oOqDvls615YOOEu lQr//NXbCGqo+urCHspZil95fbR5P01uNIYYCSCpBIBS6tzQULulKDLGRcgf85cLLFej bfmfpp/iagsRJx9XE4FqeEm8ptPYMBbTCSvbp2UDZseZgVSnBfPUujouJnYEoNDEgbhP KgpYtYPAAXPqbBrBQqqb1zZU0N9rYIo9un7iqeTaVQk/fHmohwVR0T+PCk12C8wbtyRM 5z4Q== X-Forwarded-Encrypted: i=1; AJvYcCXxLCXJ6aSuhbgPQ832J6NU7qnRE0tTfJdqgctrI6OZSZOqrPhXhxLWTGMFaonT17vcmHdo4uWrK9Frwn4C@postgresql.org X-Gm-Message-State: AOJu0YwRw9pcVBNiWyI9XuQgqrGBF551L6y6uPduabmX9yQD2rsbKbhd IItE56TdYEMosIlrlv2Jm4PxkauGUYt3z7hObP7WOjWhtcBlPPYu X-Gm-Gg: ASbGnctea0faLqDhlj00JszHYX3KkaIGFHEi2kw+orVlKeFydW9eEGECE+Ia6UC6ZRl d1t/zmNcMfHe5vy4WzYA2ZHgBrQTZkvr7GefeiqSyIWvlHKG4MOvZqHi7gMa/MVyTfJHxJeXYym qQKrMS/er/znJK/D4/vsG0Kbgq75d/9xH9xl/LEvi4nhE1zUvDo5EKTTgdLTw6X4L8U+6rFiKFS HWPpajFf374JsLQDyNtuXcIWyw8lJljp1BUMfBnk76904ZDir2cHt6tlQbf3s0oXq4ZmPg6Z+qz RUTpD0i/M0EkyxFke1RR6/GPdg58agdO+qNeWEYWWqtI+sRG+ZpMyTZTDwLubNlIKTAIoxpZfj9 nVl8NaxldU8YK//S8pR/UrrYkJqtW1TrSTEo= X-Google-Smtp-Source: AGHT+IFQIwzWNt/1JkAzw3U+TkBACS6ei490JYKYvKowb9mL35+vBjRNP+9W/lHuSIz3R62zLNp6XA== X-Received: by 2002:a05:690c:61c4:b0:6ff:1fac:c4f1 with SMTP id 00721157ae682-7009bfa96f7mr40145407b3.22.1742396488934; Wed, 19 Mar 2025 08:01:28 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6ff32cb5a44sm30858547b3.104.2025.03.19.08.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Mar 2025 08:01:28 -0700 (PDT) Date: Wed, 19 Mar 2025 10:01:26 -0500 From: Nathan Bossart To: Robert Haas Cc: Greg Sabino Mullane , "David G. Johnston" , Tom Lane , Isaac Morland , Aleksander Alekseev , pgsql-hackers Subject: Re: PATCH: warn about, and deprecate, clear text passwords Message-ID: References: <4061037.1741027647@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 19, 2025 at 10:06:58AM -0400, Robert Haas wrote: > On Wed, Mar 19, 2025 at 9:24 AM Greg Sabino Mullane wrote: >>> The user has no particular reason to care about the fact that the >>> password they just typed ended up in the log. That is a concern for the >>> DBA, not the user, and even if they care about the DBA's feelings, they >>> only get the warning after it's too late to do otherwise. >> >> Can't the same be said about other warnings, esp. md5? > > Absolutely. Warnings are sometimes the right thing, but they often > suck. If something is really a bad idea, "ERROR: bad idea" is vastly > superior to "WARNING: what you just already did was a bad idea". If we > don't actually know for sure that it's a bad idea, then it's generally > better not to emit a warning at all, for fear of log-spamming people > who know what they're doing. FWIW I primarily intended the MD5 password warning to alert folks that the ability to use MD5 passwords will go away at some point in the future. If they want to continue to use MD5 passwords for now, they are free to do so. They can even turn off the warnings. One of the main reasons I'm not totally sold on a clear-text password warning is because we don't have agreement on removing that ability anytime soon, not to mention Bruce's point about the debate extending into mid-March. -- nathan