Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cU6HV-0004bC-Qr for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2017 06:33:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cU6HV-0000vh-B1 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2017 06:33:09 +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 1cU6HT-0000ut-Qy for pgsql-hackers@postgresql.org; Thu, 19 Jan 2017 06:33:08 +0000 Received: from mail-pg0-x229.google.com ([2607:f8b0:400e:c05::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cU6HQ-0002wJ-MC for pgsql-hackers@postgresql.org; Thu, 19 Jan 2017 06:33:06 +0000 Received: by mail-pg0-x229.google.com with SMTP id 194so11482340pgd.2 for ; Wed, 18 Jan 2017 22:33:03 -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=408JVSuxZ6hPW0V41E+8/Lr67oEcDyvLtl8wtIuCtjs=; b=XlqCvUL37CAiqEWa45/Rdy7v7m+SSm2rDcQ1bwoQz2YpJM5DvQImCXbAEur8eK0k20 3lv5o7FC4A3chaOIK9VlaUStWWnYpvmkLHMmg9lDB9ffXkVhf7WsF6PhxVLvQrJNVpzD exuZbeaB4sx0PtGD7lhBwHhC7TKYIhtQMpuf4= 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=408JVSuxZ6hPW0V41E+8/Lr67oEcDyvLtl8wtIuCtjs=; b=L593Fj2JHTpx6i8LV+pjWG3LB8Mc1HywvLbJuMYyHq3MiV8XEjBXvRjJrUBjSml9wb QuWsatOG5ia5TrVRDE21MheB75h2bAxTbipU0dB0ZvTWD749hA4vb7Grx5ErWqqmFZjt 7heu29k0ZzCB8tTiJcBBZ2hICaYBr6Nao+4ntLmdd2w1iHSVDoKA/eyKXL/8L92dUGTy 19I07KJYXMG3EvfX1EMMpoD7bbxcmPRqR+A3pSRUKx9l7nqGjJ/YrtXi4OUqZNNV/gIs NhPfzi/d820MAZHl5YyORSrkltq5L4Cb6lDS7OQWVCwzAYNJk2ziHHX5974wTlxTJogU Sg8Q== X-Gm-Message-State: AIkVDXIftdQn9Wf3dGiEZX8CfDVgjXVPtAGnxzRPZG42UOTysjBrix+ic6VR0i5HNxATQQ== X-Received: by 10.84.231.9 with SMTP id f9mr11025504plk.28.1484807582867; Wed, 18 Jan 2017 22:33:02 -0800 (PST) Received: from tornado.leadboat.com (c-98-248-47-228.hsd1.ca.comcast.net. [98.248.47.228]) by smtp.gmail.com with ESMTPSA id r21sm5198911pfd.95.2017.01.18.22.33.00 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 18 Jan 2017 22:33:01 -0800 (PST) Date: Thu, 19 Jan 2017 01:32:45 -0500 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: <20170119063245.GA633066@tornado.leadboat.com> References: <4f3a9e71-cb1b-ca44-a780-36d503671e45@iki.fi> <20161109091309.6437a8b3@fafnir.local.vm> <20170118052356.GA5952@gust> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) 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 Wed, Jan 18, 2017 at 02:30:38PM +0900, Michael Paquier wrote: > On Wed, Jan 18, 2017 at 2:23 PM, Noah Misch wrote: > > 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. > > Sure. > > > 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. > > Or we could have a sasl option, with a mandatory array of mechanisms > to define one or more items, so method entries in pg_hba.conf would > look llke that: > sasl mechanism=scram_sha_256,scram_sha3_512 I like that. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers