Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6F0CDE0C96A for ; Sat, 16 Jun 2012 13:25:27 -0300 (ADT) Received: from mh6.mail.rice.edu ([128.42.201.4]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SfvoT-0001z1-Nk for pgsql-hackers@postgresql.org; Sat, 16 Jun 2012 16:25:26 +0000 Received: from mh6.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh6.mail.rice.edu (Postfix) with ESMTP id 26338291010; Sat, 16 Jun 2012 11:25:13 -0500 (CDT) Received: from mh6.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh6.mail.rice.edu (Postfix) with ESMTP id 140D129102E; Sat, 16 Jun 2012 11:25:13 -0500 (CDT) X-Virus-Scanned: by amavis-2.6.4 at mh6.mail.rice.edu, auth channel Received: from mh6.mail.rice.edu ([127.0.0.1]) by mh6.mail.rice.edu (mh6.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id WppSz-ce6lZL; Sat, 16 Jun 2012 11:25:12 -0500 (CDT) X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.rice.edu (aart.rice.edu [168.7.56.48]) by mh6.mail.rice.edu (Postfix) with ESMTP id BF67F291010; Sat, 16 Jun 2012 11:25:12 -0500 (CDT) Received: by aart.rice.edu (Postfix, from userid 18612) id B4E401001A8; Sat, 16 Jun 2012 11:25:12 -0500 (CDT) Date: Sat, 16 Jun 2012 11:25:12 -0500 From: "ktm@rice.edu" To: Tom Lane Cc: Magnus Hagander , Euler Taveira , Florian Pflug , Bruce Momjian , Pgsql Hackers Subject: Re: libpq compression Message-ID: <20120616162512.GL6547@aart.rice.edu> References: <22690C61-E960-4A2A-BFD5-DAD3D3B5C474@phlo.org> <4FDB954F.9010606@timbira.com> <5136.1339799120@sss.pgh.pa.us> <5365.1339799869@sss.pgh.pa.us> <11357.1339822502@sss.pgh.pa.us> <19804.1339859730@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19804.1339859730@sss.pgh.pa.us> User-Agent: Mutt/1.5.20 (2009-12-10) X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/797 X-Sequence-Number: 209637 On Sat, Jun 16, 2012 at 11:15:30AM -0400, Tom Lane wrote: > Magnus Hagander writes: > > On Sat, Jun 16, 2012 at 12:55 PM, Tom Lane wrote: > >> It's not obvious to me that we actually *need* anything except the > >> ability to recognize that a null-encrypted SSL connection probably > >> shouldn't be treated as matching a hostssl line; which is not something > >> that requires any fundamental rearrangements, since it only requires an > >> after-the-fact check of what was selected. > > > Maybe I spelled it out wrong. It does require it insofar that if we > > want to use this for compression, we must *always* enable openssl on > > the connection. So the "with these encryption method" boils down to > > "NULL encryption only" or "whatever other standards I have for > > encryption". We don't need the ability to change the "whatever other > > standards" per subnet, but we need to control the > > accept-NULL-encryption on a per subnet basis. > > After sleeping on it, I wonder if we couldn't redefine the existing > "list of acceptable ciphers" option as the "list of ciphers that are > considered to provide encrypted transport". So you'd be allowed to > connect with SSL using any unapproved cipher (including NULL), the > backend just considers it as equivalent to a non-SSL connection for > pg_hba purposes. Then no change is needed in any configuration stuff. > > regards, tom lane > +1 That is nice and clean. Regards, Ken