Re: [DNSOP] [Technical Errata Reported] RFC8078 (5049)

Dick Franks <rwfranks@acm.org> Mon, 26 June 2017 11:30 UTC

Return-Path: <rwfranks@gmail.com>
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 EA267129B17 for <dnsop@ietfa.amsl.com>; Mon, 26 Jun 2017 04:30:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.399
X-Spam-Level:
X-Spam-Status: No, score=-2.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.199, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 xXOGzVe7Kq_i for <dnsop@ietfa.amsl.com>; Mon, 26 Jun 2017 04:30:39 -0700 (PDT)
Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 043F1126CD8 for <dnsop@ietf.org>; Mon, 26 Jun 2017 04:30:39 -0700 (PDT)
Received: by mail-oi0-x231.google.com with SMTP id c189so52661534oia.2 for <dnsop@ietf.org>; Mon, 26 Jun 2017 04:30:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xXHsgE9GxCsl07HI98OAbgZaMVj0+5O6T7yLUwoHlug=; b=TlCohsCL1GpBCsDU72gDhHoy0ndff+z2U9pMPaKm4LqOxizrI2m6v2IMqwCfJCzob2 a7tXbs2wdNgRJVzh6l87tO6tv5G2jxsWxHlAwvRi8iuvbyfobLF+ISp1ZP7YLJHZsZ/Z To5MOKudlIs5JFt6Pg/C6dVrfEujznWPN9CIJNp4nEK2on9/azsfFjoBcg4v8oEDzxRp 0rsa8FbPPCiReid4kpWBCdyXVOHor+QdgoHe2KoTnCInG01v68aP/ryHWkscpb9Zrnja OI0Nc/v1Hppcpac3oXY/o1O3Y0D6dJtubX5KkH37bJ7kSH8bvGfC466dGkc08NEl/8+f oDcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xXHsgE9GxCsl07HI98OAbgZaMVj0+5O6T7yLUwoHlug=; b=qi1qS3UyyuHFzC9+FAiuILpK3F/mbAEwTPpBY6SUOc7k9/9hbagaDUonY3yLseNawJ nT8dZHnhb86qFflkT1nza5bQpWxNxuyHhypzDGvrU4qDyvlMlagm8dWhZz8M6kNbIbAU cOaB/7Vyx3cvBIEV4czw+sFcrCEOP+3XZg/U2Tl79zxHELGhR9QqaJAqZcC4dseg3jCo FHqOWvRrx/WOf8fvRYvaH2nQS7cQnISJb5yzYLHlfkCGqZuPsjot6mxhif1cjfsV0TVg C3K3pKghXTS9hEXz6O1mSfy33gpGfOhEPVm4s6DPKnIiRBh4oxEktvxCHk/1y4rRhPAa YIeA==
X-Gm-Message-State: AKS2vOzMb5yye9IrBl1Zso7usRP9O6SQNdKK/tSNZm16ogzxw8LJlx2X QtvFSwArYn/pZxHodLeSxgi4bNXaIQ==
X-Received: by 10.202.169.79 with SMTP id s76mr7472955oie.156.1498476638373; Mon, 26 Jun 2017 04:30:38 -0700 (PDT)
MIME-Version: 1.0
Sender: rwfranks@gmail.com
Received: by 10.182.232.163 with HTTP; Mon, 26 Jun 2017 04:29:57 -0700 (PDT)
In-Reply-To: <519c2cb0-0239-e28f-e4e8-6dcb13459d3d@pletterpet.nl>
References: <20170623105434.22478B810AB@rfc-editor.org> <CAN6NTqyBg74NF-F8imGiK0ArwxAbhc0uE_xXbX-No+Le8E9DUg@mail.gmail.com> <CAKW6Ri7npS57gupPrUc2aGhsg21u8csx+69GKrCFkeQ6H5Dnxw@mail.gmail.com> <9284fde5-ea75-a25a-3aa1-2e521753dc3e@cesnet.cz> <519c2cb0-0239-e28f-e4e8-6dcb13459d3d@pletterpet.nl>
From: Dick Franks <rwfranks@acm.org>
Date: Mon, 26 Jun 2017 12:29:57 +0100
X-Google-Sender-Auth: ubsv5hr_TjFvfqb9TH_ztXUDPYI
Message-ID: <CAKW6Ri5hsUEFuWmVp1UNauk=C7HykdiA9stQoMcdDs6gd6+axg@mail.gmail.com>
To: Matthijs Mekking <matthijs@pletterpet.nl>
Cc: Ondřej Caletka <Ondrej.Caletka@cesnet.cz>, Ólafur Guðmundsson <olafur@cloudflare.com>, tjw ietf <tjw.ietf@gmail.com>, IETF DNSOP WG <dnsop@ietf.org>, Suzanne Woolf <suzworldwide@gmail.com>, pwouters@redhat.com, bclaise@cisco.com, Olafur Gudmundsson <olafur+ietf@cloudflare.com>, RFC Editor <rfc-editor@rfc-editor.org>
Content-Type: multipart/alternative; boundary="001a113cc044bc10d00552db4777"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/JMbg5etW0OCnWUSc3jKItas2tJI>
Subject: Re: [DNSOP] [Technical Errata Reported] RFC8078 (5049)
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Jun 2017 11:30:41 -0000

On 26 June 2017 at 09:39, Matthijs Mekking <matthijs@pletterpet.nl> wrote:

I raised the specific issue because the to be RFC 8078 was going to change
> the CDS and CDNSKEY RDATA format from a fixed length RDATA to a variable
> length: In case of the DELETE operation, the Digest in presentation format
> was omitted.
>

CDS and CDNSKEY are both variable length. There is no length component in
the RDATA itself. The length of the digest (or key) is calculated (RDLENGTH
- 4) so whether there is one byte or none at all makes not a scrap of
difference. So that explanation can be dismissed immediately.


While I agree with Paul in that thread that we should use all zeros for the
> DELETE operation, I believe it was an oversight that the proper encodings
> (hexadecimal, base64) should be used.
>

Not just an oversight. Now it is an oversight baked into an IESG approved
standards track document.

So an implementer has little choice but to make CDS/CDNSKEY work in
accordance with the standard as written until IESG approves something else.

And when that something else arrives, users will be mightily upset if
RFC8078 CDS/CDNSKEY suddenly stops working, so the code will need to cope
with both versions.  The only realistic way to achieve that is to determine
the entire content of the DELETE CDS/CDNSKEY from the zero algorithm field.
Beyond that, the content of the "mandated notation" is irrelevant because
it can be left unparsed.