Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTijK-00053R-7E for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Jan 2017 05:24:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTijJ-0001UW-QW for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Jan 2017 05:24:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cTijJ-0001UO-1W for pgsql-hackers@postgresql.org; Wed, 18 Jan 2017 05:24:17 +0000 Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cTijG-00054D-4l for pgsql-hackers@postgresql.org; Wed, 18 Jan 2017 05:24:15 +0000 Received: by mail-wm0-x230.google.com with SMTP id r144so7680284wme.1 for ; Tue, 17 Jan 2017 21:24:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=h7o4frza/osKYTcQDJW0dGw5jwWv4/KxDipFe5w2se4=; b=URSBZ5O3pXqIqRQ5yNgVqj2a/iU+t0nQLSn1S9W6xSWG1dy5XHsiAJlxnKaE6SyYZ8 1r9FkHz0AF5PAQZ/oNaJTXy1ukkd1Q3VcxSIXdYUe362JR5Yz1/95QsO5cs4QCaYeeRl h1s8TG7qMVQBwFgK9il1y6h/ViVJZqpdaAMyw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=h7o4frza/osKYTcQDJW0dGw5jwWv4/KxDipFe5w2se4=; b=KJMUpMx7PbCyIDolAESf3YWoPijySlJwBzwAM2+Y/h9vHlCW/66uLttHP/h2xg2LOI a5N/wb8YWHcP4kCEnERN58vposm4g09nct6s/uLpI358L395ZsZJ7QDNtjEqdiLExHlG dbcvsJeIGjBR1YRmX5rE1Csru95SVlin+C1f4VPQzS4P8k2PipYONTur/wVMnlceu3eJ vlVC1rqIYNHbdPBMUbONYe012E1o4IA7EJw7WGe/5IgpgKiAVG6zYUZX93MENaMqvOYw y36e0VkLg4sthWJ3NSazUNZeOsdXMba4N4EJZR+XY7t9QTTH1aFGCnQP4o3spQwp0XCT eQsw== X-Gm-Message-State: AIkVDXIgn0Ffew+IEFF3dCIYzsMxEuEkVsCdnU4kBHsWqbAuOJMxeBCSUskmCky90Vgw0A== X-Received: by 10.223.154.109 with SMTP id z100mr1006851wrb.145.1484717052041; Tue, 17 Jan 2017 21:24:12 -0800 (PST) Received: from gust ([88.128.81.31]) by smtp.gmail.com with ESMTPSA id 202sm1898669wmp.20.2017.01.17.21.24.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jan 2017 21:24:11 -0800 (PST) Date: Wed, 18 Jan 2017 05:23:56 +0000 From: Noah Misch To: Michael Paquier Cc: Victor Wagner , PostgreSQL mailing lists , peter.eisentraut@2ndquadrant.com Subject: Re: Password identifiers, protocol aging and SCRAM protocol Message-ID: <20170118052356.GA5952@gust> References: <4f3a9e71-cb1b-ca44-a780-36d503671e45@iki.fi> <20161109091309.6437a8b3@fafnir.local.vm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Tue, Nov 15, 2016 at 07:52:06AM +0900, Michael Paquier wrote: > On Sat, Nov 5, 2016 at 9:36 PM, Michael Paquier wrote: > > On Sat, Nov 5, 2016 at 12:58 AM, Peter Eisentraut wrote: > > pg_hba.conf uses "scram" as keyword, but scram refers to a family of > > authentication methods. There is as well SCRAM-SHA-1, SCRAM-SHA-256 > > (what this patch does). Hence wouldn't it make sense to use > > scram_sha256 in pg_hba.conf instead? If for example in the future > > there is a SHA-512 version of SCRAM we could switch easily to that and > > define scram_sha512. > > OK, I have added more docs regarding the use of scram in pg_hba.conf, > particularly in client-auth.sgml to describe what scram is better than > md5 in terms of protection, and also completed the data of pg_hba.conf > about the new keyword used in it. The latest versions document this precisely, but I agree with Peter's concern about plain "scram". Suppose it's 2025 and PostgreSQL support SASL mechanisms OAUTHBEARER, SCRAM-SHA-256, SCRAM-SHA-256-PLUS, and SCRAM-SHA3-512. What should the pg_hba.conf options look like at that time? I don't think having a single "scram" option fits in such a world. I see two strategies that fit: 1. Single "sasl" option, with a GUC, similar to ssl_ciphers, controlling the mechanisms to offer. 2. Separate options "scram_sha_256", "scram_sha3_512", "oauthbearer", etc. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers