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

Ladislav Lhotka <lhotka@nic.cz> Mon, 21 January 2013 15:40 UTC

Return-Path: <lhotka@nic.cz>
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 303A921F8735 for <netmod@ietfa.amsl.com>; Mon, 21 Jan 2013 07:40:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.308
X-Spam-Level:
X-Spam-Status: No, score=-1.308 tagged_above=-999 required=5 tests=[AWL=0.691, BAYES_00=-2.599, J_CHICKENPOX_23=0.6]
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 6n+aYETlnU0T for <netmod@ietfa.amsl.com>; Mon, 21 Jan 2013 07:40:47 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) by ietfa.amsl.com (Postfix) with ESMTP id 19FEC21F8726 for <netmod@ietf.org>; Mon, 21 Jan 2013 07:40:47 -0800 (PST)
Received: from [172.29.2.201] (nat-5.bravonet.cz [77.48.224.5]) by mail.nic.cz (Postfix) with ESMTPSA id 61D0F13FC96; Mon, 21 Jan 2013 16:40:46 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nic.cz; s=default; t=1358782846; bh=TUMYwoNZIuJ5FbufrPTsOC0uJQFtNwSidk2x57FLD1w=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=KcylnptAzRRdJDt61T8PvYlrHyGPU4JG1pnPxljeOBuoTt+62EuDuOxlCrKfVX+Re I8r22C1MwNZG2n/ZzhKU1TdbtL+q93UMYTWZDBw7jImmNxIX6VvraiUyzNmg491GSB MuhXzzHuNwBZRAC5ltoKmcGctIXIatV7LKtV5SgE=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <20130121152906.GA41189@elstar.local>
Date: Mon, 21 Jan 2013 16:40:36 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <55915B4B-DD86-4DB8-899B-362CA52CE0CD@nic.cz>
References: <20130119011641.GK11206@nsn.com> <m2622qk6lw.fsf@nic.cz> <20130121133952.GA40864@elstar.local> <0CE6FBBB-5019-4647-BC5F-58E6A6AE5CF5@nic.cz> <20130121152906.GA41189@elstar.local>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
X-Mailer: Apple Mail (2.1499)
X-Virus-Scanned: clamav-milter 0.96.5 at mail
X-Virus-Status: Clean
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
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:40:48 -0000

On Jan 21, 2013, at 4:29 PM, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:

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

If there is nobody else who thinks it might be a problem, let's keep the current typedefs.

Lada

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

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C