Re: [netconf] ietf crypto types - permanently hidden

Kent Watsen <kent@watsen.net> Fri, 03 May 2019 16:15 UTC

Return-Path: <0100016a7e7a9e54-d4987061-96d8-49f3-a2bf-36b98851b3a3-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 54D7C1200EF for <netconf@ietfa.amsl.com>; Fri, 3 May 2019 09:15:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 Tl8IJOwQ-nde for <netconf@ietfa.amsl.com>; Fri, 3 May 2019 09:15:27 -0700 (PDT)
Received: from a8-88.smtp-out.amazonses.com (a8-88.smtp-out.amazonses.com [54.240.8.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B71841200E3 for <netconf@ietf.org>; Fri, 3 May 2019 09:15:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1556900126; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=8lkZiGn2BZ0N/NBNiDe4bmH/S62GMLhKZGS8AJ10aVY=; b=EXMmbTMUPJbwJE31jBnroVkcwa/ORWQe4AoS+3bz7GABfyuTHhTArlKoftoY7Ich 7+ab0fnKGlzDPkrurIXaCcH9M/gqtU0ZjLy6an5j+tWVCRGB/77+kbQIRhjSonY/jNv HdL6IkuGGhaDbt0Cwsqk19Ve11jPAaQd/y8xY4Pg=
From: Kent Watsen <kent@watsen.net>
Message-ID: <0100016a7e7a9e54-d4987061-96d8-49f3-a2bf-36b98851b3a3-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_AC924030-FE1E-4EBD-A9C0-CAF5E0995508"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Date: Fri, 03 May 2019 16:15:26 +0000
In-Reply-To: <20190503.133743.1149689382943153005.mbj@tail-f.com>
Cc: rwilton@cisco.com, "netconf@ietf.org" <netconf@ietf.org>
To: Martin Bjorklund <mbj@tail-f.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>
X-Mailer: Apple Mail (2.3445.102.3)
X-SES-Outgoing: 2019.05.03-54.240.8.88
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/hunPfLAk4yq8BOOHVWWLklI9D5o>
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: Fri, 03 May 2019 16:15:29 -0000

>> (ii) The ability to program a client defined key pair in a private way
>> that is not visible in the configuration.  Have we considered a
>> solution that puts these into the configuration but has them encrypted
>> with a device specific public/private key pair.
> 
> I don't think so.  I'm not sure this itself solves the problem
> though.  FWIW, we have tailf-specific types that work like this.  They
> are similar to iana-crypt-hash in syntax and semantics, but they use
> encryption rather than hashing.


Encrypting "hidden" keys is a viable option that would enable such keys to appear in standard config and hence support the "document model" (backup/restore operations using, e.g., <copy-config>).  The only catch is that the restore-operation *only* works on the same device (or, more specifically, the same crypto-processor).  Still, this would help the scenario where the device needs to be restored after having its non-volatile memory reformatted or replaced.

I was also thinking about the relation to crypt-hash, but the scenarios is different in that the crypt-hash operation is idempotent; passing in a "$0$" prefixed password will always produce the same result.  In the "best practice" scenario, no private-key data is passed in, and just asking the device to generate a random key each time will give different results each time (not idempotent).


Kent // contributor