Re: [DNSOP] HTTPS/SVCB on Cloudflare DNS

Alessandro Ghedini <alessandro@ghedini.me> Thu, 23 July 2020 16:45 UTC

Return-Path: <alessandro@ghedini.me>
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 80EE63A0BDF for <dnsop@ietfa.amsl.com>; Thu, 23 Jul 2020 09:45:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ghedini.me
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 K3tm-LsQnsB6 for <dnsop@ietfa.amsl.com>; Thu, 23 Jul 2020 09:45:40 -0700 (PDT)
Received: from blastoise.ghedini.me (blastoise.ghedini.me [45.32.158.21]) (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 0BCE03A0BCE for <dnsop@ietf.org>; Thu, 23 Jul 2020 09:45:38 -0700 (PDT)
Received: from localhost (unknown [IPv6:2a02:8010:6241:1:25ff:44c:b55a:4389]) by blastoise.ghedini.me (Postfix) with ESMTPSA id DE3C6DF238; Thu, 23 Jul 2020 16:45:31 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ghedini.me; s=mail; t=1595522732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RX62g1qsk/5qweuT9C/fNJ+20VoGN6FX+0vniB/sPeM=; b=djCJpsiHRoVJck/Bxca0O/nkPlLaL6yxM2YlYpj84PLSlPT15AL08HhyJJPk0fbT52exBq mpMJ69VnoX6Bcyc6suZF8ByYue2H+lBBh/mkssyQaCZB+ggo8UQbrmIjIJ5G3GBdTfg+so CAJ4CaVBuw0XxcgXS2n8k62cFI/kHEg=
Date: Thu, 23 Jul 2020 17:45:29 +0100
From: Alessandro Ghedini <alessandro@ghedini.me>
To: Ben Schwartz <bemasc@google.com>
Cc: Mark Andrews <marka@isc.org>, dnsop <dnsop@ietf.org>
Message-ID: <20200723164529.GB18990@wakko.flat11.house>
References: <20200716151356.GA60024@wakko.flat11.house> <18174930-D601-462A-BB4E-E994DB2EB4B9@isc.org> <20200716172604.GA65961@wakko.flat11.house> <E80B5A6A-9EB1-497B-81C1-2FA67012FAD3@isc.org> <20200723095040.GA1524@wakko.flat11.house> <20200723095729.GB1524@wakko.flat11.house> <CAHbrMsBRHoUAWo9khN_kJL-jNa9H1TWb-YqqYNanhCJ_Jb2s0w@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CAHbrMsBRHoUAWo9khN_kJL-jNa9H1TWb-YqqYNanhCJ_Jb2s0w@mail.gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/2QTMKF3xrWMwqp3rXftP__1SEuY>
Subject: Re: [DNSOP] HTTPS/SVCB on Cloudflare DNS
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, 23 Jul 2020 16:45:43 -0000

On Thu, Jul 23, 2020 at 10:31:50AM -0400, Ben Schwartz wrote:
> On Thu, Jul 23, 2020 at 5:57 AM Alessandro Ghedini <alessandro@ghedini.me>
> wrote:
> 
> >
> > Also btw, currently we always include ipv4hint and ipv6hint in our HTTPS
> > responses, this is to avoid breaking connections in multi-CDN scenarios,
> 
> 
> Note that this is not guaranteed to work.  A client who has the other CDN's
> AAAA record in cache will ignore your ipv6hint, leading to ECH failure.
> The proper way to support this is to make sure that TargetName is never a
> multi-CDN name.
> 
> The advice in previous drafts was arguably confusing on this point.  The
> latest draft updates the "Structuring Zones for Performance" section in an
> attempt to clarify:
> https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https#section-5.3
> 
> so I
> > guess a resolver could in theory use this information instead? The draft
> > is, I
> > believe, a tad too strict regarding the usage of hints, so I'm not sure if
> > this
> > is forbidden or not.
> >
> 
> I'm not sure what you're proposing, but recursive resolvers are certainly
> forbidden from synthesizing address records based on the ipv*hints.

Yeah, you are right I realized this didn't make sense just after sending the
email.

Cheers

> 
> Cheers
> >
> > >
> > > Cheers
> > >
> > > > We need to get to the state where HTTPS/SVBC alias form always reaches
> > a HTTPS/SVBC
> > > > service form.  When we are mostly in that state we can stop doing A
> > and AAAA queries
> > > > along side the HTTPS/SVBC query for names in the HTTPS/SVBC alias form
> > and take the
> > > > RTT hit on the occasional NODATA response.  To get to that state we
> > need the DNS
> > > > servers of the content providers to be HTTPS/SVBC aware and to
> > populate the additional
> > > > section whenever possible.
> > > >
> > > > BIND’s HTTPS/SVBC implementation adds A, AAAA, CNAME, and HTTPS/SVBC
> > records and
> > > > looks for them in the response.  I would expect all HTTPS/SVBC aware
> > clients to
> > > > look for these records in the response.  At the moment we don’t look
> > for DNAME in
> > > > the additional section nor do we add it because, quite frankly, they
> > should not be
> > > > there in any sensible deployment.  DNAME in the answer section is
> > expected.
> > > >
> > > > Mark
> > > >
> > > > >>> On 17 Jul 2020, at 01:13, Alessandro Ghedini <
> > alessandro@ghedini.me> wrote:
> > > > >>>
> > > > >>> Hello,
> > > > >>>
> > > > >>> Just a quick note that we have started serving "HTTPS" DNS records
> > from
> > > > >>> Cloudflare's authoritative DNS servers. Our main use-case right
> > now is
> > > > >>> advertising HTTP/3 support for those customers that enabled that
> > feature (in
> > > > >>> addition to using Alt-Svc HTTP headers).
> > > > >>>
> > > > >>> If anyone is interested in trying this out you can query pretty
> > much all domains
> > > > >>> served by Cloudflare DNS for which we terminate HTTP.
> > > > >>>
> > > > >>> For example:
> > > > >>>
> > > > >>>  % dig blog.cloudflare.com type65
> > > > >>>
> > > > >>> ; <<>> DiG 9.16.4-Debian <<>> blog.cloudflare.com type65
> > > > >>> ;; global options: +cmd
> > > > >>> ;; Got answer:
> > > > >>> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17291
> > > > >>> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL:
> > 1
> > > > >>>
> > > > >>> ;; OPT PSEUDOSECTION:
> > > > >>> ; EDNS: version: 0, flags:; udp: 4096
> > > > >>> ;; QUESTION SECTION:
> > > > >>> ;blog.cloudflare.com.           IN      TYPE65
> > > > >>>
> > > > >>> ;; ANSWER SECTION:
> > > > >>> blog.cloudflare.com.    300     IN      TYPE65  \# 76
> > 000100000100150568332D32390568332D32380568332D3237026832
> > 0004000868121A2E68121B2E00060020260647000000000000000000
> > 68121A2E26064700000000000000000068121B2E
> > > > >>>
> > > > >>> Cheers
> > > > >>>
> > > > >>> _______________________________________________
> > > > >>> DNSOP mailing list
> > > > >>> DNSOP@ietf.org
> > > > >>> https://www.ietf.org/mailman/listinfo/dnsop
> > > > >>
> > > > >> --
> > > > >> Mark Andrews, ISC
> > > > >> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > > > >> PHONE: +61 2 9871 4742 <+61%202%209871%204742>
> > INTERNET: marka@isc.org
> > > > >>
> > > >
> > > > --
> > > > Mark Andrews, ISC
> > > > 1 Seymour St., Dundas Valley, NSW 2117, Australia
> > > > PHONE: +61 2 9871 4742 <+61%202%209871%204742>              INTERNET:
> > marka@isc.org
> > > >
> > >
> > > _______________________________________________
> > > DNSOP mailing list
> > > DNSOP@ietf.org
> > > https://www.ietf.org/mailman/listinfo/dnsop
> >
> > _______________________________________________
> > DNSOP mailing list
> > DNSOP@ietf.org
> > https://www.ietf.org/mailman/listinfo/dnsop
> >