Re: [decade] FW: Last Call: <draft-farrell-decade-ni-07.txt> (Naming Things with Hashes) to Proposed Standard

Stephen Farrell <stephen.farrell@cs.tcd.ie> Tue, 12 June 2012 10:09 UTC

Return-Path: <stephen.farrell@cs.tcd.ie>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A61221F862F for <ietf@ietfa.amsl.com>; Tue, 12 Jun 2012 03:09:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.183
X-Spam-Level:
X-Spam-Status: No, score=-102.183 tagged_above=-999 required=5 tests=[AWL=0.117, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KEltMWU3IlXp for <ietf@ietfa.amsl.com>; Tue, 12 Jun 2012 03:09:39 -0700 (PDT)
Received: from scss.tcd.ie (hermes.scss.tcd.ie [IPv6:2001:770:10:200:889f:cdff:fe8d:ccd2]) by ietfa.amsl.com (Postfix) with ESMTP id 0B53C21F8628 for <ietf@ietf.org>; Tue, 12 Jun 2012 03:09:39 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by hermes.scss.tcd.ie (Postfix) with ESMTP id 73976154274; Tue, 12 Jun 2012 11:09:38 +0100 (IST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; h= content-transfer-encoding:content-type:in-reply-to:references :subject:mime-version:user-agent:from:date:message-id:received :received:x-virus-scanned; s=cs; t=1339495777; bh=krJj6WILypVlFm 9wG+Ng4LaetpBheW6YWEAPBn4lFwE=; b=CyUo+PzPLlZr9VGhlvX+aCdoJD6xAx A+Io+/dA1OLMpAo6FHzPnKFMailwK+SlK35CB8gMJiXLxtG7p7DygaiZa3r0A+xp xeQARE+CWGXG4W2tOPkbyOh2zrwUrV+/X8krWclqTDxGyxBpsAfJvlJkyecwiIIf STUkUuNWcWwKnsGVAEqCD4DWSsHfiYbOJak9Wd80VrfRePooO8B+wplk5fyTft1i 1k/njx1Qtzw6+qKg07LtFwl6/HeRUThvM6JjOe/KJmVh+9oIZSYUlZbI/Apfb2Pf XSzlEJ/V2+pZFgWbMqmGpbXR0JCG+ZOqafRn5VuKasGMJKUSFxQ0xpQA==
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from scss.tcd.ie ([127.0.0.1]) by localhost (scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10027) with ESMTP id ZLPpStZeziyg; Tue, 12 Jun 2012 11:09:37 +0100 (IST)
Received: from [IPv6:2001:770:10:203:f0bb:fb89:d865:2639] (unknown [IPv6:2001:770:10:203:f0bb:fb89:d865:2639]) by smtp.scss.tcd.ie (Postfix) with ESMTPSA id 21453171803; Tue, 12 Jun 2012 11:09:33 +0100 (IST)
Message-ID: <4FD7155D.6080407@cs.tcd.ie>
Date: Tue, 12 Jun 2012 11:09:33 +0100
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: "\"Martin J. Dürst\"" <duerst@it.aoyama.ac.jp>
Subject: Re: [decade] FW: Last Call: <draft-farrell-decade-ni-07.txt> (Naming Things with Hashes) to Proposed Standard
References: <E33E01DFD5BEA24B9F3F18671078951F23A88B0C@szxeml534-mbx.china.huawei.com> <CAGnGFMKjv2QR+ebynnC2GktpYf2QEx73n+0_ZZeyJrAmTYDnjg@mail.gmail.com> <4FD0FDC2.2090802@cs.tcd.ie> <CAGnGFMLc15-ZkD_Of7k0zK7ef-i6HN2LsPCfbW3pkwFkpSiOfA@mail.gmail.com> <4FD1E048.8080507@cs.tcd.ie> <4FD710AD.9030505@it.aoyama.ac.jp>
In-Reply-To: <4FD710AD.9030505@it.aoyama.ac.jp>
X-Enigmail-Version: 1.4.2
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Cc: Jonathan A Rees <rees@mumble.net>, ietf@ietf.org
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Jun 2012 10:09:40 -0000

Hi Martin,

On 06/12/2012 10:49 AM, "Martin J. Dürst" wrote:
> Hello Stephen, others,
> 
> On 2012/06/08 20:21, Stephen Farrell wrote:
>>
>> Hiya,
>>
>> On 06/08/2012 01:35 AM, Jonathan A Rees wrote:
>>> On Thu, Jun 7, 2012 at 3:15 PM, Stephen Farrell
>>> <stephen.farrell@cs.tcd.ie>  wrote:
>>>>
>>>> On 06/06/2012 09:33 PM, Jonathan A Rees wrote:
> 
>>>>> ---------- Forwarded message ----------
>>>>> From: Jonathan A Rees<rees@mumble.net>
>>>>> Date: Sun, May 6, 2012 at 7:57 PM
>>>>> Subject: comments on
>>>>> http://tools.ietf.org/html/draft-farrell-decade-ni-06
>>>>> To: Alexey Melnikov<alexey.melnikov@isode.com>, Barry Leiba
>>>>> <barryleiba@computer.org>, "S. Farrell"<stephen.farrell@cs.tcd.ie>,
>>>>> "P. Hallam-Baker"<pbaker@verisign.com>
>>>>>
>>>>> Here are some opinions on
>>>>> http://tools.ietf.org/html/draft-farrell-decade-ni-06 :
>>>>>
>>>>> I think this URI scheme would be a welcome addition to web
>>>>> architecture. Wide review should be sought, because this might become
>>>>> quite important and if there are problems they will be very difficult
>>>>> to fix later.
>>>>>
>>>>> I think using .well-known is a good idea.
>>>>>
>>>>> I think integration into the ecosystem, such as browser support,
>>>>> should be anticipated; for this reason I think content type should be
>>>>> elevated from an 'optional feature' to a 'required feature'.
>>>>>
>>>>> [i.e. conformant implementations must support it, even if providing
>>>>> the content type in the URI is itself optional.]
>>>>
>>>> I could certainly live with that, and I suspect my co-authors too,
>>>> but I'd need to ask 'em. However, we'd like to see more support for
>>>> it before doing that. If we only hear from you on this, then I
>>>> think leaving it in the other draft would be right. (See below
>>>> for why we want to keep that draft.) I guess others have a few
>>>> weeks to chime in on this.
> 
> 
>>> It is certainly strongly promoted by the W3C web architecture
>>> document, see
>>> http://www.w3.org/TR/webarch/#internet-media-type
>>> so I think I have W3C consensus (as of 2005) behind my claim.
>>
>> Well I could argue that that says that protocols SHOULD
>> do stuff and we're just defining the URI here and not a
>> protocol. But let's see if we get more input on this.
> 
> Sophistry is great, but security is better :-).

:-)

