Re: [DNSOP] HTTPS and SVBC key names.

Ben Schwartz <bemasc@google.com> Thu, 16 July 2020 20:17 UTC

Return-Path: <bemasc@google.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 8876A3A0C80 for <dnsop@ietfa.amsl.com>; Thu, 16 Jul 2020 13:17:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 OKD-k7xiLK1j for <dnsop@ietfa.amsl.com>; Thu, 16 Jul 2020 13:17:43 -0700 (PDT)
Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 A0DE23A0C7F for <dnsop@ietf.org>; Thu, 16 Jul 2020 13:17:43 -0700 (PDT)
Received: by mail-wm1-x330.google.com with SMTP id c80so11492885wme.0 for <dnsop@ietf.org>; Thu, 16 Jul 2020 13:17:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AXzccXhO+2xSRmkQ91l6P85seKhhgWcsKjpRrQdzrI0=; b=MIjGy3kT+8XsP+2HOAZROPZoOkv5eq4onUphyt4+N+d4YpYGPTj4sSujHZybN5nSaz awAbpdKZtX8CUWs/Vb67kJ1/qKrwGUVtp+WEUo5fjvLUBqfZ7re9VkhAUvK7ltaQMg1a qAzy8CmkmfiifLvq8asWSOZYHX3vCH04GL97osZkffEUba06FutMdAR2QLIQH6A+wqcp p3IPI7btXeu4gVZ6/mexxmSCRv+DCbvAh0sXSLdk2fto07PjoVjC8+jO3RF2wKrNMi1T 416eTrxATnERD4ZE0G24wWl/o/oTpFk4cM/4pO6HesSp8iEJM/d7xZGnvgP5FF65SteZ tKag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AXzccXhO+2xSRmkQ91l6P85seKhhgWcsKjpRrQdzrI0=; b=IiRMc6QrDqk/evIUs/1NBXjAkyLxMqFf+MnEwSllKkMHhwjxf9D9ziKj0vjHwWamBM Mr+4E4Sg1g9BzMqpGdLosPHTeCqt7md6OZW3QrGzl40LMmii9QGcax3AbOZa09KgePkC Q1ALsbUo980mCt2+pA6n/r4AlCT+gV2MI7xpdvDJZRmbHJ+hPkZUQcuqMc/rQ69s3Jmv fjxtIyeGF3xKJC1I2Mhxbs0Cw1znipf8w8UnPLXR/0yKMnEh94Ug7O7KowiScUikjNcC eHjzYCfjEbJSxtjhW2iGm7F3oC4oI++ApIf9+pfUYJumOw0+/5zlld2P71eIm12jn7df 5Nzg==
X-Gm-Message-State: AOAM530+ZEKXuvJAUc9CrSX2yWTSF70C/o1yOB+JqmklWtzR7We5AYJo 2h/kkNyYJ7PDSRkVQ+F2GviSSY4fyawixL0TuaNOJw==
X-Google-Smtp-Source: ABdhPJywyxK26lNNJfz6UDBe8rsregHTIW+utUeykSOzauam3RbJWFp49tjY3SkQ6Ux26nuQLEIg3B9lkEAFFgb0j1E=
X-Received: by 2002:a1c:6246:: with SMTP id w67mr5668045wmb.42.1594930661728; Thu, 16 Jul 2020 13:17:41 -0700 (PDT)
MIME-Version: 1.0
References: <23FA2BA0-43B9-49A3-B288-3ADFCE1D1DB1@isc.org> <CAHbrMsDOyTXyJydro8enSePy9COOfK7AVL6Pqv94YGAGhg41Hg@mail.gmail.com> <CAKC-DJiBw7vDr_KA1sb+ephuagRCT84f1B0PGXJptPiZTh2CSg@mail.gmail.com> <CAN6NTqxGLF0tZ17TX8jy2YWPf=qHhW93=fKETJ4kScJbQUUgxw@mail.gmail.com> <CAKC-DJiMngJonCp2EPrHTWMHwV0VAGquf733YcTZ9JSTFtwAhA@mail.gmail.com> <CAH1iCipbR9D_Tqc4dW5zARpEgjZ=-b3d6ZywPzo0=jfBedppYw@mail.gmail.com> <CAKW6Ri7K7efEj81nKJq7W0MKyn9rDOL7bLt-zVUokodVfrjAwA@mail.gmail.com> <CAHbrMsC-5wvxsmrzHnrnfUZOG1wQsGmEF2m2jMt4a5vieK7Nyg@mail.gmail.com> <CAKW6Ri7aF0knx2SFJgx4OxxVJfeNWYJ3pJBmxXQH+UMZ0P4_Rw@mail.gmail.com>
In-Reply-To: <CAKW6Ri7aF0knx2SFJgx4OxxVJfeNWYJ3pJBmxXQH+UMZ0P4_Rw@mail.gmail.com>
From: Ben Schwartz <bemasc@google.com>
Date: Thu, 16 Jul 2020 16:17:30 -0400
Message-ID: <CAHbrMsBTnFmJdj9KYfzGajKmbWJ1+XF_f8BGMPnLy=MFAhCygg@mail.gmail.com>
To: Dick Franks <rwfranks@gmail.com>
Cc: dnsop WG <dnsop@ietf.org>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="00000000000090d62a05aa94bbbe"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/g3xZqzW09sUmB2eKbEdw2s2Fkyg>
Subject: Re: [DNSOP] HTTPS and SVBC key names.
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 16 Jul 2020 20:17:48 -0000

