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 1lorgS-0006oj-7A for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 18:03:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lorgQ-0002fq-RD for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Jun 2021 18:03:06 +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 1lorgQ-0002fi-FM for pgsql-hackers@lists.postgresql.org; Thu, 03 Jun 2021 18:03:06 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lorgJ-0005il-SF for pgsql-hackers@postgresql.org; Thu, 03 Jun 2021 18:03:05 +0000 Received: by mail-pg1-x534.google.com with SMTP id j12so5738086pgh.7 for ; Thu, 03 Jun 2021 11:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=aFdknsCTKcnc13MNTVX5987YrhZsVIAFc8v8TkyNTPk=; b=lQ2zuIYSg2H2ilWxh2Z2wESZO0Xs5JoVvhEaBHFIqwkiSXL1j6mj5fmRdFYGb2utEQ I9U6elcBSxsBk/yCyl9+fs/JDSad8xL5F0T605XX5SljU+7tR5CJM7vZqFKp3m3CVa8z tx9c7AzPbFVT1editVI4jaNRIP3f9GI8cleH0rW/4OycnEtBFhE8UCmLchxr1gDNIrjm 8xfT3x25Q6wTaufDZ0APouupJt3CBrAeTpSNIsVYeT8ga9q+DdEU+GH/ZTfVRf2Sz4jM o1RiyjsEm0Yl6mU+1XJCt5iNj5qM/7BBhsKlYu5DMFp4yYGy8FA3+AZJAcdX1o3Q+JZP ZWhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=aFdknsCTKcnc13MNTVX5987YrhZsVIAFc8v8TkyNTPk=; b=e+AxsqE79ZF8WZ1vxRQLi9jxbzoGnoCDv0mJ+0ZEs+19Um1v1NkVsEnBDyMDpmdeUn vdOoZGKMN3Cn4BgURyhnrGRcMYIbYBW9r5EgSZSiXc30/21ILsAaw4GkAQ3HvT1rI/tH EyhPgUUe4FDvBaab4Tqxnl64xjqN2AGzApt4pjw404T0VNPS8Y2iepkT8jp5Rcme90H+ DkgYY3Kx+McgR7H4M5mN5qDtivCgFV5HXNEjTmBjVBNfuGsPi12ehnkXxKXFI4vosVIq mqEvUO5vLCYaBcVz47Rn6BklqtuHTR9kfBbSQ7yCE97fuT0usTP96FSnMHYliuf1rhia KTQw== X-Gm-Message-State: AOAM5316cr3w5ypqAUrrNZjk+Adm26yPuEGGxb010wpopnlMN06st03u Wj4mZbs1JWtI3eznrWVqRUX1Ag== X-Google-Smtp-Source: ABdhPJy0KMzJ+w0cLv8BiCwWRHKc4JVXQlEBF2DhXSkXrg2dGl1q6kFIRA1hTZJmLTqWVvcWl/b48g== X-Received: by 2002:a05:6a00:238d:b029:2bf:9f4e:7069 with SMTP id f13-20020a056a00238db02902bf9f4e7069mr547361pfc.28.1622743378594; Thu, 03 Jun 2021 11:02:58 -0700 (PDT) Received: from jdavis.lan (c-73-231-146-4.hsd1.ca.comcast.net. [73.231.146.4]) by smtp.gmail.com with ESMTPSA id v9sm2848268pfn.22.2021.06.03.11.02.57 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Jun 2021 11:02:57 -0700 (PDT) Message-ID: <2c52f6c582e2fbcea77caa0ae8d83af261522be7.camel@j-davis.com> Subject: Re: BUG #16079: Question Regarding the BUG #16064 From: Jeff Davis To: Tom Lane , Stephen Frost Cc: Jeff Janes , Magnus Hagander , Thomas Munro , k.yudhveer@gmail.com, pgsql-hackers Date: Thu, 03 Jun 2021 11:02:56 -0700 In-Reply-To: <544464.1608576242@sss.pgh.pa.us> References: <16079-29e9c038e1463751@postgresql.org> <20191028154754.GS6962@tamriel.snowman.net> <20201221005825.GQ16415@tamriel.snowman.net> <543836.1608575492@sss.pgh.pa.us> <20201221183511.GI27507@tamriel.snowman.net> <544464.1608576242@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2020-12-21 at 13:44 -0500, Tom Lane wrote: > Hm. I'm less concerned about that scenario than about somebody > snooping > the on-the-wire traffic. If we're going to invent a connection > setting > for this, I'd say that in addition to "ok to send cleartext password" > and "never ok to send cleartext password", there should be a setting > for > "send cleartext password only if connection is encrypted". Possibly > that should even be the default. There was a fair amount of related discussion here: https://www.postgresql.org/message-id/227015d8417f2b4fef03f8966dbfa5cbcc4f44da.camel%40j-davis.com My feeling after all of that discussion is that the next step would be to move to some kind of negotiation between client and server about which methods are mutually acceptable. Right now, the protocol is structured around the server driving the authentication process, and the most the client can do is abort. > BTW, do we have a client-side setting to insist that passwords not be > sent in MD5 hashing either? A person who is paranoid about this > would > likely want to disable that code path as well. channel_binding=require is one way to do it, but it also requires ssl. Regards, Jeff Davis