Re: [yang-doctors] Yangdoctors last call review of draft-ietf-netconf-keystore-02

Kent Watsen <kwatsen@juniper.net> Wed, 19 July 2017 21:07 UTC

Return-Path: <kwatsen@juniper.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 A39D812F287; Wed, 19 Jul 2017 14:07:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.801
X-Spam-Level:
X-Spam-Status: No, score=-4.801 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=juniper.net
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 DGrFip6_9Mdd; Wed, 19 Jul 2017 14:07:05 -0700 (PDT)
Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0116.outbound.protection.outlook.com [104.47.37.116]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 957BB129AB2; Wed, 19 Jul 2017 14:07:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=F5CKawAGFWDy3eHj3DHGh8qHYkCC1GmTH5XPHvK2Bfc=; b=BrPuvBg/cdO4F8RcTHAmxlPp2fmqEtNgd0gYiP1WF1zhQ0jK0255cpiqy+vp2Kt2GcwAc2JaOxxraOGAR3EckesRJNk//wIx72azDWjg/vIsXUiUD2WsB2hTD/CmsBF2BTDKH+718vYv0LvHkwJA29mGy5SrT1pD0V/1vTKNbeY=
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com (10.160.117.151) by BN3PR0501MB1411.namprd05.prod.outlook.com (10.160.117.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.4; Wed, 19 Jul 2017 21:06:59 +0000
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) by BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) with mapi id 15.01.1282.011; Wed, 19 Jul 2017 21:06:59 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
CC: "draft-ietf-netconf-keystore.all@ietf.org" <draft-ietf-netconf-keystore.all@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>
Thread-Topic: Yangdoctors last call review of draft-ietf-netconf-keystore-02
Thread-Index: AQHS/tjFB6LSB6mMA0ixt1H16U9uU6Jbyb8A
Date: Wed, 19 Jul 2017 21:06:59 +0000
Message-ID: <B1AC6895-5681-48F8-B7E7-418118120B4E@juniper.net>
References: <150028100874.32703.14161403810529927281@ietfa.amsl.com>
In-Reply-To: <150028100874.32703.14161403810529927281@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
authentication-results: jacobs-university.de; dkim=none (message not signed) header.d=none;jacobs-university.de; dmarc=none action=none header.from=juniper.net;
x-originating-ip: [193.110.55.10]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BN3PR0501MB1411; 7:+qcJojSOyvsg7SV4yOXkEjZP7PMQABNAi5tqtFrQJP8i65BnbSWFPTu5+sXR4WpCpGfc4op754aKcVRynQyTf8QMLhXn63RylNvq0xp27DglvISqb5di68b1NgUWOe/cbIPqJo7wKyNgsekSQrGEvOPrjLCy4PdCLF/OQNZNP6mWHuU75qOCAc7scMM5n7zaDEb9QEd7aGR/69wOs8zjogv/t9LDM8JFc5likx8uKW/bWFBfm9qyZa5PV5RkC3eitSFqDd1RW+6oNt6X67uUhWW7QuPPXuMKu7jyTYdJiSQ0w2rCon5k7TeH0YG24wr3iDie2eR+ROcs7KSwad/PQsECstHb/BuCki9ndTtOmWSycrVAyWEUmlsD7v0kDOY9wiolS3XtTYw+gbrKaWRwVACT3/sJDE/Miv7ISBnryx5/0v6p7rpOEP/dPZCxOuB3JeMw4tRrhD4wdTU+0w+9FKYIbAkY3RYVHM8owQxP8yJJdcSeLT6zxosI8OZYczJL6uUgQfSmYpmOe5RSWcRxwBF6HR4cU5wYdmqhc8egzKKD0Q2uIWAvh4SuIWjJ8YNDX4PaO1pEmwUVRbO9Nylu3gOZMC7iVsk3Sto9JurwAnV8ud1PdZthsiQ4c6UEEXROgs/SiH7fqkB73xVcgZZfGwJYOKHazpEOy3Zx/Yx6jI3pL5c2tOr1HW7lWvociK6UtfelivGnU60gdfinjLUyxbiCWINjBNFBdTm8fLEg0YOoMiK7K+ESsra7Qc8CerdVWUYtaxQcpH3HI0AQyyE2h4Fz6ROhtaEPEb2EluKPNDw=
x-ms-office365-filtering-correlation-id: 982ac265-fd0e-479a-587e-08d4ceea1890
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN3PR0501MB1411;
x-ms-traffictypediagnostic: BN3PR0501MB1411:
x-exchange-antispam-report-test: UriScan:(278178393323532)(158342451672863)(133145235818549)(236129657087228)(192374486261705)(131327999870524)(48057245064654)(148574349560750)(167848164394848)(247924648384137);
x-microsoft-antispam-prvs: <BN3PR0501MB14115865224A8896FEE4490BA5A60@BN3PR0501MB1411.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0501MB1411; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0501MB1411;
x-forefront-prvs: 0373D94D15
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39850400002)(39450400003)(39400400002)(39840400002)(39410400002)(52314003)(51444003)(189998001)(8676002)(551544002)(478600001)(561944003)(4001350100001)(305945005)(53936002)(2501003)(81166006)(33656002)(38730400002)(25786009)(6486002)(86362001)(8936002)(77096006)(230783001)(5660300001)(50986999)(54356999)(2906002)(76176999)(6436002)(4326008)(14454004)(229853002)(3660700001)(66066001)(83506001)(82746002)(6506006)(3846002)(6246003)(54906002)(99286003)(6512007)(102836003)(6116002)(3280700002)(36756003)(2950100002)(2900100001)(83716003)(7736002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0501MB1411; H:BN3PR0501MB1442.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <B03E6B73D1A7D1439A7D211625E15082@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2017 21:06:59.4770 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0501MB1411
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/EVUNm_Upu8Cwd43W1yrMR_bmBb4>
Subject: Re: [yang-doctors] Yangdoctors last call review of draft-ietf-netconf-keystore-02
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 19 Jul 2017 21:07:09 -0000

Hi Juergen,

Thanks for your review.  Below are my responses to your comments.

PS: why is ietf@ietf.org in the CC?

Kent

--

Reviewer: Jürgen Schönwälder
Review result: Not Ready

draft-ietf-netconf-keystore-02

- s/YANG data module/YANG module/ or s/YANG data module/YANG model/

<KENT> Fixed.

- Find a better phrase for 'hold onto'. Does the module allow
  configuration of trusted private keys and certificates? If so, say
  so.

<KENT> Done.

- What is 'extends special consideration'?

<KENT> reworded.

- What is a 'semi-configurable' list?

<KENT> fixed (per Martin's comment earlier)

- s/is MAY/MAY/ (does this may need to be allcaps?)

<KENT> previously fixed and case-lowered.

- s/an optional attributes/optional attributes/

<KENT> fixed.


- the module seems to use actions but the surrounding text talks about rpcs

<KENT> fixed.

- does the generate-private-key really take a key length as a parameter
  as promised in section 2?

<KENT> no it doesn't (anymore). fixed.


- section 2.2. talks about 'examples above' but there are none 'above'

<KENT> fixed.


- Have the examples been validated? Is rsa1024 a valid identityref
  value?

<KENT> Just did, found no issues.



- There are a number of binary fields where you show explanatory text
  in the examples instead of encoded data. Is this always clear?

  <private-key>...</private-key> <!-- elipsis placeholder for a base64 encoded key -->

<KENT> This issue has been raised by others as well.  I used to
have full base64 values, but it made the examples very difficult
to read.  Hmmm, I like your suggestion, but the resulting line
is much longer than allowed.  I could line-wrap, but the result
looks worse.  Any other suggestions?


- I am not sure I understand trusted-host-keys. On systems that have
  multiple user accounts, you usually have a per account list of
  trusted host keys in addition to a global system wide list. Perhaps
  make it clear that this models the global known hosts list only?

<KENT> it's a list of lists, so there can be many different
sets a host-keys defined, with each application/use pointing
to its own entry.  The ietf-ssh-client module's grouping has
a leafref to a specific entry.  FWIW, this grouping is
used by ietf-netconf-client module.  At the moment, there
no other uses of this grouping.  I think that you may be
getting confused between the key the server presents (the
host-key) versus the key user presents.
.


- Is it helpful that some examples use XML / NETCONF while
  others use JSON / RESTCONF or is this possibly confusing?
  If you include JSON examples, do you not need to reference
  RFC 7951?

<KENT> I thought there was a criticism a while back that
drafts should show balance in their examples?  In the 
meanwhile, I reworded the sentence to look more like the
other two examples and, in doing so, removed the "JSON
encoding" string altogether.


- s/(c) 2014/(c) 2017/

<KENT> fixed, in all my drafts.


- reference statement of the revision statement seems to have the
  wrong title

<KENT> fixed.

- Should the document title be aligned with other YANG module
  definitions, so it is easier to spot it?

<KENT> I don't understand, what do you mean?


- Since crypto algorithms come and go, is it reasonable to have the
  identities defined in a rather static RFC? Would an IANA maintained
  identity module perhaps make more sense?

<KENT> Unsure, but I wouldn't suspect needing to make that
kind of update for a long time.  If we were to define a 
module for algorithm identities, it might lead to us wanting
to define every algorithm (not just public-key algs), which
could take some time...


- Oh, I now see that the key length is embedded in the algorithm
  identity. Perhaps clarify this earlier, see my confused comments
  above. Anyway, I think this makes the need for an IANA maintained
  module even stronger.

<KENT> yes, but your comment before was valid.  I don't see why
this makes a stronger case though...


- "If additional algorithms are needed, they MAY be augmented in by
  another module" seems confusing; I think all that is needed is to
  define a new identity, right? If so, there is no augmentation in the
  YANG sense.

<KENT> Fixed.


- The description of the keystore container talks about passwords and
  I am not sure this is correct. I am also not sure the terms 'active
  material' and 'passive material' really help.

<KENT> agreed. Fixed.


- The description of keys says "A list of keys maintained by the
  keystore.". I think it would be more helpful to say "A list of
  public-private key pairs maintained by the keystore." Every list
  element seems to have two keys.

<KENT> Fixed.

- What about the comment in the definition of algorithm-identifier?
  Looks like an open issue or something that should be resolved before
  publishing this document.

<KENT> comment removed per Martin's review.

- Add a reference clause to the definition of private-key? Do we
  really need the INACCESSIBLE enum and the union? There is another
  open question right below the private-key definition...

<KENT> added.

- Add a reference clause to the definition of public-key?

<KENT> added.

- Why do certificate names have to be unique across all keys?

<KENT> because otherwise leafrefs might be ambiguous, right?


- Since the certs of a key do not contain a signature, where are signed
  certificates stored or are they outside the scope of the model?

<KENT> I'm confused, certificates are signed structures already...


- All references to RFCs and I-Ds in description clauses must resolve
  to regular citations somewhere and references in the references
  section.

<KENT> Fixed.


- Is there any text needed to explain what happens if actions can't be
  carried out, e.g., the algorithm identity is not supported? Can a
  client actually learn which algorithm identities are supported or is
  the approach simply trial and error?

<KENT> If an action fails, then standard NC/RC error is returned.
There is no support to learn which algorithms a server supports,
but by supporting this module, the server must support all of
these algorithms.


- I am a bit concerned about the two list names 'trusted-certificates'
  and 'trusted certificate' which mean very different things and can
  be potentially confused. (The same for 'trusted-host-keys' and
  'trusted-host-key'.) [No, I do not have a good naming proposal that
  I like, perhaps some brainstorming helps.]

<KENT> okay, let's keep this one open.


- I am not sure what 'trusted certificate' here really means. What you
  are modeling is a set of sets of certificates. What such a set means
  depends on where this list is used. I am not sure what it means for
  a certificate in such a set to be 'trusted'.

<KENT> yes, the certs may be used by different modules for
different use-cases, but they'd always be trusted.  E.g.,
the certs preinstalled by a browser...


- What about the // rename to 'data' comment? I like it, renaming to
  list certificate { key name; leaf name; leaf data; } seems less
  confusing (and it is even shorter). Perhaps something along this
  line would be better (not sure I like certificate-set)

	 +--rw certificate-set* [name]
         |  +--rw name                   string
         |  +--rw description?           string
         |  +--rw certificate* [name]
         |     +--rw name    string
         |     +--rw data?   binary


<KENT> "set" doesn't sound too bad - dunno.  Regarding moving
"data", see the tail-end of the email I sent on July 11.


- Why is the certificate (data) leaf in trusted-certificate not
  mandatory? Does it make sense to have list elements where there
  is only a name?

<KENT> I was supposed to be mandatory.  Fixed.


- I am wondering whether it is really a good idea to handle both X509
  keys and certificates as well as some SSH host keys in this document.
  Perhaps it is better to really split things. Also think about devices
  that only do SSH or only to TLS.

<KENT> I believe that it is correct for the keystore to
contain all these things, and I think it's most readable
for them all to be defined in this document.  What do
others think?


- I am not sure I fully understood the call home statement in the
  description of trusted-host-key. This probably needs more or better
  explanation.

<KENT> it was dumb, I removed the whole paragraph.


- Are SSH implementation encoding keys in ASN.1/DER? I doubt this very
  much. Perhaps this SSH stuff should be moved to a separate I-D since
  I believe this needs more work.

<KENT> Good point.  Just now realizing that ietf-system's
'authorized-key' has a workable definition.  I just switched
to using it.



- You cite RFC 6020 (YANG 1) but you use actions which were only added
  in YANG 1.1. I think you should only cite YANG 1.1 (RFC 7950).
 
<KENT> Fixed.


- The prefix is 'ks' and not 'kc' as stated in the IANA considerations
  section.

<KENT> holdover from when draft was called "keychain".  Fixed.


- Security considerations talk about 'RPC operations' but the data
  model actually uses actions. Perhaps simply talk about 'operations'.

<KENT> Fixed.  (Benoit should update his template as well)