DPRIVE WG | T. Reddy |
Internet-Draft | McAfee |
Intended status: Standards Track | D. Wing |
Expires: September 6, 2019 | |
M. Richardson | |
Sandelman Software Works | |
M. Boucadair | |
Orange | |
March 5, 2019 |
A Bootstrapping Procedure to Discover and Authenticate DNS-over-(D)TLS and DNS-over-HTTPS Servers
draft-reddy-dprive-bootstrap-dns-server-00
This document specifies mechanisms to automatically bootstrap endpoints (e.g., hosts, Customer Equipment) to discover and authenticate DNS-over-(D)TLS and DNS-over-HTTPS servers provided by a local network.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on September 6, 2019.
Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
Various network security services are provided by Enterprise, secure home and wall-gardened networks to protect endpoints (e.g,. hosts, IoT devices). Some of these security services act on DNS requests from endpoints. However, if an endpoint is configured to use public DNS-over-(D)TLS [RFC7858] [RFC8094] or DNS-over-HTTPS [RFC8484] servers, network security services in the local network cannot act efficiently on DNS requests from the endpoints. In order to act on DNS requests from endpoints, network security services can block DNS-over-(D)TLS traffic by dropping outgoing packets to destination port 853, and by identifying the domains offering DNS-over-HTTPS servers, DNS-over-HTTPS traffic can be blocked by dropping outgoing packets to these domains. If the endpoint has enabled strict privacy profile (Section 5 of [RFC8310]), and the network security service blocks the traffic to the public DNS server, DNS service is not available to the endpoint and ultimately the endpoint cannot access Internet. If the endpoint has enabled opportunistic privacy profile (Section 5 of [RFC8310]), and the network security service blocks traffic to the public DNS server, the endpoint will either fallback to an encrypted connection without authenticating the DNS-over-(D)TLS and DNS-over-HTTPS servers provided by the local network or fallback to clear text DNS, and cannot exchange encrypted DNS messages. This can compromise the endpoint security and privacy; some of the potential security threats are listed below:
The DPRIVE and DoH working groups have not defined an automated mechanism to securely bootstrap the endpoints to discover and authenticate DNS-over-(D)TLS and DNS-over-HTTPS servers in the local network. Some clients have pre-configured specific public DNS servers (such as Mozilla using Cloudflare's DNS-over-HTTPS server). If endpoints continue to use hard-coded public DNS servers, this has a risk of relying on few centralized DNS services. Further, Content Delivery Networks (CDNs) that map traffic based on DNS may lose the ability to direct end-user traffic to a nearby cluster in cases where a DNS service is being used that is not affiliated with the local network and which does not send "EDNS Client Subnet" (ECS) information to the CDN's DNS authorities [CDN].
The document proposes a mechanism to automatically bootstrap the endpoints to discover and authenticate the DNS-over-(D)TLS and DNS-over-HTTPS servers provided by the local network. The overall procedure can be structured into the following steps:
This document uses the terms defined in [RFC8499].
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119][RFC8174] when, and only when, they appear in all capitals, as shown here.
The following steps discuss the mechanism to automatically bootstrap IoT devices with local network's CA certificates and DNS server certificate. The below steps can also be used by CPE acting as DNS forwarders to discover and authenticate DNS-over-(D)TLS and DNS-over-HTTPS servers provided by the access networks.
The following steps explain the mechanism to automatically bootstrap an endpoint with the local network's CA certificates and DNS server certificate:
A DNS client discovers the DNS server in the local network supporting DNS-over-TLS, DNS-over-DTLS and DNS-over-HTTPS protocols by using the following discovery mechanism:
As reported in Section 1.7.2 of [RFC6125]:
In order to allow for certificate authentication between a DNS client and server while accommodating for the current best practices for issuing certificates, this document allows for configuring authentication domain name to clients. This name can be used as a reference identifier for authentication purposes.
The DHCPv6 DNS Reference Identifier option is used to configure an authentication domain name. The format of this option is shown in Figure 1.
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | OPTION_V6_AUTH_DOMAIN | Option-length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | authentication-domain-name (FQDN) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Figure 1: DHCPv6 DNS Reference Identifier option
Figure 1 are as follows:
DHCP clients MAY request options OPTION_V6_AUTH_DOMAIN as defined in [RFC8415], Sections 18.2.1, 18.2.2, 18.2.4, 18.2.5, 18.2.6, and 21.7. As a convenience to the reader, it is mentioned here that the DHCP client includes the requested option code in the Option Request Option.
If the DHCP client receives more than one instance of OPTION_V6_AUTH_DOMAIN option, it MUST use only the first instance of that option.
The DHCPv4 DNS Reference Identifier option is used to configure an authentication domain name. The format of this option is illustrated in Figure 2.
Code Length authentication domain name +-----+-----+-----+-----+-----+-----+-----+-- |TBA2 | n | s1 | s2 | s3 | s4 | s5 | ... +-----+-----+-----+-----+-----+-----+-----+-- The values s1, s2, s3, etc. represent the domain name labels in the domain name encoding.
Figure 2: DHCPv4 DNS Reference Identifier option
The fields of the option shown in Figure 2 are as follows:
To discover a authentication domain name, the DHCPv4 client MUST include OPTION_V4_AUTH_DOMAIN in a Parameter Request List Option [RFC2132].
If the DHCP client receives more than one instance of OPTION_V4_AUTH_DOMAIN option, it MUST use only the first instance of that option. The content of OPTION_V4_AUTH_DOMAIN is used as reference identifier for authentication purposes.
Once the DNS client has retrieved the authentication domain name for the DNS server, an S-NAPTR lookup with 'DPRIVE' application service and the desired protocol tag is made to obtain information necessary to securely connect to the DNS server. The S-NAPTR lookup is performed using an untrusted recursive DNS resolver from an untrusted source (such as DHCP).
This specification defines "DPRIVE" as an application service tag (Section 7.3.1) and "dns.tls" (Section 7.3.2), "dns.dtls" (Section 7.3.3), and "dns.https" (Section 7.3.4) as application protocol tags.
If no DNS-specific S-NAPTR records can be retrieved, the discovery procedure fails for this authentication domain name. However, before retrying a lookup that has failed, a DNS client MUST wait a time period that is appropriate for the encountered error (e.g., NXDOMAIN, timeout, etc.).
The bootstrapping procedure to discover and authenticate DNS-over-(D)TLS and DNS-over-HTTPS Servers MUST be enabled by the endpoint in a trusted network (e.g. Enterprise, Secure home networks) and disabled in a untrusted network (e.g. public WiFi network), similar to the way VPN connection from the endpoint to a VPN gateway is disconnected in a trusted network and VPN connection is established in a untrusted network.
If the endpoint has enabled strict privacy profile, and the network security service blocks the traffic to the privacy-enabling public DNS server, a hard failure occurs and the user is notified. The user has a choice to switch to another network or if the user trusts the network, the user can enable strict privacy profile with the DNS-over-(D)TLS or DNS-over-HTTPS server discovered in the network instead of downgrading to opportunistic privacy profile.
The primary attack against the methods described in Section 5 is one that would lead to impersonation of a DNS server. An attacker could attempt to compromise the DHCP discovery and S-NAPTR resolution. The attack is prevented by validating the certificate presented by the DNS server. DHCP-related security considerations are discussed in [RFC2131] and [RFC8415].
Security considerations in [I-D.ietf-anima-bootstrapping-keyinfra] and [RFC7804] need to be taken into consideration.
IANA is requested to assign the following new DHCPv6 Option Code in the registry maintained in http://www.iana.org/assignments/dhcpv6-parameters:
Option Name | Value |
---|---|
OPTION_V6_AUTH_DOMAIN | TBA1 |
IANA is requested to assign the following new DHCPv4 Option Code in the registry maintained in http://www.iana.org/assignments/bootp-dhcp-parameters/:
Option Name | Value | Data length | Meaning |
---|---|---|---|
OPTION_V4_AUTH_DOMAIN | TBA2 | Variable; the maximum length is 255 octets. | Includes the authentication domain name. |
This document requests IANA to make the following allocations from the registry available at: https://www.iana.org/assignments/s-naptr-parameters/s-naptr-parameters.xhtml.
Thanks to Joe Hildebrand for his comments and suggestions.
[CDN] | "End-User Mapping: Next Generation Request Routing for Content Delivery", 2015. |
[I-D.ietf-opsawg-mud] | Lear, E., Droms, R. and D. Romascanu, "Manufacturer Usage Description Specification", Internet-Draft draft-ietf-opsawg-mud-25, June 2018. |
[RFC8310] | Dickinson, S., Gillmor, D. and T. Reddy, "Usage Profiles for DNS over TLS and DNS over DTLS", RFC 8310, DOI 10.17487/RFC8310, March 2018. |
[RFC8499] | Hoffman, P., Sullivan, A. and K. Fujiwara, "DNS Terminology", BCP 219, RFC 8499, DOI 10.17487/RFC8499, January 2019. |