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 1tmwxB-000VWD-GL for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Feb 2025 15:34:38 +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 1tmwxA-003wkD-73 for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Feb 2025 15:34:36 +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 1tmwx9-003whe-Ko for pgsql-hackers@lists.postgresql.org; Tue, 25 Feb 2025 15:34:35 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tmwx6-0001LP-2Q for pgsql-hackers@postgresql.org; Tue, 25 Feb 2025 15:34:34 +0000 Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-855c122b3e7so462517639f.2 for ; Tue, 25 Feb 2025 07:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740497673; x=1741102473; 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=AJkkpPRrgpth0YWyK8RkaF3nvWUoqzSSGqDG3j+jK50=; b=Ymc+cq24keNw7JLvd1im8/jW8PjQUXuv5jd+sb1dRlopmNJfnTMP7sTE4tP3VQm1vR Zbiieh/oD6uWINI/DEhgn+iA76rGWy4hqeILN60r0I0F7+TBYje9mjZqXiNEY2zCTFmr 3iTbXkTGtXyfjRtouUCAEBdpzovfk74v/oolL55FDBV9MJU2/EkP6Bd9YeminWwnh2H7 x0YvKSv8vOr60ZdywwrVvbLZgeUiliPHBVJpX1mRB2lwbD8jUd7Nzv9mqXyC/ZaIBNXt W84UWENDUzNFcKgykya6KFIR5Kne5DRT+531hlbJlHQDy70FMVZoUqAhYPAq7i/eXVFA 3LCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740497673; x=1741102473; 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=AJkkpPRrgpth0YWyK8RkaF3nvWUoqzSSGqDG3j+jK50=; b=gyFlqxJrdPBGbImYWZPwwgMLR4Fn2cOsAvFRIxYSzZfiO60JPy8xPvWMBdQ9VeJWdN hHMi8SLHSJITt6fJ95OA5wSt5q5mz3YSo8PduEIqG9oQWhj8I/tXv15jYyYFuuS5rD+9 4Ve7Ae3+rg9bSpKAhGGuLMpfs5Ufe4oo3rKy3LGiA1Q/cmTlZ1LfHK+pZsRT1AHlfUqb gtnoxcKcvcKhDqp9vq8Cu3FCOmVJECewcwcT3fR3X1Ym8GhikgVo7F8tOhFBDYFtDpcs /ANx7A2HwEiL4aQhGk4Kjfvx6HceQZGFGEFdv/R3x9Qqq9NYLvRIEA4n0uHg5zhO7KN0 uwig== X-Forwarded-Encrypted: i=1; AJvYcCUpG6ab6OV91mKdowyKwxL6fVi3ij3e9Eq8zwpYGq771LjBanWAXFIw/mQpMs/pDV6WDjjQlSQKYV95CMVF@postgresql.org X-Gm-Message-State: AOJu0YzH99cgN4LkcWJ+F8Z+LxdrrbQiFKDNqd96mktiAkh+lpU8Rz1Z iov9k/IgwlgOokM8Csib2/e9qKS4g1zV7ukMiDME0NIim4VSZwYF X-Gm-Gg: ASbGnctyMTHoggHCKsgA4fCt0fBWBppHVqj3268oQPEoSPQcIqu5jaTP1eKifNp6ps0 Vgn8Qbs9KnbAFGcQch+0k7HRJp106dZmpFpz0FLBW4crcW1cPUKMXMsgHoSQppO1RNq5k/t6ejM WDqEZOEDZxIlRZyOSjR+cAO8UvsfjU4ByHN05SfTXhNOlQy8H6NOTohN10x9rzKV7Uvf94r24Ea GsAil03YCraJ1K8qgM/WOnJAxguSW6UgNM9fimeFECtt84QEGMb1QfxB9mAVgA9e4jP524LfCl+ fVm6WHafl+kYckG5/KMJUJro8LCkOR8NTAi/+5iEBoxiM0sGdw0h7Z7y9rYTJK+I4EFSyBc5AyW XJGyNNhWlNR+nQeZs X-Google-Smtp-Source: AGHT+IHcdplyYz8PetRP7WfTAnaKx5ZokGCFmUEN5A0DmWOvWbfrCI/oq5drSuDafUaoLym5p0NaQw== X-Received: by 2002:a05:6602:6d0e:b0:855:63c8:abb5 with SMTP id ca18e2360f4ac-855daca8856mr1725003539f.13.1740497672871; Tue, 25 Feb 2025 07:34:32 -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-4f04750f6besm447589173.77.2025.02.25.07.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2025 07:34:32 -0800 (PST) Date: Tue, 25 Feb 2025 09:34:30 -0600 From: Nathan Bossart To: Greg Sabino Mullane Cc: Isaac Morland , Aleksander Alekseev , tgl@sss.pgh.pa.us, pgsql-hackers Subject: Re: PATCH: warn about, and deprecate, clear text passwords Message-ID: References: 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 Mon, Feb 24, 2025 at 04:20:44PM -0500, Greg Sabino Mullane wrote: > On Mon, Feb 24, 2025 at 4:18 PM Nathan Bossart > wrote: >> Well, the discussion upthread suggests "disallowing plain text passwords >> completely" > > Yeah, that's more of a long-term dream than a real plan. It would certainly > be no sooner than Postgres v24 or so... I noticed a nearby thread [0] in which there appears to be some budding support for a GUC that disables sending passwords to the server in clear-text, at least for CREATE/ALTER ROLE. Perhaps we just add that for now. (I'm probably well over my quota for new GUCs in v18...) IMHO a WARNING would really only be appropriate if we are definitely going to remove support in the future, and that feels like a bit of a stretch to me due to the level of breakage it could cause. That being said, folks did seem on board enough with deprecating MD5 passwords for me to feel comfortable committing it, although that might not quite be an apples-to-apples comparison. In any case, we've long encouraged folks to avoid sending passwords to the server in clear-text, so I think it's reasonable to provide some way to enforce that server-side. [0] https://postgr.es/m/3136308.1740155121%40sss.pgh.pa.us -- nathan