Re: [dns-privacy] Fwd: New Version Notification for draft-peterson-dot-dhcp-00.txt

Thomas Peterson <nosretep.samoht@gmail.com> Tue, 07 May 2019 21:07 UTC

Return-Path: <nosretep.samoht@gmail.com>
X-Original-To: dns-privacy@ietfa.amsl.com
Delivered-To: dns-privacy@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A036512014A for <dns-privacy@ietfa.amsl.com>; Tue, 7 May 2019 14:07:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 YjI47aRzQ5qY for <dns-privacy@ietfa.amsl.com>; Tue, 7 May 2019 14:06:58 -0700 (PDT)
Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 E2369120086 for <dns-privacy@ietf.org>; Tue, 7 May 2019 14:06:57 -0700 (PDT)
Received: by mail-wm1-x32f.google.com with SMTP id y5so356822wma.2 for <dns-privacy@ietf.org>; Tue, 07 May 2019 14:06:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=9BPZN0YTJRWyUhJckBWT0wjbRo/fv/Wj2Td2mK8ahLs=; b=EA5CCGAPRyKxFV95EsxkD+OuEugNLDC7aBEG6dXsdetNh6Iheo/ppiCaC8IeHeJpnt xupe19UQZQ+IrnKineIv+gfhywkHr+rwJzonoKdSBhtjEUR75pUoz/G4WMgN3/wyO3+s sK1EJ9fd0ON7Ot2Rusuk3zc01FORGysA5EB0IYWXr01LdhIUEWtprbub3w+1ouoxqUkZ IKAgLuecp5wKFWM+AN1GbYl8YvZiCnhkZrgTYqpzkduH9gVT8+WzQWe4d0FRHpUvj3Hd WPWXLN4kV+pnHVPn/EF3+PueC/Od5a4G7k/fF6Hq81NtAXl0Nz4BNg44KGEmGt7t/qni Ifzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=9BPZN0YTJRWyUhJckBWT0wjbRo/fv/Wj2Td2mK8ahLs=; b=GShIxbItiMi/iuQ+UYYhlyIwesSe1EfcaV6SE8Hul+TLboBR7dT1G/vG8bw/zzkIue r6AwmyRjuRZpHrf4nTxW/g+kTVK7hX371R3b4p6/ey2SExEfoycoNIabkhFE96l9qvr5 tYnVfhk7WwHt3bKzkHR+tcflBeph8T+/kIgt+up/IS1vlyxhuNSKPuSJYfvbt8iTw3P7 gkZ0l9R0rx/xDzTGHjbKAv+tSj2pchL9N7q6j2eVgUyQ6jCYsD1TLsVh+4CB3DJ4UiaC KXyRw3ZaBGtLsZG6zARxk0mQGOCuOYXRQknEh5tPjbv9Q9FIW72QqyCGFciVHnRKSnb8 u7lg==
X-Gm-Message-State: APjAAAXkWP1E65c0oswkRry3TJqyBguGEc5rR/KQXAztA2e+cALeTx0Y i9wBvnbfTSWYP7ELGJeyzF6j7yEY
X-Google-Smtp-Source: APXvYqy94emE6ZRGoYxz2OzFEX2MZ7FYL04yGyxnVEZgOKXbN70ZuTptZ+Acg6cOySzWiPysypk52w==
X-Received: by 2002:a1c:6c08:: with SMTP id h8mr329789wmc.6.1557263215894; Tue, 07 May 2019 14:06:55 -0700 (PDT)
Received: from ?IPv6:2a02:c7f:63f:ed00:5867:b367:4c5a:c448? ([2a02:c7f:63f:ed00:5867:b367:4c5a:c448]) by smtp.gmail.com with ESMTPSA id b184sm471614wmh.17.2019.05.07.14.06.54 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Tue, 07 May 2019 14:06:54 -0700 (PDT)
To: Martin Thomson <mt@lowentropy.net>
Cc: dns-privacy@ietf.org
References: <155637241515.19889.8043108886886364414.idtracker@ietfa.amsl.com> <9a851741-c4e3-44fd-e659-91e7eec8a88a@gmail.com> <60e1d104-a484-e786-5f27-b37916db8ca6@riseup.net> <fa17715a-74a8-77f3-5310-3da10c40224c@gmail.com> <794f6a22-27f0-4652-ac88-a1dc5584e4c3@www.fastmail.com> <977f05e9-36a8-2f1b-14ed-ba4e5e4bcb69@gmail.com> <6aba3a8e-f9c8-4476-9746-3fee0e287df1@www.fastmail.com>
From: Thomas Peterson <nosretep.samoht@gmail.com>
Message-ID: <14bd58b6-06ee-b9c3-aa61-58758b4218f7@gmail.com>
Date: Tue, 07 May 2019 22:06:54 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:67.0) Gecko/20100101 Thunderbird/67.0
MIME-Version: 1.0
In-Reply-To: <6aba3a8e-f9c8-4476-9746-3fee0e287df1@www.fastmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/dns-privacy/WUZ5YRW7-bKlfLwITQY_OA9Hf10>
Subject: Re: [dns-privacy] Fwd: New Version Notification for draft-peterson-dot-dhcp-00.txt
X-BeenThere: dns-privacy@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <dns-privacy.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dns-privacy/>
List-Post: <mailto:dns-privacy@ietf.org>
List-Help: <mailto:dns-privacy-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 07 May 2019 21:07:01 -0000

If a mechanism that facilitates certificate validation is important then 
the only two options I believe we have are:

A: Providing a host name only within the option, and expect clients to 
use Do53 to resolve it, performing host name validation against the 
certificate CommonName or SubjectAltName.

B: Using IP address(es) only, with either Do53 option or this option 
providing the IP addresses, in addition to a non-DNS related identifier 
to facilitate certificate validation - perhaps the Serial Number, 
Subject Key Identifier or some other field or a derived field of data. 
Having an option with both a host name and IP addresses makes no real 
sense to me.

It seems the first option is probably the most appropriate and I should 
rewrite the draft accordingly, would you agree?

Regards

On 06/05/2019 05:25, Martin Thomson wrote:
> So the plan is:
> 
> 1. new option has > 0 entries: use those IP addresses with DoT.
> 
> 2. new option has 0 entries: use the other entry, but you can use DoT with confidence.
> 
> 3. no new option: you are left guessing, but you might be stuck with Do53.
> 
> No mention here of how you get the name for certificate validation still.  That's still important.
> 
> On Sat, May 4, 2019, at 02:29, Thomas Peterson wrote:
>> Thanks Martin.
>>
>> I believe there's a trade off decision between providing multiple IP
>> addresses and de-duplicating with Do53 options, offering host names, and
>> complexity. I've updated my version[0] with an attempt to solve the
>> de-duplication, one way we could implement host name support is to
>> either include another field designating the DNS server field as a
>> single host name, or mandate it be such and not have the field.
>>
>> Your opinions and those of others on the list appreciated.
>>
>> Regards
>>
>>
>> 0:
>> https://tools.ietf.org/rfcdiff?url1=https://tools.ietf.org/id/draft-peterson-dot-dhcp.txt&url2=https://thpts.github.io/draft-peterson-dot-dhcp/draft-peterson-dot-dhcp.txt
>>
>> On 29/04/2019 01:50, Martin Thomson wrote:
>>> For DoT and Do53 are similar enough that they can use the same IP address and the DoT configuration only contains a target name.  There is a problem with the first in terms of signaling that DoT is present, but that the server will be using an IP certificate.  I don't know what the answer is there.  I'd first try to see if requiring a name works.
>>>
>>> I certainly think that one name is sufficient.  Multiple IP addresses might be useful, but they can all answer to the same name (at least for the same provisioning domain).
>>>
>>> DoH is different, and I think that your other draft is right in saying that you just have to use Do53 (or even DoT, though why you would...) to find the IP address for that name.
>>>
>>>
>>> On Sun, Apr 28, 2019, at 21:12, Thomas Peterson wrote:
>>>> Thank you for the feedback.
>>>>
>>>> I agree with your suggestion around having host names and pins present
>>>> in the response and I'll have a think what it might look like -
>>>> suggestions here or on Github[0] welcome.
>>>>
>>>> However I disagree that combining both DoT and DoH is appropriate - to
>>>> me they are different protocols and I am concerned around complexity and
>>>> size limitations (particularly for DHCPv4) that would be needed.
>>>>
>>>> Regards
>>>>
>>>>
>>>> 0: https://github.com/thpts/draft-peterson-dot-dhcp
>>>>
>>>> On 2019/04/28 4:12, nusenu wrote:
>>>>> Thomas Peterson:
>>>>>> In a recent discussion in the DoH mailing list around a draft that
>>>>>> describes resolver discovery, Martin Thomson made the suggestion[0]
>>>>>> to use DHCP and RA options instead to transmit both DNS over HTTP
>>>>>> resolver addresses, but more relevant to this WG also DNS over TLS
>>>>>> endpoints as well. I have published draft-peterson-dot-dhcp, which
>>>>>> describe the relevant DHCPv4, DHCPv6, and RA options to support
>>>>>> this.
>>>>> [...]
>>>>>> 0:
>>>>>> https://mailarchive.ietf.org/arch/msg/doh/A2YthHjFwwwpC3d0MrOm1-syH48
>>>>> Thanks for starting this I-D.
>>>>>
>>>>> from the I-D:
>>>>>> Length:  Length of the DNS Servers list in octects
>>>>>>
>>>>>> DNS Servers:  One or more IPv4 addresses of DNS servers
>>>>> The I-D currently only contains IP addresses, not names as
>>>>> proposed by Martin:
>>>>>
>>>>> To quote Martin Thomson's email:
>>>>>> 2. We add a field to DHCP and RA that carries the "DoT resolver".
>>>>>> When this is present, the client resolves this name using the
>>>>>> resolver.  This resolution is unsecured.  The client then connects to
>>>>>> the resulting IP address and validates the certificate it presents
>>>>>> using this name.  This enables easier deployment of DoT because a
>>>>>> certificate for a name is easier to get than an IP certificate (it
>>>>>> also enables use of 1918 address and the like).
>>>>> So I'd suggest to have multiple fields:
>>>>> - IP address (optional)
>>>>> - name (for PKIX verification) (optional)
>>>>> - SPKI pins? (optional)
>>>>>
>>>>> I'd like to see a single document covering DoT and DoH
>>>>> DHCP/RA options (as Martin Thomson suggested)
>>>>> instead of two documents doing the same thing
>>>>> for each protocol separately.
>>>>>
>>>>> kind regards,
>>>>> nusenu
>>>>>
>>>>>
>>>>>
>>>>
>>