[netconf] truststore: merging the “ssh-public-key” and “raw-public-key” lists

Kent Watsen <kent+ietf@watsen.net> Wed, 19 February 2020 15:32 UTC

Return-Path: <010001705e140aa6-b386aaf0-12df-4cd2-87c9-c34641c5346d-000000@amazonses.watsen.net>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A268212081E for <netconf@ietfa.amsl.com>; Wed, 19 Feb 2020 07:32:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 1R9Gihsgn7_5 for <netconf@ietfa.amsl.com>; Wed, 19 Feb 2020 07:32:18 -0800 (PST)
Received: from a8-31.smtp-out.amazonses.com (a8-31.smtp-out.amazonses.com [54.240.8.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 23E46120880 for <netconf@ietf.org>; Wed, 19 Feb 2020 07:32:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1582126336; h=From:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Message-Id:Date:To:Feedback-ID; bh=w5NQ7lXkKNEYY4kqlvhr2vbUDF3rHeJELBtNRnO7Axk=; b=cP692YjvLLGMTjZh1hihMC+2hQdWAjS9zGzWA7GZsYrQSc8blS+dfZhbqQavo0yh bYA59NJmqNiKGMzP005V9Y8GLa/ci2p3tRyH4vedqiFml/34uJgu0Gk/DbMHxkMhvaC +xUyM8UtP/slfBzRTG8WHlTElzkre4h35AElNoTI=
From: Kent Watsen <kent+ietf@watsen.net>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Message-ID: <010001705e140aa6-b386aaf0-12df-4cd2-87c9-c34641c5346d-000000@email.amazonses.com>
Date: Wed, 19 Feb 2020 15:32:16 +0000
To: "netconf@ietf.org" <netconf@ietf.org>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.02.19-54.240.8.31
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/bYcm3NnH3ReaBcUJpTMKN8xfzOI>
Subject: [netconf] truststore: merging the “ssh-public-key” and “raw-public-key” lists
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Feb 2020 15:32:25 -0000

Slide 12 in my 106 presentation contained this snippet:

	module: ietf-truststore
	   +--rw truststore
	        +--rw certificates* [name] {x509-certificates}?
	         |     +-- …
	        +--rw ssh-host-keys* [name] {ssh-host-keys}?
	         |     +-- …
	         +--rw raw-public-keys* [name] {raw-public-keys}?
	               +-- ... 

The slide asked if the “ssh-public-key” and “raw-public-key” lists should be merged.  No comments were received during the meeting, so I said that it might require trying out, and folks can look forward to that discussion later….and here were are!

Looking at truststore's YANG, it turns out that the “ssh-public-key” and “raw-public-key” lists are *identical* with one exception, which is that each refines a common crypto-types grouping with a slightly different “must" expression regarding the “key-format".  Specifically, the ssh-public-key format must be “ct:ssh-public-key-format" and raw-public-key format must be “ct:subject-public-key-info-format”.

However, these "must” statements are low-value as already (at least in my local copy), the SSH and TLS client/server modules have the equivalent “must” expressions.  This being the case, it appears that these two lists should be merged, with the resulting trees-diagram being:

	module: ietf-truststore
	   +--rw truststore
	        +--rw certificates* [name] {x509-certificates}?
	         |     +-- …
	         +--rw public-keys* [name] {public-keys}?
	               +-- … 

In my view, the optics on this are better, as having protocol-specific entries in the truststore (e.g., ssh-host-keys) always seemed wrong to me...

Any objection to this change being made?


PS: this is the last post-106 item I needed to address, in case you’re wondering how many more might be coming...

Kent // contributor