> Seriously, (1) URIs can be seen as (extremely small) protocols, (2) they
> are used in many protocols and formats, which might be better served
> with having the content type being taken care off rather than having to
> do it on their own, and (3) in order for the protocols to do the right
> stuff, they need the right information.

I'm looking into this since a number of people seem to
want it and it does have some real value.

My main concern is with adding it is to see if it can be
done without over-complicating a basic implementation. The
danger would be that we'd say "you MUST be able to verify
name-data integrity for any MIME Content Type" which'd get
hard quickly.

I expect we'll shoot out a proposal for how ct could be
included at the end of IETF LC. (We may still argue
against, but we'll likely float a version including it
in any case.)

>>>>> I agree with other commenters on the peculiarity of using // to
>>>>> provide the location hint since the named host is not being trusted as
>>>>> an authority. I don't understand why the 'primary' location isn't just
>>>>> encoded in the query, just like the alternate domain(s) and "wrapped
>>>>> URL(s)".  This would have the nice property that you can put the
>>>>> identifying parts (i.e. hash and content type) first, and the less
>>>>> important
>>>>> location hints parts all together after the identification. The
>>>>> various
>>>>> location hints (whether primary or secondary) would go together and
>>>>> their similarity would be clearer.
>>>>>
>>>>> (Unless I'm misunderstanding something and the part after the //
>>>>> actually has status other than a hint?  That would seem to defeat
>>>>> the purpose.)
>>>>
>>>> I think we could argue this (and we did already between the authors;-)
>>>> and it'd come down to "pick a way." We did already and wrote code
>>>> for that, so we'd prefer to stick with it as-is, especially if there's
>>>> no compelling reason to change. I think its likely we can agree that
>>>> there's no compelling differences here in whether we use "//" or
>>>> a "?loc=" or whatever.
>>>
>>> Well, you have a chance to fix this now, and it will be impossible to
>>> fix later.
>>
>> Its true we won't be able to change this later but not true
>> IMO that any fix is needed, now or later.
>>
>>> Using // is contrary to RFC 3986, which very clearly says
>>> "governance of the name space defined by the remainder of the URI is
>>> delegated to that authority". This is certainly not what this URI
>>> scheme does, so use of // is contrary to the appicable normative spec.
>>
>> I disagree. The full quote there is:
>>
>>    "Many URI schemes include a hierarchical element for a naming
>>     authority so that governance of the name space defined by the
>>     remainder of the URI is delegated to that authority (which may, in
>>     turn, delegate it further)."
>>
>> There are no SHOULDs nor MUSTs there with which we're not
>> complying, and "many" != "all." Yes, ni URIs differ in some
>> respects from HTTP URLs, but if they didn't then this draft
>> wouldn't be needed, so that's ok.
> 
> In my opinion, the decision on whether to use the authority part or not
> is probably more a theoretical one than a practical one. Either way
> seems to be fine. Strictly speaking on abstract "authority" grounds, the
> mailto: URI could have used // because mumble.net is the authority for
> mail to rees@mumble.net.
> 
> But I agree with Jonathan that once we start putting other information
> such as full URIs from which the resource can be retrieved, alternate
> 'authorities' where it may be available, and so on, after the hash, then
> putting all that stuff there seems cleaner.

Right. A few people seem to prefer it like that. We prefer it
as is. I agree with you that this isn't significant so I'd
really rather go with the running code here.

Cheers,
S.


> 
> Regards,   Martin.
> 
>