Re: [netmod] Last Call: draft-schoenw-netmod-rfc6021-bis-01 (20130204)

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Mon, 21 January 2013 15:29 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2AB6421F8581 for <netmod@ietfa.amsl.com>; Mon, 21 Jan 2013 07:29:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -103.048
X-Spam-Level:
X-Spam-Status: No, score=-103.048 tagged_above=-999 required=5 tests=[AWL=0.201, BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_LOW=-1, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id reqOawoDqU0V for <netmod@ietfa.amsl.com>; Mon, 21 Jan 2013 07:29:06 -0800 (PST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) by ietfa.amsl.com (Postfix) with ESMTP id 24A3E21F854C for <netmod@ietf.org>; Mon, 21 Jan 2013 07:29:06 -0800 (PST)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id 5DBBE20BD5; Mon, 21 Jan 2013 16:29:05 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id r1FPfFLx6Nb6; Mon, 21 Jan 2013 16:29:05 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id CB86420733; Mon, 21 Jan 2013 16:29:04 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 665BC2417CBA; Mon, 21 Jan 2013 16:29:07 +0100 (CET)
Date: Mon, 21 Jan 2013 16:29:06 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Ladislav Lhotka <lhotka@nic.cz>
Message-ID: <20130121152906.GA41189@elstar.local>
Mail-Followup-To: Ladislav Lhotka <lhotka@nic.cz>, netmod@ietf.org
References: <20130119011641.GK11206@nsn.com> <m2622qk6lw.fsf@nic.cz> <20130121133952.GA40864@elstar.local> <0CE6FBBB-5019-4647-BC5F-58E6A6AE5CF5@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <0CE6FBBB-5019-4647-BC5F-58E6A6AE5CF5@nic.cz>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: netmod@ietf.org
Subject: Re: [netmod] Last Call: draft-schoenw-netmod-rfc6021-bis-01 (20130204)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/netmod>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Jan 2013 15:29:07 -0000

On Mon, Jan 21, 2013 at 03:51:06PM +0100, Ladislav Lhotka wrote:
> 
> On Jan 21, 2013, at 2:39 PM, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> 
> > On Mon, Jan 21, 2013 at 02:28:43PM +0100, Ladislav Lhotka wrote:
> >> Hi,
> >> 
> >> I support moving this document forward, with two comments:
> >> 
> >> 1. The second pattern for "yang-identifier" type can be slightly optimized:
> >> 
> >> OLD
> >> 
> >>    pattern '.|..|[^xX].*|.[^mM].*|..[^lL].*';
> >> 
> >> NEW
> >> 
> >>    pattern '..?|[^xX].*|.[^mM].*|..[^lL].*';
> > 
> > Not sure what the metric is that is optimized here or how to choose
> > between the two.
> 
> The metric is string length and the number of alternatives.

Well...
 
> > 
> >> 2. It would be safer to have types 'ipv[46]-address' (meaning no zone) and 'ipv[46]-address-with-zone' rather than 'ipv[46]-address' and 'ipv[46]-address-no-zone'. I know, it's an incompatible change, but I suspect that many implementers will not bother to look up the definition when seeing a type like 'ipv4-address' and assume a plain IPv4 address in that place. Such a mistake can easily create a security hole. The name 'ipv[46]-address-with-zone' makes the optional presence of a zone index explicit and eliminates this potential trap. Besides, it would also better fit the naming scheme of corresponding textual conventions in RFC 4001.
> > 
> > It is still an incompatible change. We can't change 'ipv[46]-address'.
> > We can deprecate it and provide a replacement.
> 
> This is not an option in this case - we can't deprecate a typedef such as "ipv4-address" and introduce a new one with the same name. 

I did not say same name...
 
> > 
> > Personally, I do not think this is needed or desirable. The IPv6 WG
> > just reached concensus to allow zone indexes in URIs and there was no
> > a concern that this creates a security hole as far as I understand.
> 
> In URIs, IP addresses (with or without zone indices) are enclosed in brackets. In our case, the zone index is an arbitrarily long suffix without any delimiters.

How is that different?

> > What might happen is that people forget to implement support for
> > addresses including a zoneid. That said, for stuff sitting above the
> > IP layer, having zones included 'by default' is in my view a feature
> > and not a bug.
> 
> OK, let me just mention that both I and Martin already fell into that trap, and so did the authors of the dnsccm module, I think:
> 
> http://dnsccm.org/projects/dnsccm/repository/entry/trunk/dnsccm/modules/dnsccm/dnsccm.in.yang
> 

I can't judge where they did fall into a trap. Perhaps they got things
right - I really can't judge.

Anyway, please make an actionable concrete proposal if you want. I do
not think we are going to break YANG update rules for this. Hence your
initial proposal does not seem actionable.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>