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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/06/2012 09:33 PM, Jonathan A Rees wrote:
> As requested I am sending comments on this last call draft to
> ietf@xxxxxxxx. I sent them to the authors on 6 May but received no
> reply.

Once again, sorry about that. No idea why I missed responding,
your mail is in my client even. Ah well.

> 
> Jonathan Rees
> 
> 
> ---------- Forwarded message ----------
> From: Jonathan A Rees <rees@xxxxxxxxxx>
> 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@xxxxxxxxx>, Barry Leiba
> <barryleiba@xxxxxxxxxxxx>, "S. Farrell" <stephen.farrell@xxxxxxxxx>,
> "P. Hallam-Baker" <pbaker@xxxxxxxxxxxx>
> 
> 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.

> If you
> don't do this, you are just encouraging sniffing and privilege
> escalation attacks. Sniffing would be a big step backwards. Better to
> do what the data: scheme does and say that there is a default content
> type of, say, text/plain, and that otherwise the content type ought to
> be specified in the URI.
> 
> Content-type privilege escalation risk (and incorrect sniffing risk)
> should be mentioned in the security considerations section in any
> case.

Would appreciate text if you can offer some. (Always happy to
make the sec. cons. bit better.)

> Maybe the risk that the host used for retrieval might be spoofing the
> content-type (by providing a bogus content-type in an HTTP response)
> should also be mentioned. 

Good one. Yep, we should mention this whereever ct= is described.

> (A possible design would be to put the
> content-type (and maybe other headers like Expires:?) in the hashed
> content, to be pulled out into the HTTP response when the content is
> served by an http server and then checked by the client, but I
> understand that this would be a tooling headache.)

Yep. We thought about it but agree that it gets too complex too
quickly. Maybe with a bit of experience...

> (I don't understand why you want to separate the 'optional' features
> into a separate spec. This made me miss the ct= feature entirely at
> first.)

The intent is to put stuff there if we're not sure if its
ready or needed everywhere. ct= is definitely the main
candidate feature for moving to the "base" spec though.
Some other things (e.g. handling dynamic content) are
way more experimental and should definitely not move
and maybe need more time before we want them in an RFC.

If all this does get popular then the RFCs can be revised later
based on experience in any case. (If nobody cares, then it
won't be a problem:-) So I don't think where things are
documented now is hugely important in the long term.

> I think the documentation should say that the hash and content type
> together identify the resource, 

Well, IMO the hash identifies the resource (if name-data integrity
is verified) so I don't think I agree that the content type is
key for identification. It is for interpretation (or whatever
the right term there is, maybe rendering?) and probably other
things.

> and that because the content can be
> verified, the resource can be sought (using the .well-known path, or
> any other path for that matter) from any source that the client thinks
> might have it. 

Absolutely. That's our primary motivation for all this.

> The primary and alternate domain name(s), and 'wrapped'
> URLs, are only provided as hints.

Yes.

> 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.

Cheers,
Stephen.


> 
> Jonathan
> 
> 


[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Fedora Users]