On Thu, Jul 16, 2020 at 3:50 PM Dick Franks <rwfranks@gmail.com> wrote:

>
> On Thu, 16 Jul 2020 at 13:31, Ben Schwartz <bemasc@google.com> wrote:
>
>
>> On Thu, Jul 16, 2020, 4:07 AM Dick Franks <rwfranks@gmail.com> wrote:
>>
>>>
>>> Beefed-up example from 5.3, where we know neither the key name nor how
>>> to interpret the value:
>>>
>>>     foosvc.example.net. 3600 IN SVCB    \# 9 000100ff350002beef
>>>       ; 1 . key65333=...
>>>
>>
>> Should this say "TYPE64" instead of SVCB?  Apart from that, this looks
>> right
>>
>
> No.  The IANA registry was updated on June 30 and perl
> Net::DNS::Parameters is generated from the XML. It will be in the next
> Net::DNS release.
>
>
>
>> Presentation format?
>>>
>>
>> key65333=\190\239
>>
>
> If this is a string, should this say?    key65333="\190\239"
>

Quotes are optional, as with <character-string>.  Quotes are only required
if the value contains whitespace.


>
>>> Also, why do (key,value) pairs need to be in ascending order on the
>>> wire, but can be in any order in the presentation format?
>>>
>>
>> The presentation format is optimized for humans and the wire format is
>> optimized for machines. In particular, when using the named keys it's not
>> obvious what the numeric ordering is, so keeping them in order when editing
>> a zone file by hand would be hard.
>>
>
> That does not answer the question.
> What is the reason for the keys to be in ascending order?
>

I think this was motivated primarily by a general belief that unnecessary
degrees of freedom should be removed, to minimize variation between
implementations.  Every variation is a chance for surprises, from buggy
interactions to information leakage.  It also potentially simplifies
validation of a record by the recipient.

There is also some inconsistency in the use of quotes.
>
> 2.3 has:
>
>   svc4.example.net.  7200  IN SVCB 3 svc4.example.net. (
>        alpn="bar" port="8004" echconfig="..." )
>
> 2.5.2 has:
>
>   svc2.example.net. 7200  IN HTTPS 1 . port=8002 echconfig="..."
>
> Is the port value an integer or a string, with the quotes being optional?
>
> The quotes are always optional, except when the presentation value
contains whitespace, regardless of the data type.


> Is the wire format a character string to be interpreted as an integer by the client,
> or a packed integer in network byte order?
>
> The port wire format value is a packed integer in network byte order.


>
>
> --Dick
>
>
> _______________________________________________
>>>>
>>> DNSOP mailing list
>>> DNSOP@ietf.org
>>> https://www.ietf.org/mailman/listinfo/dnsop
>>>
>>