Re: [Add] New Version Notification for draft-schinazi-httpbis-doh-preference-hints-02.txt

David Schinazi <dschinazi.ietf@gmail.com> Sun, 26 July 2020 23:03 UTC

Return-Path: <dschinazi.ietf@gmail.com>
X-Original-To: add@ietfa.amsl.com
Delivered-To: add@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CF47B3A150F for <add@ietfa.amsl.com>; Sun, 26 Jul 2020 16:03:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=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 (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 Sg-L3Dhw3QLp for <add@ietfa.amsl.com>; Sun, 26 Jul 2020 16:03:11 -0700 (PDT)
Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (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 D04D73A153C for <add@ietf.org>; Sun, 26 Jul 2020 16:03:10 -0700 (PDT)
Received: by mail-lj1-x230.google.com with SMTP id q4so15237135lji.2 for <add@ietf.org>; Sun, 26 Jul 2020 16:03:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9gUu1DKRtKn0r9D4CKCYRPJsHHfA2UcABwBFKO83X4c=; b=dfzlYNfxw3oKOnmcfjApQxNvwZEinz2bZAk5voMgV9+G6JGFHATy1YBK3PqbTOuRRL aUoHb5gm486dqYm0JB3TeZqZBJr0T/q14SgotqbWOcGaghLgpRLPulsvE+sLTF5X58tb EzX854SA4x4Erp/r4GnMl7ZdlGPiWtm6ZiOqKnxDLTnMMZiVzqQw3hc8rHLXBnVz1xgJ /se+1gh0c/3IOhTdibo9D6QcRmFj2iOzv3+Gd4AayQqyQMERT5v8lcrXk1Ze61lQO+uM 8+E4YzbfxoPWQ5uydmDVs6ECwoOy/su1MyLqvZwYQ61g7rHUYAJRGHVTexQCg8q01prj zirg==
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=9gUu1DKRtKn0r9D4CKCYRPJsHHfA2UcABwBFKO83X4c=; b=m2pSzc+G2grZp3hfwodt7ooFQj3M1RNclXX4L3vA+Aqxs0CsZFH1/RpT3TwbCIZnKS hUpIQPbkyzqfT/G3Ftj9fuJEKLm1gp4GzGz9g1l8NshsRrCADoj3M+Gq3JpTHOj8l4EQ 85Q5Dsjbdnq4WkjZrVY/4+tDCx62+7bLcsV0NBP+KmTeUSkpyGHLecHHuHz/uvq0JM21 xnx4smM2p2HedQMvRCBhI2Nhp5fEI9SSvkOvZ9MpqNc2VJ+CRCzh8Knx581ifJoNO+X5 yRjVOgLhA5nsYVnUqLCSGtN3BhrQ2Tmr8L3ug0W/Vp81MZK/+i9WCS7aOQL7KvaC2MSN RROA==
X-Gm-Message-State: AOAM5323bsuRu0ntqobduSLvpSEBik4nY2aJz3F7PKxgRREmC4xoEt4M wCVV3g92KUHcvrntbUJrejKSl4m0id221scVSLY=
X-Google-Smtp-Source: ABdhPJxFGIioh53AGpjTUxCNBQYaHcY5CE4MWQ7N/wbMmGH1Dcl+ZPQ03HuXoFXT6NSu7BdlRiJOIu5xAyE/sgeO8Fk=
X-Received: by 2002:a2e:9644:: with SMTP id z4mr8916577ljh.333.1595804588767; Sun, 26 Jul 2020 16:03:08 -0700 (PDT)
MIME-Version: 1.0
References: <159466897500.14799.423774862197475126@ietfa.amsl.com> <CAFDDyk9J4i+TYVSj1Xb8A6LNv3WR_Vi_XQuch-jgfHiLdk6ZuA@mail.gmail.com> <FA94902C-0246-4EC0-A077-390F4A2632E5@apple.com>
In-Reply-To: <FA94902C-0246-4EC0-A077-390F4A2632E5@apple.com>
From: David Schinazi <dschinazi.ietf@gmail.com>
Date: Sun, 26 Jul 2020 16:02:57 -0700
Message-ID: <CAPDSy+6t_17gV851B6xvWfX2VbqGvm8rMBuRQUz=H74N_Skj0w@mail.gmail.com>
To: Tommy Pauly <tpauly@apple.com>
Cc: Nick Sullivan <nick=40cloudflare.com@dmarc.ietf.org>, ADD Mailing list <add@ietf.org>, Jesse Kipp <jkipp@cloudflare.com>
Content-Type: multipart/alternative; boundary="000000000000a4fbc305ab6035dc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/add/pNDnpChC2V0r3N5CEW26KyGk4y8>
Subject: Re: [Add] New Version Notification for draft-schinazi-httpbis-doh-preference-hints-02.txt
X-BeenThere: add@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Applications Doing DNS <add.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/add>, <mailto:add-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/add/>
List-Post: <mailto:add@ietf.org>
List-Help: <mailto:add-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/add>, <mailto:add-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 26 Jul 2020 23:03:20 -0000

Hi Tommy,

Thanks for your comments! Responses inline.

On Sun, Jul 26, 2020 at 1:43 PM Tommy Pauly <tpauly@apple.com> wrote:

> Hi Nick,
>
> I definitely like the optimizations that this mechanism is looking
> for—specifically, binding resolutions to a DoH server that is hosted by the
> same CDN that provides the desired web content. This not only allows for
> faster resolution (based on being near the authoritative) and faster
> connections (based on tailoring DNS answers for the client’s subnet) as you
> describe, but has some privacy benefits in limiting the number of parties
> involved in subsequent resolutions.
>
> The specific mechanism does cause some concerns for me, however.
>
> I know this is just a hint, but the weak relationship between this hint
> and the DNS may cause issues. The DoH preference hint is one-way only,
> and determined only by the entity that is generating HTTP headers for a
> given URL. This means that neither the operator of the DNS zone for the
> origin, nor the target DoH resolver, have any way to influence or validate
> this hint. It is possible that these are all the same entity (Google
> content in a google.com zone pointing to 8.8.8.8), but that’s not
> guaranteed. Nothing stops any website from providing a hint to direct
> clients to whichever DoH server it wants, for as long as it wants. I have
> no problem with HTTPS content helping to confirm that the owner of the cert
> for a name agrees to using a specific DoH server (see
> https://www.ietf.org/id/draft-pauly-add-resolver-discovery-01.html#name-confirmation-of-designation)
> but the primary control over DNS routing should lie with the operator of
> the DNS zone in order to get the optimizations described in the document.
>

Your statement that "the primary control over DNS routing should lie with
the operator of the DNS zone" contradicts existing best practices. Today,
when my devices connect to a first hop network (Wi-Fi, cellular, etc.),
that network will almost always provide me with a list of DNS servers,
using mechanisms such as IPv6 RAs or DHCP. My device then proceeds to route
its DNS based on that information. This control over DNS routing does not
lie with the operator of the DNS zone, it lies with the first hop network
operator - or with the device administrator who can override DNS
configuration. Our proposal allows HTTP server operators to influence DNS
routing, and your proposal allows DNS zone operators to influence DNS
routing, but neither of those solutions is "more correct" based on how DNS
works today.


> It also seems like it would be more optimal for this indication of DoH
> server to be expressed for a set of names (names within a zone, or
> all subdomains, etc), rather than just a single host name. The text limits
> any hint to only apply to one name, which is good because the hint
> could otherwise cause problems for an entire zone, but means that the
> benefit is limited. If every YouTube video has a unique hostname that is
> only resolved once, wouldn’t it be better to learn that I should use
> 8.8.8.8 for all YouTube names?
>

Definitely agree. We could change the draft to allow these hints to
influence other hostnames that are covered by the same TLS certificate,
though we'd have to consider the security implications carefully.


> What would the client behavior for this header be if there is a redirect?
> For any content that uses redirects, I assume these hints must be ignored?
>

I don't think HTTP redirects should have any impact on the DoH-Preference
header. If https://foo.example.com/abc returns a 301 redirect to
https://bar.example.net/def it can still tell the client that subsequent
resolutions for foo.example.com can be made to a given DoH server. The key
distinction here is that the DoH-Preference operates at the scope of a
hostname, whereas an HTTP redirect operates at the scope of a given request
(i.e. it's specific to the full path, not just the hostname).

Cheers,
David


Best,
> Tommy
>
> On Jul 13, 2020, at 1:25 PM, Nick Sullivan <
> nick=40cloudflare.com@dmarc.ietf.org> wrote:
>
> ADD Working Group,
>
> This is to inform you of a new submission of the doh-preference-hints
> document. This document was originally intended for the HTTPbis working
> group, but we were directed to the ADD group as a more appropriate venue to
> discuss it. Our intention is to put this document up for consideration to
> be adopted as a working group item.
>
> Nick, David, Jesse
>
> ---------- Forwarded message ---------
> From: <internet-drafts@ietf.org>
> Date: Mon, Jul 13, 2020 at 12:36 PM
> Subject: New Version Notification for
> draft-schinazi-httpbis-doh-preference-hints-02.txt
> To: Jesse Kipp <jkipp@cloudflare.com>, Nick Sullivan <nick@cloudflare.com>,
> David Schinazi <dschinazi.ietf@gmail.com>
>
>
>
> A new version of I-D, draft-schinazi-httpbis-doh-preference-hints-02.txt
> has been successfully submitted by David Schinazi and posted to the
> IETF repository.
>
> Name:           draft-schinazi-httpbis-doh-preference-hints
> Revision:       02
> Title:          DoH Preference Hints for HTTP
> Document date:  2020-07-13
> Group:          Individual Submission
> Pages:          8
> URL:
> https://www.ietf.org/internet-drafts/draft-schinazi-httpbis-doh-preference-hints-02.txt
> Status:
> https://datatracker.ietf.org/doc/draft-schinazi-httpbis-doh-preference-hints/
> Htmlized:
> https://tools.ietf.org/html/draft-schinazi-httpbis-doh-preference-hints-02
> Htmlized:
> https://datatracker.ietf.org/doc/html/draft-schinazi-httpbis-doh-preference-hints
> Diff:
> https://www.ietf.org/rfcdiff?url2=draft-schinazi-httpbis-doh-preference-hints-02
>
> Abstract:
>    When using a publicly available DNS-over-HTTPS (DoH) server, some
>    clients may suffer poor performance when the authoritative DNS server
>    is located far from the DoH server.  For example, a publicly
>    available DoH server provided by a Content Delivery Network (CDN)
>    should be able to resolve names hosted by that CDN with good
>    performance but might take longer to resolve names provided by other
>    CDNs, or might provide suboptimal results if that CDN is using DNS-
>    based load balancing and returns different address records depending
>    or where the DNS query originated from.  This document attempts to
>    lessen these issues by allowing the web server to indicate to the
>    client which DoH server can best resolve its addresses.  This
>    document defines an HTTP header field that enables web host operators
>    to inform user agents of the preferred DoH servers to use for
>    subsequent DNS lookups for the host's domain.
>
>    Discussion of this work is encouraged to happen on the ADD IETF
>    mailing list add@ietf.org or on the GitHub repository which contains
>    the draft: https://github.com/DavidSchinazi/draft-httpbis-doh-
>    preference-hints.
>
>
>
>
> Please note that it may take a couple of minutes from the time of
> submission
> until the htmlized version and diff are available at tools.ietf.org.
>
> The IETF Secretariat
>
>
> --
> Add mailing list
> Add@ietf.org
> https://www.ietf.org/mailman/listinfo/add
>
>
>