Re: [yang-doctors] Review of draft-ietf-rtgwg-yang-key-chain-13

Ladislav Lhotka <lhotka@nic.cz> Mon, 20 February 2017 12:57 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9CFF812946E; Mon, 20 Feb 2017 04:57:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.001
X-Spam-Level:
X-Spam-Status: No, score=-7.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ygnOykqTEZ5z; Mon, 20 Feb 2017 04:57:48 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F276B12941D; Mon, 20 Feb 2017 04:57:47 -0800 (PST)
Received: from [IPv6:2001:718:1a02:1:fd80:c4c7:82a3:3655] (unknown [IPv6:2001:718:1a02:1:fd80:c4c7:82a3:3655]) by mail.nic.cz (Postfix) with ESMTPSA id 834FA61E45; Mon, 20 Feb 2017 13:57:46 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1487595466; bh=dwxVewM09ncLgYi5sSMWOCU+MP21JjAv1zh4yZP1gWI=; h=From:Date:To; b=qXrR4J66xG6vmSq5MfgonXHxctfIEPu2UjcWxRnWYS2hlv+1gybJnNS0JRE8SlLdj Xua7Xg+9B4P2JKub5L4GLBTVwRJ0REXpyCNigLDoim8wD4V+eerbf9TSqtYfU6l7U0 6UBRkP1BMls2VXe0Hrc2ByqFc+3t4nMfw7xE65RM=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <D4D04FCC.9CD7D%acee@cisco.com>
Date: Mon, 20 Feb 2017 13:58:09 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <04FB4163-BBA3-44ED-8B9F-E1F2A5F49205@nic.cz>
References: <148759139687.25976.6374643432126541498.idtracker@ietfa.amsl.com> <D4D04FCC.9CD7D%acee@cisco.com>
To: "Acee Lindem (acee)" <acee@cisco.com>
X-Mailer: Apple Mail (2.3259)
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/L-Gws063mxP72ibC4owtvAdlHr4>
Cc: Benoit Claise <yang-doctors@ietf.org>, "draft-ietf-rtgwg-yang-key-chain.all@ietf.org" <draft-ietf-rtgwg-yang-key-chain.all@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>, "rtgwg@ietf.org" <rtgwg@ietf.org>
Subject: Re: [yang-doctors] Review of draft-ietf-rtgwg-yang-key-chain-13
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 20 Feb 2017 12:57:49 -0000

> On 20 Feb 2017, at 13:53, Acee Lindem (acee) <acee@cisco.com> wrote:
> 
> Hi Lada, 
> I believe we¹ve addressed all of these other than adding an explicit leaf
> for key direction (which was discussed on the RTGWG list). The current
> version is https://www.ietf.org/id/draft-ietf-rtgwg-yang-key-chain-15.txt

Yes, I saw it, looks good.

Thanks, Lada

> 
> Thanks,
> Acee 
> 
> On 2/20/17, 6:49 AM, "Ladislav Lhotka" <lhotka@nic.cz> wrote:
> 
>> Reviewer: Ladislav Lhotka
>> Review result: Almost Ready
>> 
>> # General Comments
>> 
>> ## Cryptographic algorithm types
>> 
>> What is the reason for representing these as a YANG choice with empty
>> leaves? I think it would be more natural to use a single leaf, either
>> an enumeration or (if extensibility is important) identityref.
>> 
>> ## Reusability
>> 
>> The module defines key-chain as a grouping with the aim of making it
>> reusable in other modules. However, this approach has known problems
>> that are discussed in draft-ietf-netmod-schema-mount. I am not sure
>> how relevant they are in this case but, for one, the "key-chain-ref"
>> type is not applicable if the "key-chain" grouping is used in another
>> module. An alternative is not to use the grouping and rely on schema
>> mount.
>> 
>> ## Key string style
>> 
>> The difference between ASCII and hexadecimal formats of key strings
>> should be explained. I understand that the latter is a hash of the key
>> and, if so, I'd suggest to include "hexadecimal-string" also in state
>> data.
>> 
>> Also, I believe that storing clear-text key in configuration is
>> insecure and Security Considerations should warn against it.
>> 
>> ## Example
>> 
>> It might be useful to include an appendix with example instance data.
>> 
>> # Specific comments
>> 
>> ## Sec. 2
>> 
>> -   paragraph 2: s/where ever/wherever/
>> 
>> ## Sec. 3
>> 
>> -   paragraph 1: replace both Key-Id a Key-ID with Key ID (the latter
>> is used in other places of the
>>   text).
>> -   paragraph 2: the suggested way of supporting asymmetric keys looks
>> like a hack, I would suggest
>>   a more explicit representation, e.g. using a choice.
>> 
>> ## Sec. 4
>> 
>> -   The module has inconsistent indentation: up to "grouping
>> crypto-algorithm-types", top-level
>>   statements are indented with four spaces, the subsequent ones with
>> five spaces.
>> 
>> ## Sec. 6
>> 
>> -   The statement "Given that the key chains themselves are sensitive
>> data, it is RECOMMENDED
>>   that the NETCONF communication channel be encrypted." is
>> misleading because RFC 6241
>>   requires that transport protocols for NETCONF guarantee
>> confidentiality (and RFC 8040 does the
>>   same for RESTCONF).
>> 
>> 
> 

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