Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZsFWh-0007PG-0M for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Oct 2015 19:39:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZsFWe-0001qv-Rt for pgsql-hackers@arkaria.postgresql.org; Fri, 30 Oct 2015 19:39:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZsFVK-0000OD-Sf for pgsql-hackers@postgresql.org; Fri, 30 Oct 2015 19:38:26 +0000 Received: from mx1.redhat.com ([209.132.183.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZsFVF-0002Fw-UV for pgsql-hackers@postgresql.org; Fri, 30 Oct 2015 19:38:25 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id CD9C4A3D2D; Fri, 30 Oct 2015 19:38:17 +0000 (UTC) Received: from localhost (unused [10.10.50.136] (may be forged)) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9UJcFbK015139; Fri, 30 Oct 2015 15:38:16 -0400 From: Robbie Harwood To: Andres Freund Cc: Stephen Frost , PostgreSQL mailing lists , Craig Ringer , Michael Paquier Subject: Re: [PATCH v3] GSSAPI encryption support In-Reply-To: References: <20151016133459.GL3685@tamriel.snowman.net> <20151017021105.GP3685@tamriel.snowman.net> <20151022090026.GB8952@awork2.anarazel.de> User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Fri, 30 Oct 2015 15:38:47 -0400 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Pg-Spam-Score: -7.9 (-------) 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 --=-=-= Content-Type: text/plain Andreas, can you please weigh in here since your voice is important to this process? Robbie Harwood writes: > Andres Freund writes: > >> On 2015-10-22 16:47:09 +0900, Michael Paquier wrote: >>> Hm, and that's why you chose this way of going. My main concern about >>> this patch is that it adds on top of the existing Postgres protocol a >>> layer to encrypt and decrypt the messages between server and client >>> based on GSSAPI. All messages transmitted between client and server >>> are changed to 'g' messages on the fly and switched back to their >>> original state at reception. This is symbolized by the four routines >>> you added in the patch in this purpose, two for frontend and two for >>> backend, each one for encryption and decryption. I may be wrong of >>> course, but it seems to me that this approach will not survive >>> committer-level screening because of the fact that context-level >>> things invade higher level protocol messages. >> >> Agreed. At least one committer here indeed thinks this approach is not >> acceptable (and I've said so upthread). > > Okay, I'll make some changes. Before I do, though, since this is not > the approach I came up with, can you explicitly state what you're > looking for here? It subjectively seems that I'm getting a lot of > feedback of "this feels wrong" without suggestion for improvement. > > To be clear, what I need to know is: > > - What changes do you want to see in the wire protocol? (And how will > fallback be supported if that's affected?) > > - Since this seems to be an important sticking point, what files am I > encouraged to change (or prohibited from changing)? (Fallback makes > this complex.) > > - I've been assuming that we care about fallback, but I'd like to be > told that it's something postgres actually wants to see because it's > the most intricate part of these changes. (I'm reasonably confident > that the code becomes simpler without it, and I myself have no use for > it.) > > If I understand what you're asking for (and the above is intended to be > sure that I will), this will not be a trivial rework, so I want to be > really sure before doing that because writing this code a third time is > something I don't relish. > > Thanks, > --Robbie --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJWM8dHAAoJECUy+RdqlaRC+0wQAK/I4YMdFPUmyc9wPxXgyrBM NJDMkNslfeUrSGzmkRe6j8Hhq3XDeMMPuft8z7oqwGL5eHUlYqXgm2vCyXcVd24G BQMfVxtyQDUG1oEYQsOKNOtjsNjpk2DnHeOYb1yj0N1hAE2dXtUnk9vh+zeLYRGX xCmu3tQf5p/32u0rGgFyDKESvJ6Q6bhLc+zY1B28mn9OkYv2TN/3Z+rcmEgvoxF+ Q49haBLnbHpnteMdDhQ0Yx1NblPkoYF1VAdjsjpN29uDRoem8BNtTPcUdVwxnTkK lFX+lTj6dGhJHjJsnv9JdbTFZ7d9BiG26cGrINe/jGkENvfs/AKB7zJPNv1J1ahE roOIj2Z68vjJJ5Z3t1nCY+XNb6U3JPD8oqYAm9fMd5fWAXwaGOdNT6Wh6FGMkWWz qskYDxZptnPR39Lp7A082J6RXSEyriry4dV3jTgKsWIixK8Db0WQ1gsG2j00zQ5d YfmZ+Z/o5CKaut0iir8bIdBLJAS5uZ94IgFhULlRuWqTF9ZdHXDHTcxC4F5qHiXi Ie6RSFpSJ28L2MgTvR9dXYbwp3ID42VUq5WzpKbuPFlpEbHiHjZk78jjUu9BVKyb 0gDb/vJbLOv30xxEkQIqJC6Gj0NNWL75Ixyc9sngsRiEGmOq+zFTDuIUxIbZRH62 9HDbG9TPY34ClecM7f9C =9x2V -----END PGP SIGNATURE----- --=-=-=--