Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cunx0-0002YV-Qq for pgsql-jdbc@arkaria.postgresql.org; Sun, 02 Apr 2017 22:26:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cunx0-0006wk-91 for pgsql-jdbc@arkaria.postgresql.org; Sun, 02 Apr 2017 22:26:22 +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_2) (envelope-from ) id 1cunwU-00063i-8e for pgsql-jdbc@postgresql.org; Sun, 02 Apr 2017 22:25:51 +0000 Received: from mail-wr0-x235.google.com ([2a00:1450:400c:c0c::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cunwO-0007o9-7v for pgsql-jdbc@postgresql.org; Sun, 02 Apr 2017 22:25:46 +0000 Received: by mail-wr0-x235.google.com with SMTP id w11so144011553wrc.3 for ; Sun, 02 Apr 2017 15:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=8kdata-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=VVHGn0HPboZSYC2OF0Ov+Bmvq2rj5dpSRLGpe53aTV4=; b=jGyKLUHniRFjtH7JgJzYTe7H1P4VFuqcMZZ/+XYAJzMTGvprfTOrtxJU3Msld8XaEk mjeVR7jkOBu3+x3JK+orEHh1Y4u4AZbkHvWv6+j5d4hd/SeJTr8oM14hLJVKsXwLE9kE 0/1riaB9mSjHjD/m1tdQvRd6o4eutaqPokXQ29bjvUlYdu72eI6xIHOc0jWcn1tLEFPq 8Mi0g8yiaxOAjbApFHtFfmZLfd3hItLs7AH/+Thk+XztZGFbfxrsSAcKaML04e6zCdxA rz0wPCq4pZJyu1aTenTNJx4CLzd7sFKWfpRlJIRC9hLfU8ddpdscxcJcGXYkKKFQq11n 7eUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=VVHGn0HPboZSYC2OF0Ov+Bmvq2rj5dpSRLGpe53aTV4=; b=A5wEbHx+nZiSm3jAA0f5cLbNL6k6gzlPqSUZrSTpFrbCNJ4BPgNcjLFKj16C42bPbK Lh1yi/uhG/WiVJ6tsJsBesiu7uTLxqOSkq7p+UYKXXyXUMbNX3cLfgefsOPuVlMogXz+ UUXSPxtgzbBSXHu/nlmzNJRoqktX5wAu7pkfqi3lVoV/Ay5G+XdvSZXoXpugXggV/KZt SyL0G1y1qSjSQc2+wMh4Z+cZ5KfSLZIHHTuNa4G2EL7ogj8D69nzhZ/lrVyz/DPTVqFC t7Hc8QBK3PuITDIUDz5lIEe7a5NLV+Fbeh0Fets+HFu88PnzGxT/1bDaZ00e7jYO0PAR 4JdA== X-Gm-Message-State: AFeK/H3aVcJsW3CH7LXIspg5sJRqQh3Cvcf00+ht6IpCG1muc0LcckJX/7dgREMg/oH1RA== X-Received: by 10.28.174.203 with SMTP id x194mr7220260wme.85.1491171941807; Sun, 02 Apr 2017 15:25:41 -0700 (PDT) Received: from [192.168.1.130] (148.126.218.87.dynamic.jazztel.es. [87.218.126.148]) by smtp.gmail.com with ESMTPSA id x133sm11806785wme.22.2017.04.02.15.25.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Apr 2017 15:25:41 -0700 (PDT) Subject: Re: SCRAM inplementation To: Simon Riggs References: <47f0171d-6d34-fc12-2849-fd157d69925b@8kdata.com> Cc: Dave Cramer , List From: =?UTF-8?Q?=c3=81lvaro_Hern=c3=a1ndez_Tortosa?= Message-ID: <259ee439-3c0f-3470-6add-4b3c9125db2a@8kdata.com> Date: Mon, 3 Apr 2017 00:25:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On 03/04/17 00:18, Simon Riggs wrote: > On 2 April 2017 at 17:05, Álvaro Hernández Tortosa wrote: > >> * Write both a client and server implementation. pgjdbc will only require >> the former, of course, but having both will be great for testing. >> * Do so as an independent library, also as an independent repository on >> Github. This will help its reuse and testing by independent projects. I >> presume it will have at least three different artifacts, a scram-common, >> scram-server and scram-client. Only the latter will be directly imported as >> a direct dependency by pgjdbc. > Don't see any need for the external stuff. We just want a patch on the > driver so any external dependencies are minimized, so we retain full > control over what the driver is doing. Hi Simon. It's not that is a need. Its that it is what should be. Code re-utilization and sharing across different projects is mutually beneficial. C might not make this easy (it doesn't) but Java does and it should be leveraged. A specific external SCRAM project encourages other to use it, improve it, test it, outside our limited capabilities. I don't buy how this would mean less control over what the driver is doing. Code is open source, BSD license, either patches or forks could be created.... and it will be designed initially for pgjdbc needs. That's all we need, I believe. > That can be reused easily > enough in other projects, if they wish. How? Copy and paste the code somewhere else? This is exactly what I want to avoid. What if others find this functionality interesting? I think this method of being an external project favors sharing and collaboration among open source communities. > > Thanks for offering to write a patch. > Thanks for all the patches you have written so far ^_^ Álvaro -- Álvaro Hernández Tortosa ----------- <8K>data -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc