Re: [Doh] [Ext] DoH client-server interoperability vs. strict HTTP parameter checking

"Mark Delany" <d5e@xray.emu.st> Sat, 01 June 2019 16:08 UTC

Return-Path: <d5e@xray.emu.st>
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 6878B1201FA for <doh@ietfa.amsl.com>; Sat, 1 Jun 2019 09:08:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=emu.st
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 kMrgDTUbikRr for <doh@ietfa.amsl.com>; Sat, 1 Jun 2019 09:08:32 -0700 (PDT)
Received: from f3.bushwire.net (f3.bushwire.net [203.0.120.11]) by ietfa.amsl.com (Postfix) with ESMTP id ADE3E1200B4 for <doh@ietf.org>; Sat, 1 Jun 2019 09:08:32 -0700 (PDT)
Received: by f3.bushwire.net (Postfix, from userid 1001) id C23363B05B; Sun, 2 Jun 2019 02:08:30 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=emu.st; s=2019; t=1559405310; bh=cvs6HapMJR9CLvX6+rnYfpgu2a8=; h=Comments:Received:Date:Message-ID:From:To:Subject:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=bbSQkBaY+bX3wTcmVAFUq0BNS3Bw0GV8FL8cppev8DWvTpXA7xr/HvJRRdb6b97+U 7zt9leMSQNMYwJNMD92/qck6KuvgUC2RECc7yzPMoOQOaSHc8IW1y3iDyFrOXX5PA6 tTPHDVUhsJLS/etbYFsIpnVSmNg6xv84w6G9YKi0=9YKi0=
Comments: QMDA 0.3a
Received: (qmail 10634 invoked by uid 1001); 1 Jun 2019 16:08:30 -0000
Date: 1 Jun 2019 16:08:30 +0000
Message-ID: <20190601160830.10633.qmail@f3-external.bushwire.net>
From: "Mark Delany" <d5e@xray.emu.st>
To: doh@ietf.org
References: <770d0bf0-0a93-4d9a-4cb1-1f1e44c584aa@appliedprivacy.net> <F46C6B72-BD56-4C5C-9E10-26AC9B187102@icann.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <F46C6B72-BD56-4C5C-9E10-26AC9B187102@icann.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/XsTZWU6orqGKHdMwQoXl_MZGSDI>
Subject: Re: [Doh] [Ext] DoH client-server interoperability vs. strict HTTP parameter checking
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: Sat, 01 Jun 2019 16:08:35 -0000

> > should DoH servers be less strict and simply ignore additional HTTP
> > parameters and proceed with processing the relevant HTTP parameters
> > required to provide an answer?
> 
> Yes.
> 
> RFC 8484 makes it clear that a "DoH server" is just an HTTP server that understands the DoH semantics. Trying to limit it beyond that is just wrong (or maybe just lazy).

(I'm not sure about lazy since an HTTP server probably has to have
more code included to make such tests.)

As to the original question, the problem for a server that rejects
unrecognized HTTP parameters is, how does it differentiate between a
non-standard parameter and a parameter which was standardized in a
future version of RFC8484 written after the server was deployed?

Surely a server has to expect that it will eventually be talking to a
client from the future which will, by definition, be adding unknowable
parameters.

Clearly a client is taking a small but non-zero risk that its
non-standard parameters may collide with the future as well, but the
namespace is kinda large so the risk is low.


Out of curiousity, what are these extraneous parameters and why is the
client sending them? Are they relevant to the DoH query?


Mark.