[netconf] type for a PSK's "id" node?

Kent Watsen <kent+ietf@watsen.net> Tue, 21 July 2020 14:44 UTC

Return-Path: <0100017371d59ad5-c8aa5683-34d7-4e76-b521-8482f67e33e4-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 E509A3A0934 for <netconf@ietfa.amsl.com>; Tue, 21 Jul 2020 07:44:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, 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 JN2PL-90Rd5K for <netconf@ietfa.amsl.com>; Tue, 21 Jul 2020 07:44:52 -0700 (PDT)
Received: from a48-90.smtp-out.amazonses.com (a48-90.smtp-out.amazonses.com [54.240.48.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B07623A092E for <netconf@ietf.org>; Tue, 21 Jul 2020 07:44:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1595342691; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:Cc:To:Feedback-ID; bh=LzFZq+tcbJgpKbEt7ZuFdUYAo7B4B2gmDKgQZ6ZSvRk=; b=Vz1ZGSA2BRS/JNylN7DUS5pSEf5yM8lTeuJO6g6PIqWoBMSsVjxfEdqOL4j8tghr Gvp6W4MEKibdsht3mWp6tX+Ojkwks/0XCC8RlxwreQVF+8xXwePrzRBcrdII2ttubcg gsK/1+EgIh+y5jDHXT58cvnWWyixCPA7KlaI0Wu0=
From: Kent Watsen <kent+ietf@watsen.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_B5AD7110-ED08-4D09-9E2D-F2ECC91FFAC6"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\))
Message-ID: <0100017371d59ad5-c8aa5683-34d7-4e76-b521-8482f67e33e4-000000@email.amazonses.com>
Date: Tue, 21 Jul 2020 14:44:51 +0000
Cc: "netconf@ietf.org" <netconf@ietf.org>
To: Henk Birkholz <henk.birkholz@sit.fraunhofer.de>
X-Mailer: Apple Mail (2.3608.80.23.2.2)
X-SES-Outgoing: 2020.07.21-54.240.48.90
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/hJG7Vly53rnFXWBVMk7B-UejKFc>
Subject: [netconf] type for a PSK's "id" node?
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, 21 Jul 2020 14:44:54 -0000

Hi Henk,

I’m trying to close a couple issues on list before the meeting...

Below you’ll note the "is this the right type?” comment.  Currently the “id” node is type “string”, what type is used by TLS?


        case psk {
          if-feature psk-auth;
          container psk {
            description 
              "Specifies the server identity using a PSK (pre-shared
              or pairwise-symmetric key).";
            uses ks:local-or-keystore-symmetric-key-grouping {
              augment "local-or-keystore/local/local-definition" {
                if-feature "ks:local-definitions-supported";
                description
                  "Adds an 'id' value when the PSK is used by TLS.";
                leaf id {
                  type string;  // FIXME: is this the right type?
                  description
                    "The key id used in the TLS protocol for PSKs.";
                }   
              } 
            } 
          } 
        } 


K.