Re: [netconf] ietf crypto types - permanently hidden

"Rob Wilton (rwilton)" <rwilton@cisco.com> Tue, 07 May 2019 11:36 UTC

Return-Path: <rwilton@cisco.com>
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 03C11120117 for <netconf@ietfa.amsl.com>; Tue, 7 May 2019 04:36:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.509
X-Spam-Level:
X-Spam-Status: No, score=-14.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 kP1JI9Kg_j7K for <netconf@ietfa.amsl.com>; Tue, 7 May 2019 04:36:46 -0700 (PDT)
Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A008212010C for <netconf@ietf.org>; Tue, 7 May 2019 04:36:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=13376; q=dns/txt; s=iport; t=1557229006; x=1558438606; h=from:to:subject:date:message-id:references:in-reply-to: mime-version; bh=zWSq/9+X0NBP2Oi1tou3SDTHBSaTxqpvQGjrYpBfnJU=; b=WHtjcftV2Q2ZHu/V16xXZG/gQ97f3RPhrRq3sWxjdXRS5qvA7mpVL2E/ HbNJEzOMxl9jCrGeWbg8HEHZ3NVu4FzQX8OAI7wRU8Uvsr4VSfwsBD/eo hgs9fkHW6f4jD7TDA8kRH1MvReR0G9l5nrHIYLWXQCftK8wQmaBB/7gBh M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AEAACNbdFc/5hdJa1kGgEBAQEBAgEBAQEHAgEBAQGBUQUBAQEBCwGBDoECaYEEKAqMIo0IkleFe4F7DgEBhG0CghYjNAkOAQMBAQQBAQIBAm0ohUoBAQEBAycGXAIBCBEEAQEvMh0IAgQBEggTgwiBHW2vBDOKM4EyAYoKgSYdF4FAP4QjPoQAhiYEkiOVHgkCggmSRCOCEJNGg3CIMYEhk1QCERWBMB84gVZwFYMnkFFBMY9qK4EEgSEBAQ
X-IronPort-AV: E=Sophos;i="5.60,441,1549929600"; d="scan'208,217";a="270353962"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 07 May 2019 11:36:38 +0000
Received: from XCH-RCD-010.cisco.com (xch-rcd-010.cisco.com [173.37.102.20]) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTPS id x47BabHa007429 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 7 May 2019 11:36:38 GMT
Received: from xch-rcd-007.cisco.com (173.37.102.17) by XCH-RCD-010.cisco.com (173.37.102.20) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 7 May 2019 06:36:36 -0500
Received: from xch-rcd-007.cisco.com ([173.37.102.17]) by XCH-RCD-007.cisco.com ([173.37.102.17]) with mapi id 15.00.1473.003; Tue, 7 May 2019 06:36:36 -0500
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Kent Watsen <kent+ietf@watsen.net>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] ietf crypto types - permanently hidden
Thread-Index: AdTf8DCbvspujhISQkyURJOX9ReFpAL4+PiAAAVM54ADt02zAAAGzCgAAAQfJ4AABQvugADqhRSAAAgkE4AAKD/bgAABK6oAAAGYSwAABxXrgAA8jwUAAA4ykpAAOGfLgAAGk8WgAAOK8oAACbL7AAAASZ0AALNATcA=
Date: Tue, 07 May 2019 11:36:36 +0000
Message-ID: <e6930b6e52a642bda9f1bd76731ce9c3@XCH-RCD-007.cisco.com>
References: <e30aa60f31ba40e8abc9cfaeffad7802@XCH-RCD-007.cisco.com> <20190503.084757.791827158808672980.mbj@tail-f.com> <3208a877354745fa85188b81a3d8aa24@XCH-RCD-007.cisco.com> <20190503.133743.1149689382943153005.mbj@tail-f.com> <0100016a7e7a9e54-d4987061-96d8-49f3-a2bf-36b98851b3a3-000000@email.amazonses.com> <0100016a7e822689-e6fdbdbe-ba84-43e1-aefe-47196fe692e3-000000@email.amazonses.com>
In-Reply-To: <0100016a7e822689-e6fdbdbe-ba84-43e1-aefe-47196fe692e3-000000@email.amazonses.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.63.23.60]
Content-Type: multipart/alternative; boundary="_000_e6930b6e52a642bda9f1bd76731ce9c3XCHRCD007ciscocom_"
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.37.102.20, xch-rcd-010.cisco.com
X-Outbound-Node: rcdn-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/w1s4XBjRfBc00XYYsVg9yYwOHIE>
Subject: Re: [netconf] ietf crypto types - permanently hidden
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: Tue, 07 May 2019 11:36:49 -0000

Hi Kent,

The problem that I have with <generate-key> generating configuration directly in <running> is that <running> on the device is now different from what the management system thinks should be in <running> on the device.

I.e. it breaks the architectural simplicity that it is only the client that controls what goes into in <running>, e.g. perhaps that can be summarized by this flow:

"Update client's desired    ->   "Push to
config"                         <running>"
          ^                        |
          |                        \/
"Client notified of         <-   "Apply config,
changes in <operational>"       <operational> updated"


However, I would not be opposed to allowing <generate-key> create configuration that is persisted separately from <running> and injected into <intended> (e.g. merged with <running>), hence allowing leaf-refs in config validation to work as expected.  I think that this would allow device reboot to work as expected.

If the clients would like to see the keys in the configuration then they can monitor <operational> (or <intended>), and then add the keys, either in raw form, or encrypted in some way.  But I still think that it is architecturally cleaner if it is always the client that updates the <running> configuration and never the device.

Thanks,
Rob



From: netconf <netconf-bounces@ietf.org> On Behalf Of Kent Watsen
Sent: 03 May 2019 17:24
To: netconf@ietf.org
Subject: Re: [netconf] ietf crypto types - permanently hidden

I had an idea last night that might inch us closer to a solution.

Essentially, the generate/install-key operations always populate <operational>, even for keys that are not-hidden, but then a follow-up operation (something like <copy-config>) replicates the not-hidden key in <operational> to <running>.    Two options:

1) A regular-access admin executes the actions to generate the key, get a CSR, configure a resulting signed certificate, etc. and then, as a second step later in time, a special-access admin replicates the key to <running> (perhaps using standard <get-confg> and <edit-config>), so that it can be included in a standard backup and restored to *any* device (since this key is "not-hidden", it isn't encrypted with a device-specific key and hence can be migrated).

2) A regular-access admin executes the actions to generate the key, get a CSR, configure a resulting signed certificate, etc. and then, as a second step (ideally immediately after), the regular-access admin executes a command like <copy-config>, but rather than copying the entire datastore, it just copies a subtree.

Neither option seems great.  #1 is unappealing being it necessitates coordination between clients.  #2 is unappealing because defining a generic operation for this special case seems too much.

IMO, allowing <generate-key> to create the configuration directly is the only client-friendly answer.


Kent // contributor