Re: [yang-doctors] [Last-Call] Yangdoctors last call review of draft-ietf-netconf-trust-anchors-13

Kent Watsen <kent+ietf@watsen.net> Tue, 20 April 2021 01:11 UTC

Return-Path: <01000178ecd4d350-f50aba60-953e-4803-abc7-acc14adc7355-000000@amazonses.watsen.net>
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 6B3903A0C04; Mon, 19 Apr 2021 18:11:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.002
X-Spam-Level:
X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
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 1Jhfip6ve4U2; Mon, 19 Apr 2021 18:11:15 -0700 (PDT)
Received: from a48-93.smtp-out.amazonses.com (a48-93.smtp-out.amazonses.com [54.240.48.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92FBB3A0C03; Mon, 19 Apr 2021 18:11:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1618881074; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:Feedback-ID; bh=xN6SlisJwPhDj8GCc3RTlhDkCCTnRHJEFx0a3F38IQk=; b=Gdrr6YJZ7TaM+v5VV2mkLSbuK5sbufGYuvr05YH1D7U0bcCdi0g4VeKgp6czt7Fi gWy489jCV+jFRdC/eEMqA7RKkFBJH54DAG2E9a7srMzINFr/6Sc7PzYtZNsDjNJ0dli A+rME6kdqoJkCIx274n39OEZdbeTjW5OCJ/mw34A=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\))
From: Kent Watsen <kent+ietf@watsen.net>
In-Reply-To: <20210416121527.z7z42ptkhxc734vy@anna.jacobs.jacobs-university.de>
Date: Tue, 20 Apr 2021 01:11:14 +0000
Cc: YANG Doctors <yang-doctors@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-ID: <01000178ecd4d350-f50aba60-953e-4803-abc7-acc14adc7355-000000@email.amazonses.com>
References: <161047687248.13931.17900123352005904827@ietfa.amsl.com> <010001778e67c4e0-c179290b-6eba-46df-b17f-ec474c44783c-000000@email.amazonses.com> <20210416121527.z7z42ptkhxc734vy@anna.jacobs.jacobs-university.de>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
X-Mailer: Apple Mail (2.3654.60.0.2.21)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2021.04.20-54.240.48.93
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/d6gMLP9PRYS1y_o4RaT0_32PKUY>
Subject: Re: [yang-doctors] [Last-Call] Yangdoctors last call review of draft-ietf-netconf-trust-anchors-13
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 20 Apr 2021 01:11:20 -0000

Hi Juergen,

Whittling out things resolved.

K.

>>> Reviewer: Jürgen Schönwälder
>>> Review result: Ready with Issues
>>> 
>>> The crypto modules aim at providing a flexible reusable infrastructure
>>> of groupings for modeling cryptographic keys and related concepts. The
>>> flexibility of the definitions provided of course comes with a certain
>>> amount of complexity.
>>> 
>>>> From a YANG perspective, draft-ietf-netconf-trust-anchors-13.txt is in
>>> a good and close to publish state (a couple of minor issues left).  I
>>> also tried to understand what is being modeled here and hence I also
>>> have some questions concerning the concepts modeled and I hope these
>>> are easy to answer/resolve as well.
>>> 
>>> - I have compiled the YANG modules using yanglint 0.16.105.
>>> 
>>> - The prefix 'ts' is rather short, the set of two letter prefixes is
>>> rather small limited. This comment also applies to the other
>>> documents, crypto-types uses 'ct. Perhaps this is not a problem
>>> since collisions can be handled but if we go for rather short
>>> prefixes, we will have to exercise the collision resolution. (I see
>>> that 'ct' has already been used by ietf-complex-types, RFC 6095.) A
>>> possible alternative could be to use sec-ct, sec-ts, sec-ks, ...).
>> 
>> Ugh (me, whenever a naming-discussion comes up ;)
>> 
>> <rant>I don’t know why prefixes are registered, as the prefix is defined at the top of each module.  The only value I see is not syntactic but rather for consistency, to aid human readability across disconnected sets of modules.</rant>
>> 
>> Prefixing the prefix with “sec-“ may work for the trio of drafts you just reviewed, but it seems undesirable when getting to the client-server drafts, as they're more *protocol* oriented.  If “ks” and “ts” aren’t taken, then maybe we claim “first mover” advantage?  If not, then maybe “kstore” and “tstore” might be meaningful fallbacks?  Assuming we claim “first mover” advantage for “ks” and “ts”, then we just need to handle “ct”, which maybe could be “ctypes” or “cryptypes” or “ct2”?  So, 1) prefix the trio or 2) claim first-mover advantage on two and figure out something for “ct”?  …or maybe 3) keep “ct” also noting that a) “SHOULD NOT” is not a “MUST NOT” (in the text below), b) my “rant” might have some merit, and c) short and terse is nice (per your next comment).
>> 
> 
> I suggest you think over it and pick whatever you think seems to be a
> good solution. ;-)

I prefer to do nothing and push conflict resolution to the front.  I understand that this is against the SHOULD NOT at the end of RFC 8407 Section 4.2.  In this case, I feel that continuing to use “ct”, “ts” and “ts” is best.  If there were a convenient *good* alternative, I’d do it, but I don’t think there is, and it’s not worth trying to avoid a conflict with an “experimental” RFC from a decade ago that I’ve never heard of.


>>> - Is the feature truststore-supported really needed? Does the YANG
>>> library not already provide the information whether a module has
>>> been implemented or just imported to access type and grouping
>>> definitions?
>> 
>> This was discussed before.  The bottom of Section 2.1.4 says: "The reason for why the "truststore-grouping" exists separate from the protocol-accessible nodes definition is to enable instances of the truststore to be instantiated in other locations, as may be needed or desired by some modules.”.  Case in point, the MacOS “Keychain Access” utility maintains both system-level and user-level trust anchors.  [UPDATE: you had a similar comment in the keystore draft, which you self-resolved there and then said to ignore this comment.  Just the same, let’s ensure the drafts are clear.]
> 
> This explanation gives a reason why there are groupings. My question
> concerned the feature truststore-supported. Is the YANG library not
> already providing the information whether a module has been
> implemented or only used for getting access to definitions? In RFC
> 8525, you have a list of modules implemented and a list of modules
> used for import only. My question is does feature truststore-supported
> mean the same as the module shows up in the implemented module set in the YANG library?

Okay, I see.  Yes, the two things mean the same thing, but there is a need still, which is that “if-feature” statement expression cannot reference the conformance of a module in YL, which is compounded by the fact that how it is expressed differs from RFC 7895 and RFC 8525.


> I have looked through the diffs, looked all good to me.

Thanks.

K.