Re: [netmod] RFC7952 annotation to identify leaf encryption/hashing format

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Mon, 22 May 2017 21:56 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 831FC126E01 for <netmod@ietfa.amsl.com>; Mon, 22 May 2017 14:56:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 zEqeNihkXpVU for <netmod@ietfa.amsl.com>; Mon, 22 May 2017 14:56:17 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0EF0B126D85 for <netmod@ietf.org>; Mon, 22 May 2017 14:56:17 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id D5A2F4D9; Mon, 22 May 2017 23:56:15 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id dGZSS8r5b4bq; Mon, 22 May 2017 23:56:15 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Mon, 22 May 2017 23:56:15 +0200 (CEST)
Received: from localhost (demetrius1.jacobs-university.de [212.201.44.46]) by hermes.jacobs-university.de (Postfix) with ESMTP id 8F80320063; Mon, 22 May 2017 23:56:15 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius1.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id PcHp57rGqvJH; Mon, 22 May 2017 23:56:15 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 31E3E20062; Mon, 22 May 2017 23:56:14 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id C16E53F51A2D; Mon, 22 May 2017 23:56:13 +0200 (CEST)
Date: Mon, 22 May 2017 23:56:13 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20170522215613.GA4271@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <HE1PR07MB0843F3616FA7398A29599A749BF80@HE1PR07MB0843.eurprd07.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <HE1PR07MB0843F3616FA7398A29599A749BF80@HE1PR07MB0843.eurprd07.prod.outlook.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/y_RhGdNzxhkOAFBIQ47Ss2tE_vo>
Subject: Re: [netmod] RFC7952 annotation to identify leaf encryption/hashing format
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 May 2017 21:56:19 -0000

RFC 7952 says:

   4.  Annotations sent by a server should not break clients that don't
       support them.

If the client is expected to understand which hash function has been
used to generate a hash value, then I think the hash function should
be communicated as proper YANG data and not as metadata.

/js

On Mon, May 22, 2017 at 05:16:36PM +0000, Sterne, Jason (Nokia - CA/Ottawa) wrote:
> Hi all,
> 
> Does anyone see any reasons why RFC7952 annotations couldn't/shouldn't be used to identify the encryption/hashing format of an encrypted/hashed leaf ?
> 
> There are a number of approaches out there for encrypted/hashed leafs (e.g. RFC7317 crypt-hash which encodes the hash function by prepending $x$ to the password, using multiple leafs for the value/algorithm, etc).
> 
> These are leafs that can be typically written in cleartext or encrypted/hashed format, but return only an encrypted/hashed format when retrieved from a device.
> 
> I think RFC7952 annotation could also be used as an approach to this problem.
> 
> Annotation definition:
> 
>      md:annotation hash-format {
>        type enumeration {
>          enum md5l
>          enum sha-256
>          ...
>        }
>      }
> 
> An 'auth-key' leaf that is hashed:
> 
>     <auth-key hash-format="sha-256">
>       QsdsEWfjKAowjjhQHHslJSHHll
>     </auth-key>
> 
> 
> Regards,
> Jason
> 
> Note - I don't believe this statement in section 9 would point anyone away from using annotations for encryption/hashing information (since the encrypted leafs are data nodes):  "It is RECOMMENDED that security-sensitive or privacy-sensitive data be modeled as regular YANG data nodes rather than annotations."
> 
> 
> 

> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod


-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>