Re: [netconf] Roman Danyliw's Discuss on draft-ietf-netconf-crypto-types-29: (with DISCUSS and COMMENT)
Orie Steele <orie@transmute.industries> Wed, 31 January 2024 17:51 UTC
Return-Path: <orie@transmute.industries>
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 8B65FC14F749 for <netconf@ietfa.amsl.com>; Wed, 31 Jan 2024 09:51:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.986
X-Spam-Level:
X-Spam-Status: No, score=-0.986 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, DOTGOV_IMAGE=1, HTML_MESSAGE=0.001, MIME_BOUND_DIGITS_15=0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, T_REMOTE_IMAGE=0.01, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=transmute.industries
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23xhIqkQlbMc for <netconf@ietfa.amsl.com>; Wed, 31 Jan 2024 09:51:11 -0800 (PST)
Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4BE1FC14F5F3 for <netconf@ietf.org>; Wed, 31 Jan 2024 09:51:11 -0800 (PST)
Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-290fb65531eso3215929a91.2 for <netconf@ietf.org>; Wed, 31 Jan 2024 09:51:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=transmute.industries; s=google; t=1706723470; x=1707328270; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=v4g5AcPND62TIJNsQW5txrA5ihNkC4JJqJeWVE0R5ww=; b=D/Ah5ZFrXmNnNgIDIPm8nnWhzexF84xi3uIH6AgR+fK/u5Yn+lCBUts4Z+VTaKPK5A 83nofPijdeJcZUiIea00CpSG/L+4evBjd5upBR8l5iadotmlMlCnkv5AVMQoxTzpCPm5 csF4QxF988FdzxdBK7DgG0MzayvzRPaImxd2zW+qI5ufa4MyadaRbFzrWpQbr6EWO1Rw /ssAbPXYTUe2Ki/71LN6Ug8aqDbi36usLtD6A9o5LPLy1PXa+YtOdNfkTgOqghD+yqmP L7U56bJFCBFqO0IY601iSSKjSZ+lROCCgkbx7nVaK9fwftmEugqjzWoOkCajmOY/oLG4 rbJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706723470; x=1707328270; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=v4g5AcPND62TIJNsQW5txrA5ihNkC4JJqJeWVE0R5ww=; b=f9h6LSmjFNhH75hpjEx5CNZ1/2zbRZjTT59ugD0q2xF69Up8HkNzbFawCb7IM2A9Nd PIq63h+L5xKvAGBBAmJb2YYQpgPXVY7HxoHTakhkyaRdVbxpAIqs+e7Y2bsk4NfW46HM gsW7sytj7UTWEEX/ZYa04Mm9FNJ6Z5m4XB4DiykS1KOgles5BWD6dwdKE33ZH0+guzWz rllr4PmmRV0fhSWHfMZ1TvJ3UEMuLFKo+yjK1cTom6KIYYdBxGlYLbIf+yuHuLIjevfh qURR8aWC6ABRMoW2tWuUSfvncZtBC3zFB4hmRtDsBCmZru9n4C8nOz8QzOb9jYwdpT9I +KfQ==
X-Gm-Message-State: AOJu0Ywf8vKUJjefyLRquf9eicBCXk9SIdF9SpuiLLna72aXKlo1CIb0 L14cFQUUxBc5i1bcS1R4jbyBt8xVQV3naHq/okzKS3e3/0U719Lkw0gazq3GUG85+wEO2w4L48r uyP88YZHubxTrq8ZxGB8PjAK5BFct6BhihP5yJg==
X-Google-Smtp-Source: AGHT+IHsMezpOtEYlSgGtRQr68Vd9hnTWLAsN4NFNkfhPzT31qQPylX7h2rak/9ul6P+23FBiZ53cKWHLNGos6FVGZA=
X-Received: by 2002:a17:90a:5208:b0:295:b347:b0c5 with SMTP id v8-20020a17090a520800b00295b347b0c5mr2204067pjh.42.1706723470491; Wed, 31 Jan 2024 09:51:10 -0800 (PST)
MIME-Version: 1.0
References: <170656963762.34041.922180093314268674@ietfa.amsl.com> <0100018d607eee07-04a9a8b6-3256-42d4-95e7-e9636b953246-000000@email.amazonses.com>
In-Reply-To: <0100018d607eee07-04a9a8b6-3256-42d4-95e7-e9636b953246-000000@email.amazonses.com>
From: Orie Steele <orie@transmute.industries>
Date: Wed, 31 Jan 2024 11:50:59 -0600
Message-ID: <CAN8C-_Jw+xSdRcH5O4SVzbEL3d8zObKG0ZLpXict4yyV9+gu4g@mail.gmail.com>
To: Kent Watsen <kent@watsen.net>
Cc: Roman Danyliw <rdd@cert.org>, The IESG <iesg@ietf.org>, draft-ietf-netconf-crypto-types@ietf.org, "netconf-chairs@ietf.org" <netconf-chairs@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003053000610418625"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/HdqkF5P718NVtdsUDH53016a1WE>
Subject: Re: [netconf] Roman Danyliw's Discuss on draft-ietf-netconf-crypto-types-29: (with DISCUSS and COMMENT)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
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, 31 Jan 2024 17:51:15 -0000
It sounds like "hidden" is being used as a substitute for "non extractable" or "non exportable", through the use of software or hardware isolation. I searched https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57pt1r5.pdf briefly, and could not find a better term. Web crypto and Android use the term "extractable" - https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/extractable - https://developer.android.com/privacy-and-security/keystore#SecurityFeatures Apple uses the term "exportable" - https://developer.apple.com/documentation/security/1643698-seckeycopyexternalrepresentation OS On Wed, Jan 31, 2024 at 11:09 AM Kent Watsen <kent@watsen.net> wrote: > Hi Roman, > > Thank you for your valuable comments. > Please see below for responses. > > Kent > > > > On Jan 29, 2024, at 6:07 PM, Roman Danyliw via Datatracker < > noreply@ietf.org> wrote: > > > > Roman Danyliw has entered the following ballot position for > > draft-ietf-netconf-crypto-types-29: Discuss > > > > When responding, please keep the subject line intact and reply to all > > email addresses included in the To and CC lines. (Feel free to cut this > > introductory paragraph, however.) > > > > > > Please refer to > https://www.ietf.org/about/groups/iesg/statements/handling-ballot-positions/ > > for more information about how to handle DISCUSS and COMMENT positions. > > > > > > The document, along with other ballot positions, can be found here: > > https://datatracker.ietf.org/doc/draft-ietf-netconf-crypto-types/ > > > > > > > > ---------------------------------------------------------------------- > > DISCUSS: > > ---------------------------------------------------------------------- > > > > ** hidden key > > > > -- Section 2.1.4.3. “The "hidden-key" node is of type "empty" as the > real > > value cannot be presented via the management interface. ” -- > YANG. "A > > hidden key. How such keys are created is outside the > scope of > > this module."; > > > > “hidden key” is underspecified. The above are the two descriptions I > found. > > Could a detailed explanation please be added – what is it? When (how) > would > > one use it? What is the difference between hidden and access controlled? > > > > I observe that draft-ietf-netconf-keystore suggests that it could be > related to > > TPMs and Section 4 of that draft uses it in the context of > administrators with > > different privileges. However, this document is the base reference. > > True, a "hidden key” is best implemented via a TPM, albeit neither this > draft > nor the “keystore” insist on it. > > To your DISCUSS, how about this updated description? > NEW: > > "A hidden key. It is of type 'empty' as it's value is > inaccessible via management interfaces. Though > hidden to users, such keys are not hidden to the server > and may be referenced by configuration to indicate which > key a server should use for a cryptographic operation. > How such keys are created is outside the scope of this > module."; > > Thoughts? > > > > > > > ---------------------------------------------------------------------- > > COMMENT: > > ---------------------------------------------------------------------- > > > > Thank you to Valery Smyslov for the SECDIR review. > > > > ** Section 2.1.4.8. Editorial. > > > > * The "cert-data" node contains a chain of one or more certificates > > encoded using a "signed-data-cms" typedef discussed in > > Section 2.1.3. > > > > I observe that Section 2.1.3 says almost nothing about signed-data-cms > > True and, more broadly, that section says very little about any of the > typedefs. > This is true also for all nine drafts in the document series. In general, > I struggle > with trying to balance being DRY (don’t repeat yourself, or, in this case, > don’t > repeat what is in the YANG module) and providing nice introductions. > > In general, I want to these documents to be as small as possible (they’re > already > huge). Truly, the entire “Data Model Overview” section could be skipped by > anyone reading the YANG module. > > The “Data Model Overview” sections (in all the drafts) originally just had > a single > YANG tree-diagram, but the WG wanted it to be broken up, with fluffy text, > etc. > It’s a bit of a sore point for me. ;) > > In any case, that’s the background. Since this is just a COMMENT, I think > that > I’ve leave it at that for now, and wait to see if others want more text in > the 2.1.3 > sections. > > > > ** Section 2.1.4.12. Editorial. The narrative text doesn’t explain what > > “certificates” are. > > This section points to "end-entity-cert-grouping” saying: > The "end-entity-cert-grouping" grouping is discussed in Section > 2.1.4.9. > > Section 2.1.4.9 says: > The "cert-data" node contains a chain of one or more certificates > encoded using a "signed-data-cms" typedef discussed in > Section 2.1.3. > > This is the text you quoted above - as the same text is in Section > 2.1.4.9. > That said, I do see an opportunity for improvement: > > In 2.1.4.8. (The "trust-anchor-cert-grouping” Groupin > NEW: > The "cert-data" node contains a chain of one or more certificates > containing at most one self-signed certificates (the “root” > certificate), > encoded using a "signed-data-cms" typedef discussed in Section > 2.1.3. > > In 2.1.4.9. (The "end-entity-cert-grouping” Grouping) > NEW: > The "cert-data" node contains a chain of one or more certificates > containing at most one certificate that is neither self-signed nor > having Basic constraint "CA true”, encoded using a > "signed-data-cms" typedef discussed in Section 2.1.3. > > > Thoughts? > > > ** Section 3.5. > > When accessing key values, it is desireable that implementations > > ensure that the strength of the keys being accessed is not greater > > than the strength of the underlying secure transport connection over > > which the keys are conveyed. However, comparing key strengths can be > > complicated and difficult to implement in practice. > > > > I don’t understand the guidance in this section. I would have benefited > from > > clarity in the following areas. > > > > -- Explain the impact of using keys whose strength exceeds the underlying > > transport connection (i.e., it doesn’t offer more security) > > > > -- The verb “accessing” is confusing. Let’s say that an implementation > notices > > a discrepancy between key strength, what is it supposed to do? > > > > -- The last sentence (“However, comparing ...) seems to acknowledge > (correctly) > > that this advice might not be practical. Is the WG sure the text is > needed? > > > > ** Section 3.5. > > That said, expert Security opinion suggests that already it is > > infeasible to break a 128-bit symmetric key using a classical > > computer, and thus the concern for conveying higher-strength keys > > begins to lose its allure. > > > > Recommend removing this generic statement. There would be a variety of > reasons > > operators might choose to use symmetric keys in excess of 128-bits, > policy > > being one of them. > > I’m happy to remove Section 3.5 (Strength of Keys Conveyed) entirely. > > IDK if there is any value to keeping it. I only added it because it is > something > I remembered from a past life. No one ever asked me to add this Section... > > Is my understanding from your "Is the WG sure the text is needed?” above > that you lean towards removing Section 3.5? > > > > > ** Section 3.6 > > Implementations SHOULD only use secure transport protocols meeting > > local policy. A reasonable policy may, e.g., state that only > > ciphersuites listed as "recommended" by the IETF be used (e.g., > > [RFC7525] for TLS). > > > > -- Would there be instances where implementation would use secure > transport > > that _doesn’t_ meet local policy? > > Shouldn’t be, but maybe a rouge new employee doesn’t know it ;) > > Is your point that we should s/SHOULD/MUST/ here? > > > > -- RFC7525 has been obsoleted. s/RFC7525/RFC9325/ > Updated - thanks! > > > Kent > > -- ORIE STEELE Chief Technology Officer www.transmute.industries <https://transmute.industries>
- [netconf] Roman Danyliw's Discuss on draft-ietf-n… Roman Danyliw via Datatracker
- Re: [netconf] Roman Danyliw's Discuss on draft-ie… Kent Watsen
- Re: [netconf] Roman Danyliw's Discuss on draft-ie… Orie Steele
- Re: [netconf] Roman Danyliw's Discuss on draft-ie… Kent Watsen
- Re: [netconf] Roman Danyliw's Discuss on draft-ie… Orie Steele
- Re: [netconf] Roman Danyliw's Discuss on draft-ie… Kent Watsen
- Re: [netconf] Roman Danyliw's Discuss on draft-ie… Roman Danyliw
- Re: [netconf] Roman Danyliw's Discuss on draft-ie… Kent Watsen