[DNSOP] Re: [Ext] Request: Review changes - draft-ietf-dnsop-rfc7958bis-03 → 04.

Petr Špaček <pspacek@isc.org> Thu, 15 August 2024 08:59 UTC

Return-Path: <pspacek@isc.org>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9E88AC1CAF3C for <dnsop@ietfa.amsl.com>; Thu, 15 Aug 2024 01:59:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.407
X-Spam-Level:
X-Spam-Status: No, score=-4.407 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=isc.org header.b="VG+LhIry"; dkim=pass (1024-bit key) header.d=isc.org header.b="YeQpFMJN"
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 xRPyCt9TsJOB for <dnsop@ietfa.amsl.com>; Thu, 15 Aug 2024 01:59:04 -0700 (PDT)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [149.20.2.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BA3BFC151070 for <dnsop@ietf.org>; Thu, 15 Aug 2024 01:59:03 -0700 (PDT)
Received: from zimbrang.isc.org (zimbrang.isc.org [149.20.2.31]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx.pao1.isc.org (Postfix) with ESMTPS id A54073AB293; Thu, 15 Aug 2024 08:59:02 +0000 (UTC)
ARC-Filter: OpenARC Filter v1.0.0 mx.pao1.isc.org A54073AB293
Authentication-Results: mx.pao1.isc.org; arc=none smtp.remote-ip=149.20.2.31
ARC-Seal: i=1; a=rsa-sha256; d=isc.org; s=ostpay; t=1723712342; cv=none; b=NL2rd0E0n+R9x8jDqIdnBtk2+bGVP/+v94lrNgn3SRcHFT/IrSYU+ZaSoHHYTQXmx8rOvF3lse0z6WLi2LxUQK++4Ks9uNd2UywVVWKrdMD06Vo6+OLYXb8MgVPof/NELb7PVoxkbNSui6pTwjyRqEZ89tMYr6FL5iCta6u411A=
ARC-Message-Signature: i=1; a=rsa-sha256; d=isc.org; s=ostpay; t=1723712342; c=relaxed/relaxed; bh=adsIzORdUYhwA5DOep9gnw0lIZiUzZY3odP1o77jatU=; h=DKIM-Signature:DKIM-Signature:Message-ID:Date:MIME-Version: Subject:To:From; b=DDIKUxQy1eg9UNhyGi4nUvkcFL5qW+88b85JgIhM1ef1C7c2e+d4Eh5pEGW6hdi+RbzkIzuAP1NihKSC+R4ilNsnKjZ+W97rKdKCqwBZX/Cgvo/q1etw8C0q4G1VAZtXCTJkRuHbHf+QIy+pMPUp6QgUrT7VUqcoySK7axZw+lQ=
ARC-Authentication-Results: i=1; mx.pao1.isc.org
DKIM-Filter: OpenDKIM Filter v2.10.3 mx.pao1.isc.org A54073AB293
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=isc.org; s=ostpay; t=1723712342; bh=FEBMTryGYbAr6blNmAL2sDeunHKn0XwJnaLdEk+yYnI=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=VG+LhIryP0YutB6P1NM5UipvQPbf2QUY77fluM/LWI+qCqdehkJPGa/B4cztzs4Wx yRpZoW2g8Npx5josHo7baGoQ9KFleZrjSbb5g564xJHJAhwhDelnGQKshiysT5Y9oA 6+VKvsqQ1r3wfSbyJrg2jSOiQ0YXu1/vzeqaW7VE=
Received: from zimbrang.isc.org (localhost.localdomain [127.0.0.1]) by zimbrang.isc.org (Postfix) with ESMTPS id 9F56812C77F4; Thu, 15 Aug 2024 08:59:02 +0000 (UTC)
Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbrang.isc.org (Postfix) with ESMTP id 7DA6012C77FA; Thu, 15 Aug 2024 08:59:02 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.10.3 zimbrang.isc.org 7DA6012C77FA
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isc.org; s=05DFB016-56A2-11EB-AEC0-15368D323330; t=1723712342; bh=adsIzORdUYhwA5DOep9gnw0lIZiUzZY3odP1o77jatU=; h=Message-ID:Date:MIME-Version:To:From; b=YeQpFMJNluAPOAuAXOARCbEWjz2F9wXYro2GAu4D1Vr1AfUJsV0JvJNLpqWTaW2qz hmBYx2dKyulh2SlUweKl5/9AkjF9ce48yd/OMJxEHixKsjfaenjnf2OzQHiPirv6Rv dphbH8v0/lSLUMDxsza/rqh3qfQXaw/O7Eey8p2k=
Received: from zimbrang.isc.org ([127.0.0.1]) by localhost (zimbrang.isc.org [127.0.0.1]) (amavis, port 10026) with ESMTP id xxEcBrAJPv59; Thu, 15 Aug 2024 08:59:02 +0000 (UTC)
Received: from [192.168.0.157] (ip-86-49-237-6.bb.vodafone.cz [86.49.237.6]) by zimbrang.isc.org (Postfix) with ESMTPSA id ABE6512C77F4; Thu, 15 Aug 2024 08:59:01 +0000 (UTC)
Message-ID: <c77c4c2b-4d6e-4b41-bbc7-3ee634d0321a@isc.org>
Date: Thu, 15 Aug 2024 10:58:58 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Michael StJohns <msj@nthpermutation.com>, Paul Hoffman <paul.hoffman@icann.org>
References: <CAHw9_iL-ZwwA_pckR+=7SndOvqjfcNX9FjZ9Bim24uSYgTxkyw@mail.gmail.com> <98896B9D-259E-4E46-8DC7-E873D8B25F55@icann.org> <d9aed09d-b1c8-4ba1-9d4e-e83d504bfe40@nthpermutation.com> <65A596AD-1A4F-400A-9404-E2D60A54BE66@icann.org> <36118f44-d18d-443b-8aa8-007b8b62db3f@nthpermutation.com>
From: Petr Špaček <pspacek@isc.org>
Content-Language: en-US
Autocrypt: addr=pspacek@isc.org; keydata= xsFNBF/OJ/4BEAC0jP/EShRZtcI9KmzVK4IoD/GEDtcaNEEQzPt05G8xtC0P4uteXUwW8jaB CdcKIKR4eUJw3wdXXScLNlyh0i+gm5mIvKPrBYNAMOGGnkbAmMQOt9Q+TyGeTSSGiAjfvd/N nYg7L/KjVbG0sp6pAWVORMpR0oChHflzKSjvJITCGdpwagxSffU2HeWrLN7ePES6gPbtZ8HY KHUqjWZQsXLkMFw4yj8ZXuGarLwdBMB7V/9YHVkatJPjTsP8ZE723rV18iLiMvBqh4XtReEP 0vGQgiHnLnKs+reDiFy0cSOG0lpUWVGI50znu/gBuZRtTAE0LfMa0oAYaq997Y4k+na6JvHK hhaZMy82cD4YUa/xNnUPMXJjkJOBV4ghz/58GiT32lj4rdccjQO4zlvtjltjp9MTOFbRNI+I FCf9bykANotR+2BzttYKuCcred+Q7+wSDp9FQDdpUOiGnzT8oQukOuqiEh3J8hinHPGhtovH V22D0cU6T/u9mzvYoULhExPvXZglCLEuM0dACtjVsoyDkFVnTTupaPVuORgoW7nyNl0wDrII ILBqUBwzCdhQpYnyARSjx0gWSG1AQBKkk5SHQBqi1RAYC38M59SkpH0IKj+SaZbUJnuqshXh UIbY1GMHbW/GDhz7pNQFFYm2S4OPUBcmh/0O0Osma151/HjF7wARAQABzR9QZXRyIMWgcGHE jWVrIDxwc3BhY2VrQGlzYy5vcmc+wsGXBBMBCABBAhsDBQsJCAcCBhUKCQgLAgQW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fbxlRK7gAeu0kyKiEXrUvCQPnPByIIfj4I4IvZO4552cmmnbn31f9 X/9nw+M4qAqOK7bRg65ucv71TayUehNJrfJSYx6P1tXIwzu19tIgtdWTcsszNWALfaUFtg==
In-Reply-To: <36118f44-d18d-443b-8aa8-007b8b62db3f@nthpermutation.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: P62Z6G647S6JX22BUHCREFWSGY3M3HK7
X-Message-ID-Hash: P62Z6G647S6JX22BUHCREFWSGY3M3HK7
X-MailFrom: pspacek@isc.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dnsop.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "dnsop@ietf.org" <dnsop@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [DNSOP] Re: [Ext] Request: Review changes - draft-ietf-dnsop-rfc7958bis-03 → 04.
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/jmAhSdm_B2HxQwOmOBEXHY-cdv4>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Owner: <mailto:dnsop-owner@ietf.org>
List-Post: <mailto:dnsop@ietf.org>
List-Subscribe: <mailto:dnsop-join@ietf.org>
List-Unsubscribe: <mailto:dnsop-leave@ietf.org>

On 10. 08. 24 17:21, Michael StJohns wrote:
> On 8/9/2024 5:09 PM, Paul Hoffman wrote:
>> On Aug 9, 2024, at 12:16, Michael StJohns<msj@nthpermutation.com>  wrote:
>>> Two comments - one major and one very minor.
>>>
>>> Major:  I'm sorry for the late comment, but I didn't realize you were planning on starting to provide prospective DS's for unpublished keys.  Telling people there's a new trust anchor, and that the live key matches this file is one thing - easy enough for a relying party to match up a few things and accept the TA update.  Telling them there's an unpublished key and "trust me, when you see it it will have this digest and you should go ahead now and install it in your trust anchors" seems to be a bit more risky.
>> This is unchanged from RFC 7958, published in 2016. It was done for the key rollover to KSK-2017. If you propose to change this activity now, I propose that you take this to IANA; the current draft and RFC 7958 reflect IANA's long-established policies.
> 
> Paul - this is related directly to the newly specified inclusion of the 
> public key material in this draft (sect 3.2 last para):
> 
>>     A KeyDigest element can contain both a Digest and a publickeyinfo
>>     named pattern.  If the Digest element would not be a proper DS record
>>     for a DNSKEY record represented by the publickeyinfo named pattern,
>>     relying parties MUST NOT use that KeyDigest as a trust anchor.
> 
> Prior to this there was no check on the correctness of the offered 
> digest, except that a smart relying party could have looked at the 
> published keys and tried to find a match.  After this is published as an 
> RFC, the relying part mostly only needs to look at the public key data 
> in the file if it exists and not worry about whether it was published.  
> This is not "unchanged from RFC 7958" IMO.   Finally, reading this,  why 
> wouldn't you explicitly specify that the hash needs to be  (e.g. MUST 
> be) verified against either a live (published) key or the included 
> public key?  Trust anchors require - well - trust.  I would think that 
> the more verification I can get to avoid polluting my personal trust 
> anchor store, the better.
> 
>>> Looking at the Security Considerations - I don't think the updates to this section made this is sufficiently evident.
>> That's because this part of RFC 7958 was not updated in this draft.
> See above.
>>>    I'd suggest two things:  1) Talk about the above in the security considerations, and 2) Place a disclaimer in the TA file with similar language about the prospective key material.

 From my perspective sect 3.2 last paragraph (quoted above) is 
sufficient to catch errors in data representation within the XML and 
with that protection we IMHO are in the same state as we were before: 
The relying party has to trust content of the file (for some reason).

Maybe I'm missing something. Do you have a particular attack scenario 
which have not been possible before but becomes possible with the new 
format?

>>> Minor minor minor nit - feel free to ignore this:
>>>
>>> The flags field for the DNSKEY is represented in most DNS presentation modes as an unsigned decimal integer - but it's actually a bit field of two bytes.  The representation is used mostly because that's what a DNS Zone File used (e.g. either Base64 or a decimal integer) for most non-text fields.  Unclear decimal should be used for XML.
>> Section 2.2 of RFC 4034 says "The Flag field MUST be represented as an unsigned decimal integer."
> 
> RFC 4034 2.2  is talking about DNS RR Presentation format, not XML.  In 
> any event,  section 2.1 represents the flag field as 2 8-bit bytes so 
> equal support for either approach.
> 
>>> It may make some sense here to use <xsd:hexBinary { length = 2 }/>  is the field type the appropriate mapping here  - <Flag>0101</Flag> instead of the decimal 257.  Easier to see what bits have been set.
>> That would then be different than the KeyType, Algorithm, and DigestType fields that are expressed as xsd:nonNegativeInteger. If the WG wants to make this inconsistent, it can, but I would generally be against that.
> 
> KeyType, Algorithm and DigestType are all enums - Flags is a bit field.  
> What's more inconsistent is 4034 treating the flags field as an unsigned 
> number, but reasonable enough as few if any other RR presentation fields 
> are flag fields.  (I can't think of one... but with all the myriad RR 
> types, I'm sure someone has built one).
> 
> As I said - minor nit.  Sometimes when you're reencoding data from one 
> scheme to another you need to have these polite conversations and 
> actually consider the circumstances.

As an implementer I say it's easier if the format is the same as in DNS, 
i.e. unsigned decimal number. It allows me to simply reformat elements 
from the XML into a DNSKEY text representation and _then_ run existing 
DNS code to parse the (reformatted) DNSKEY text.

Bit field represented as sequence of ASCII 0/1 would require additional 
code and I don't see any benefit. Common DNS tools display Flags field 
as an integer value so even for manual cross-checking by hand (say XML 
text vs. dig output) it is better to use the same representation.

-- 
Petr Špaček
Internet Systems Consortium