Re: [core] [dns-privacy] WGA call for draft-lenders-dns-over-coap

Jaime Jiménez <jaime@iki.fi> Tue, 30 August 2022 13:27 UTC

Return-Path: <jaime@iki.fi>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6039CC14CE31; Tue, 30 Aug 2022 06:27:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.129
X-Spam-Level:
X-Spam-Status: No, score=-6.129 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=messagingengine.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nU0E4JAVi1S8; Tue, 30 Aug 2022 06:27:38 -0700 (PDT)
Received: from forward3-smtp.messagingengine.com (forward3-smtp.messagingengine.com [66.111.4.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D6C86C152578; Tue, 30 Aug 2022 06:27:36 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 15A5D19420D9; Tue, 30 Aug 2022 09:27:35 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 30 Aug 2022 09:27:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1661866055; x= 1661952455; bh=+Hr+0iEFR+YjwV9/PYe5lGeNbP0zs+BfAKVrGr+tcSY=; b=T oHhtUPDV+ANxn041rIFHzb4UVh1U2We/DOObYGfQ0TuUArXYl4iOnHa5XNgVFw6r s9/AsIgWSchZVMC727ShlI+lNsOh8dedPfhirS9zmeCuh/v8tcKz4oZqtoir89j3 wg7WkWuwlMg84kDHXGrsJGJxXyb6Q4wPLPx4dU3kzhrqskCkD5bb3dBG1f4X4jip O/a/9/k1CFReN9g00sLZ8BFTeq/nR7+D/vGcO9PB0xf0Kcl2yb5UZHGaiuZKf888 c8mRTwdZbtD1T3mbOuU/x2otLkzqsuDtCHtvmeVA5EUfaeGhtt9aNUE8VuY37auU M2i7ZlT1A40GXu07Cp6+w==
X-ME-Sender: <xms:RhAOY8jOuKX0jezAOqgQg0dOYLfCUk9skssW1hAp3oY_29J1no5RGA> <xme:RhAOY1DXzfFasoTd6rMbM5BHgXAFsvIxjQFdm8mnSJlar1PXxMBZCco3mdqJkx17O VZvjZCm9T5BlFnGVA>
X-ME-Received: <xmr:RhAOY0HlNrnkgAh21dC4GudG9wn4gQGzye7cOAdrMk9CDwLtbn4_tQZHbjK3DZVZFUmQfPVyhZlzq3aJEv7G87gQAGgkaQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdekfedgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeflrghi mhgvucflihhmrohnvgiiuceojhgrihhmvgesihhkihdrfhhiqeenucggtffrrghtthgvrh hnpeeuteeftddtfeevgeeufeeiteefiefgueeugefhleejteevgfeufffhfeelhfdtfeen ucffohhmrghinheprghrgihivhdrohhrghdpihgvthhfrdhorhhgnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhgrihhmvgesihhkihdrfhhi
X-ME-Proxy: <xmx:RhAOY9RuJynXFyVDNKByp_ariw5u5McJ7gnyPmLOJZqJ-1OzEsrQwg> <xmx:RhAOY5xsEDOIn2mTXZhbXlkG8ZH4egm78bJyWoiDy_uk7WWUx3jvVw> <xmx:RhAOY74CSWgwX0YJlb9zgpqUo3o8A_lLEY3h6VMUuW0oZX3oLh31ng> <xmx:RxAOY7sgAUT6PVY1jDRgQL_Ea7EkZRNJ1xGK2mNOZPqbU0v_HJHY3g>
Feedback-ID: iabf94414:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Aug 2022 09:27:32 -0400 (EDT)
Message-ID: <029928a2-dd8a-03a1-6a79-6ab655d89510@fastmail.com>
Date: Tue, 30 Aug 2022 16:27:30 +0300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.2.0
To: Matthias Waehlisch <m.waehlisch@fu-berlin.de>, Ted Lemon <mellon@fugue.com>
Cc: Tim Wicinski <tjw.ietf@gmail.com>, dnsop@ietf.org, dns-privacy@ietf.org, core@ietf.org
References: <693CE6A0-9479-4265-B3D9-ADEF9EF4B959@tzi.org> <519510F7-032C-4BCE-AD7E-6889ABC7991D@fugue.com> <EF2A3A25-4D89-4258-9CE0-0FC9F8CC2080@tzi.org> <26b55a44-1d79-0874-afbe-7d43bd1b39d2@fu-berlin.de> <CAPt1N1nPEfJL_5_smq6Un92BRCTQxtYO0krjx58N8KS2qVj5xQ@mail.gmail.com> <alpine.WNT.2.00.2208241129320.33552@mw-x1>
Content-Language: en-GB
From: Jaime Jiménez <jaime@iki.fi>
In-Reply-To: <alpine.WNT.2.00.2208241129320.33552@mw-x1>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/wERUvswcz3fVMOkKaW2WF1yjgMY>
Subject: Re: [core] [dns-privacy] WGA call for draft-lenders-dns-over-coap
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 30 Aug 2022 13:27:42 -0000

Dear all,


this is just a gentle reminder that the WGA call is scheduled to be 
closed by this Thursday 1st of September.

It would be great if the participants of the discussion could summarize 
their position towards the call. In particular for those ambivalent or 
opposing WGA.


Thanks!

CoRE Chairs.


On 24.8.2022 12.32, Matthias Waehlisch wrote:
> Hi Ted,
>
>    sorry for the late reply!
>
>    re scenarios: during bootstrappign, a constrained requires CoAP and
> DNS client capablities. for example, when an LwM2M client registers at a
> LwM2M server, which acts as a partial CoAP Resource Directory.
>
>    re: your statement "The privacy benefit of DoH wouldn't apply on a
> Thread network—you're hiding things that are easily discovered, and
> snooping is expensive, so constrained devices aren't likely to do it."
> i don't see why an attacker necessarily needs to use a constrained
> device.
>
>    can you elaborate on who is "we" in your arugmentation?
>
>
> thanks
>    matthias
>
> On Thu, 18 Aug 2022, Ted Lemon wrote:
>
>> Before you go down the mDNS-over-constrained-networks rabbit hole, you might want
>> to look at existing practice. E.g. Thread uses SRP (draft-ietf-dnssd-srp, in last
>> call) for service registration, and then uses regular DNS and DNS Push for lookups.
>> mDNS is used on the infrastructure link (e.g. WiFi) because it's ubiquitous and
>> permissionless, although it would be nice to get to where we could use DNS Push
>> there as well. The primary argument against mDNS for constrained networks and
>> devices is that it winds up delivering a lot of badput: nearly every mDNS packet is
>> useless for nearly every recipient. This isn't a problem for unconstrained networks
>> and unconstrained devices, but you don't want a battery operated device to have to
>> turn on its receiver and look at every service discovery packet, and possibly have
>> to forward it, when nearly all of them are not going to be of interest.
>> I think your main value-add here is compactness. Your argument for OSCORE sounds
>> convincing, but I'd like to see some practical application of this. If you are
>> thinking about how to do compression, why wait to write that draft? To me it seems
>> like a pretty clear sine qua non for the draft you're trying to work on first. To
>> put this in perspective, in the Thread work we've definitely considered ways to
>> compress DNS packets. We haven't done it, because it's not strictly necessary, but
>> this would certainly be an attractive thing to consider. Whereas the other stuff
>> you are doing here would not be at all compelling. We wouldn't be interested in
>> this caching mechanism, for example. Message privacy isn't very interesting, since
>> our primary use for DNS is DNS service discovery, and our secondary use is
>> basically also service discovery—finding the IP address of a cloud service with a
>> known name. The compelling use case for DoH is the ability to make HTTPS and DNS
>> lookups share fate; there's no similar compelling use case here. The privacy
>> benefit of DoH wouldn't apply on a Thread network—you're hiding things that are
>> easily discovered, and snooping is expensive, so constrained devices aren't likely
>> to do it.
>>
>> There may be a privacy story here, but I think if there is it needs to be
>> articulated, and not just assumed.
>>
>> On Thu, Aug 18, 2022 at 3:40 AM Martine Sophie Lenders <m.lenders@fu-berlin.de>
>> wrote:
>>        Hi!
>>
>>        Martine Lenders, here, one of the co-authors of the draft.
>>
>>        Indeed, as Carsten already stated: Using OSCORE is one of our main use
>>        cases, using a compressed format for DNS messages is another.
>>
>>        We implemented both DNS over DTLS and DNS over CoAP (DoC), including
>>        the variants DNS over CoAPS and DNS over OSCORE, for our evaluation of
>>        DoC [1]. It shows DNS over OSCORE to be in advantage compared to both
>>        DNS over DTLS or DNS over CoAPS. Yes, compared to DNS over DTLS it adds
>>        complexity, at least upfront, but it can be assumed that CoAP/OSCORE is
>>        already present for the application. This amortizes this disadvantage
>>        to only the construction and parsing of DNS messages. With DNS over
>>        DTLS (assuming we even use transport encryption with CoAP) we still
>>        need to implement the state machine of DNS over DTLS, in addition to
>>        DNS message handling. On the other hand side, we gain additional
>>        advantages from the CoAP feature set when using DoC, such as block-wise
>>        transfer and, as previously discussed, en route caching. The latter
>>        would also become possible in an end-to-end encrypted way with [2].
>>        Some of these advantages are mentioned in Section 1 of the draft.
>>
>>        For a compressed message format, we plan to provide a separate draft in
>>        the future, in an attempt to keep things simple and to easily make that
>>        content type also usable, e.g., with DoH.
>>
>>        Another use case is the usage of encrypted DNS over Low-Power WANs,
>>        e.g., LoRaWAN. Here, due to the transport encryption with DTLS,
>>        compression to fit the small PDUs and handle the low data rates [3], is
>>        not straightforward. As OSCORE encrypts on the application layer,
>>        however, we are able to compress most of the surrounding metadata away
>>        [4], and purely transport the encrypted payload.
>>
>>        Lastly, another possible use cases, which we did not evaluate in any
>>        way yet, would be an encrypted version of mDNS and thus DNS-SD,
>>        utilizing OSCORE group communication [5]. Multicast encryption is not
>>        covered by either of the other encrypted DNS-over-X solutions so far.
>>
>>        Best regards
>>        Martine
>>
>>        [1] https://arxiv.org/pdf/2207.07486.pdf
>>        [2] https://datatracker.ietf.org/doc/draft-amsuess-core-cachable-oscore
>>        [3] https://datatracker.ietf.org/doc/rfc8724
>>        [4] https://datatracker.ietf.org/doc/rfc8824
>>        [5] https://datatracker.ietf.org/doc/draft-ietf-core-oscore-groupcomm
>>
>>        Am 15.08.22 um 20:09 schrieb Carsten Bormann:
>>
>> On 15. Aug 2022, at 19:41, Ted Lemon <mellon@fugue.com> wrote:
>>
>> On Aug 15, 2022, at 1:34 PM, Carsten Bormann <cabo@tzi.org> wrote:
>>
>> On 15. Aug 2022, at 17:11, Ted Lemon <mellon@fugue.com> wrote:
>>
>> This is a good question. I think we’d want to understand what the actual use case i
>> s for DNS-over-CoAP before proceeding with this,
>>
>> The main use case is systems that already implement CoAP and do not want to add mac
>> hinery for some protocols that are used only for very specific purposes.
>>
>> You’re going to have to construct a DNS packet. I presume CoAP is using DTLS,
>>
>> DTLS is one choice, defined in RFC 7252.  Newer constrained implementation often lo
>> ok at OSCORE instead, RFC 8613.
>>
>> so you have to have DTLS. So again, I don’t see how this reduces complexity. It see
>> ms like it adds complexity.
>>
>> I haven’t checked this, but I would expect there are enough differences in how DNSo
>> DTLS uses DTLS that the complexity of getting this right exceeds that of using CoAP
>> .
>>
>> I’ll leave that to the authors; obviously, all caches have limitations, but being a
>> ble to make use of CoAP caches along the way would be an improvement.
>>
>> It is not a given that caching with CoAP makes things better. What is CoAP’s cachin
>> g behavior? How will it handle short TTLs? Reading the document, it’s clear this ha
>> s not been considered.
>>
>> The -00 version does not have to solve those problems.  Slideware does exist for th
>> em...
>>
>> Given that the whole point of this is to make DNS connections private, I would assu
>> me that the cache shouldn’t have the credentials to peek into the packet. Except th
>> at it must. So I really don’t understand the threat model here.
>>
>> OSCORE was designed to offer some capabilities in this regard.  I’m sure a future d
>> ocument will include examples for that.
>> But this is work that best can be done in the working group, between implementers a
>> nd experts for the specific protocols and their caching behaviors.
>>
>> That can definitely be done (for a definition of “compress” — a concise form for so
>> me DNS data might be a better approach), but it to me it seemed working out the pro
>> tocol machinery first is the right way to proceed here.  (From the point of view of
>>   the CoAP protocol, this would just be a separate media type.)
>>
>> I don’t think this is true. Just because you can do something doesn’t mean you shou
>> ld. Until we can come up with some use case for this that solves a problem that isn
>> ’t already solved, I don’t think the IETF should be pursuing this work at all.
>>
>> It seems to me you are basing this view on a scan of the individual submission docu
>> ment.
>> WG discussions have happened (and many WG members are also cognizant of, e.g., CoAP
>>   caching behavior), so it is not a surprise that many of use come to a different co
>> nclusion.
>>
>> Grüße, Carsten
>>
>> _______________________________________________
>> core mailing list
>> core@ietf.org
>> https://www.ietf.org/mailman/listinfo/core
>>
>>
>>
>>
>
>
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core

-- 
Jaime Jiménez