Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGz39-0005UH-AJ for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Jun 2017 02:44:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGz38-00078h-R6 for pgsql-bugs@arkaria.postgresql.org; Sat, 03 Jun 2017 02:44:22 +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 1dGz2S-0005ta-Cq for pgsql-bugs@postgresql.org; Sat, 03 Jun 2017 02:43:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dGz2P-00069t-SP for pgsql-bugs@postgresql.org; Sat, 03 Jun 2017 02:43:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v532hZsA006830; Fri, 2 Jun 2017 22:43:35 -0400 From: Tom Lane To: greenreaper@hotmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14686: OpenSSL 1.1.0+ breaks PostgreSQL's sslcompression assumption, defaults to SSL_OP_NO_COMPRESSION In-reply-to: <20170603020554.1436.89380@wrigleys.postgresql.org> References: <20170603020554.1436.89380@wrigleys.postgresql.org> Comments: In-reply-to greenreaper@hotmail.com message dated "Sat, 03 Jun 2017 02:05:54 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6828.1496457815.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 02 Jun 2017 22:43:35 -0400 Message-ID: <6829.1496457815@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org greenreaper@hotmail.com writes: > PostgreSQL is documented to compress data over SSL connections by default > where possible: > https://www.postgresql.org/docs/9.6/static/libpq-connect.html#LIBPQ-CONNE= CT-SSLCOMPRESSION > PostgreSQL assumes that OpenSSL 0.9.8+ will compress with zlib if it can. > However, OpenSSL 1.1.0+ - already in Manjaro, and the upcoming Debian 9 > 'Stretch', Fedora 26, and Tails 3.0 - sets SSL_OP_NO_COMPRESSION by defau= lt > to discourage the CRIME attack: So the actual issue here, which you've not addressed in this otherwise extensive screed, is whether it's a wise thing for us to override that decision. Should we not just change sslcompression into a no-op? Is there some reason why PG data is immune to the CRIME attack? We might in the future consider compressing the data for ourselves inside the SSL stream, but (a) that would be a protocol break, with a pile of unpleasant compatibility consequences, and (b) if compression by OpenSSL itself makes the stream more decryptable, wouldn't app-provided compression inside the stream also do that? In short I'm wondering whether app-driven transport data compression is an idea whose time has passed. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs