Re: [Doh] TSIG, Padding and "Age:"

Ray Bellis <ray@bellis.me.uk> Wed, 22 May 2019 08:36 UTC

Return-Path: <ray@bellis.me.uk>
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 F2D30120094 for <doh@ietfa.amsl.com>; Wed, 22 May 2019 01:36:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=portfast.net
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 bTv97EKNv-xY for <doh@ietfa.amsl.com>; Wed, 22 May 2019 01:36:06 -0700 (PDT)
Received: from mail.portfast.net (mail.portfast.net [IPv6:2a03:9800:20:1::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C3CD0120092 for <doh@ietf.org>; Wed, 22 May 2019 01:36:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=portfast.net; s=dkim; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q02MxXPa1T2ub2ROCKbKpKujyDTEO+UMJVg9L6+PFRE=; b=o4YXqoN9RWiak7aJeWxstHQ+L1 trE5wsA50giX2IYXcS/XwDTz3parQ2Cpg3BECLwUmf86Tzj0UBTMh7zbZ7gT+XqKvgLff9ini16Ce nPMZpTXBSCYKJhCGInrY0Yk+GGa8GgKwfY9eGMh8ZX/rOrJ1lvpwqTh+KfVD7JCqX+Ho=;
Received: from [88.212.170.147] (port=56607 helo=Rays-MacBook-Pro.local) by mail.portfast.net ([188.246.200.9]:465) with esmtpsa (fixed_plain:ray@bellis.me.uk) (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1hTMjB-0001MS-UI (Exim 4.89) for doh@ietf.org (return-path <ray@bellis.me.uk>); Wed, 22 May 2019 08:36:02 +0000
To: doh@ietf.org
References: <20190521061122.11758.qmail@f3-external.bushwire.net>
From: Ray Bellis <ray@bellis.me.uk>
Message-ID: <1b07c20e-efd3-ce95-10ad-1133caa6433a@bellis.me.uk>
Date: Wed, 22 May 2019 09:36:00 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <20190521061122.11758.qmail@f3-external.bushwire.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/TXn_4YwOk6rQ4YLgBRTQAeh9JLg>
Subject: Re: [Doh] TSIG, Padding and "Age:"
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: Wed, 22 May 2019 08:36:08 -0000


On 21/05/2019 07:11, Mark Delany wrote:

> Section 9 of RFC8484 (DoH) says "servers can also add DNS padding [RFC7830] if
> the DoH client requests it in the DNS query".
> 
> However section 3.4 of RFC2845 (TSIG) says that essentially the whole message is
> protected by the hash calculation (bar a few irrelevant odds and sods) which
> means that a DoH server adding padding will break the TSIG message digest.
> 
> Therefore is it correct to say that a DoH server cannot add padding if the DNS
> message contains a TSIG RR?

That's correct.

> If TSIG is in play - and I don't really know until someone here confirms it -
> does the TSIG constraint on message modification also conflict with Section 5.1
> of RFC8484 which states: "DoH clients MUST account for the Age response header
> field's value" ... and modify TTLs?

Also correct.

> I tell ya. Once you step into the waters of modifying in-flight DNS messages it
> seems like crocodiles all the way down.

This is not news :(

Ray