Re: [Doh] Authentication in draft-ietf-doh-resolver-associated-doh-03.txt

Ben Schwartz <bemasc@google.com> Mon, 25 March 2019 16:10 UTC

Return-Path: <bemasc@google.com>
X-Original-To: doh@ietfa.amsl.com
Delivered-To: doh@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 556B41203E3 for <doh@ietfa.amsl.com>; Mon, 25 Mar 2019 09:10:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.501
X-Spam-Level:
X-Spam-Status: No, score=-17.501 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, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 z0vX98jUV98F for <doh@ietfa.amsl.com>; Mon, 25 Mar 2019 09:10:42 -0700 (PDT)
Received: from mail-vs1-xe34.google.com (mail-vs1-xe34.google.com [IPv6:2607:f8b0:4864:20::e34]) (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 E41A11203D6 for <doh@ietf.org>; Mon, 25 Mar 2019 09:10:41 -0700 (PDT)
Received: by mail-vs1-xe34.google.com with SMTP id i207so5699356vsd.10 for <doh@ietf.org>; Mon, 25 Mar 2019 09:10:41 -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=fzuPmq/RESWsUmF1fBcW+WD0B5zpvGflJUq/fx+lFkY=; b=MTjKxu8ja+l9R73Lh7FsCkHuRTx9nW/nk+08RUULxVnMDNXpiK/6blN1cp6+gb0gvu kV+99gmPWRGAQSFo4KVMh0IO/J9IuqAWE+DDXfFSYJ9RFqUXkoodPE/CfZJHx/fKy3ko fLnz7pT2IdgvIfLCW87RLD1mJhwRPLB9N956erKfGRtNjkfAhjUaidgqoiexnyymhoOY hJP132ONHL+hKKzMXeaMm/LnFNQOynA96ulyxgOuXxa6Dmj4jwev81fRSj8dAzmuyhL7 tpOX7yPrX8ODYKUPZMEANm3TxRpQaMxLikNh3NnVQBjcf1BjDSBjnAGEAtcWP0VBYJd+ QKuw==
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=fzuPmq/RESWsUmF1fBcW+WD0B5zpvGflJUq/fx+lFkY=; b=S27SYOcNYuTyqCy26CSDI4GaQChZpRR6DUBVGAwyaH1ucjqCaQLvM6YVxr2zXDqNbU Y97N7jSnfuXGzFiUemGQ1J24FHsoC1oqJOHjR3QyGgv5n0IbsGCnPlu167t42dPCAtwY isXv5DYFaFSyGvULCXnzUB+7QIpUxdGQome9hhv9M7Axj0NQnVRJPo+2mIgg7wSq40fM Ws7+B4nrAlHA2j3dhuPgdJragpnEIJTL3uvGRLmdDPe5VJLR+0zHs4DsIbm0ohqLFI7u gJH4Mz32qIRR2xblWDCF7LfFZejlWObv5dcfpR9vLnpCYawY0AToQLoxqBXODOZA2Ycy tXXg==
X-Gm-Message-State: APjAAAUR1BODG9e4viArHRcR0cQQP3HoTdqjTIUkXGdCVj2+aCp+Nefk kej5HU46vLsppqcbaMRDapQ1P9biZL+F48x9GhX8HQ==
X-Google-Smtp-Source: APXvYqwynJIZYCaOlMHx2nffp61neRWEK5AoEUmOLUfDKEXOCCZXaYwMWIJqV5O8yhfNSs5gqWd6sn4xJ9RPCF/umLI=
X-Received: by 2002:a67:f790:: with SMTP id j16mr15436696vso.232.1553530240698; Mon, 25 Mar 2019 09:10:40 -0700 (PDT)
MIME-Version: 1.0
References: <155341529409.18062.10657099011172813446@ietfa.amsl.com> <20190325110136.GA23793@laperouse.bortzmeyer.org> <08BD5718-CD1F-47B3-A4FB-4040F8E9FC4B@icann.org>
In-Reply-To: <08BD5718-CD1F-47B3-A4FB-4040F8E9FC4B@icann.org>
From: Ben Schwartz <bemasc@google.com>
Date: Mon, 25 Mar 2019 12:10:29 -0400
Message-ID: <CAHbrMsD0hp6TAN+AGLSLjeqOjGJT79QMcaN21sOj77R8LXtFtw@mail.gmail.com>
To: Paul Hoffman <paul.hoffman@icann.org>
Cc: DoH WG <doh@ietf.org>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="0000000000002b07f90584ed7204"
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/AahpgKsjt9WRqx936EGM366nvJc>
Subject: Re: [Doh] Authentication in draft-ietf-doh-resolver-associated-doh-03.txt
X-BeenThere: doh@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DNS Over HTTPS <doh.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/doh>, <mailto:doh-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/doh/>
List-Post: <mailto:doh@ietf.org>
List-Help: <mailto:doh-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/doh>, <mailto:doh-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 25 Mar 2019 16:10:44 -0000

On Mon, Mar 25, 2019 at 7:37 AM Paul Hoffman <paul.hoffman@icann.org> wrote:

> On Mar 25, 2019, at 12:01 PM, Stéphane Bortzmeyer <bortzmeyer@nic.fr>
> wrote:
> > Otherwise, even after reading the whole thread "Reviewing
> > Resolver-Associated DOH", I don't understand why https is required in
> > section 2. We don't require DNSSEC in section 3, so why having
> > stronger requirments for HTTP? Since having certificates for IP
> > addresses will be difficult in practice, why not just accepting http
> > as well as https? (Or, <horror>https without cert. checking</horror>.)
>
> The reason I didn't drop down to http: is that doing so evokes the
> <horror> response, even though you are quite correct that the other two
> methods given in this document do not offer any authentication. So, let me
> ask the WG:
>
> Would this document be better off with all three methods being equally
> unauthenticated? Doing so would remove the "but you can't get IP address
> certificates!" argument that keeps coming up (even though that is
> overstated). Doing so would simplify the security considerations by making
> all three protocols have the same obvious weakness.
>
> An alternative is to have two URI, one with https: and one with http:, and
> explain that trying the first might be a good idea but to fall back to the
> second if authentication fails.
>
> Thoughts?
>

Given that the protocol is called "DNS over HTTPS", running it over
unencrypted HTTP seems like a contradiction.  It also complicates any
security status indication by introducing a mode that no longer offers any
confidentiality benefit over standard DNS.

Apart from security issues, insecure HTTP is generally restricted to
HTTP/1.1.  DoH implementations are strongly encouraged to use HTTP/2,
because HTTP/1.1 requires in-order responses.  Running DoH over HTTP/1.1
increases the likelihood of performance problems.

--Paul Hoffman
> _______________________________________________
> Doh mailing list
> Doh@ietf.org
> https://www.ietf.org/mailman/listinfo/doh
>