Re: [DNSOP] Status of "let localhost be localhost"?

Richard Barnes <rlb@ipv.sx> Wed, 02 August 2017 23:27 UTC

Return-Path: <rlb@ipv.sx>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E7D46131C89 for <dnsop@ietfa.amsl.com>; Wed, 2 Aug 2017 16:27:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ipv-sx.20150623.gappssmtp.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 VKBMSRLMOkWn for <dnsop@ietfa.amsl.com>; Wed, 2 Aug 2017 16:27:43 -0700 (PDT)
Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (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 6D2EC1241FC for <dnsop@ietf.org>; Wed, 2 Aug 2017 16:27:43 -0700 (PDT)
Received: by mail-wm0-x231.google.com with SMTP id t201so1764534wmt.1 for <dnsop@ietf.org>; Wed, 02 Aug 2017 16:27:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipv-sx.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SLtPwlo2jn9I/Ict/rhgFwjBinx0JcVd+dLDQPJA0hg=; b=urvmdNANzetsiB6bvJ+m8ylNCUKWUfJhmRJbJGOrMsrnPuLtq3KQPlD57P6t6phtFN CMFkDdy/UsjiNpmyvnSw4Jdgrc8FmlrCcBT6SE3uTvdqqsmMo04oAfrBlvuVM9J4VKHR YNEv+YAwFRvQxeKB/naF0u7MhgMfLpzHxUrta19BLrzuLNCSZB6BHXsxeg7ddFybjFnk ebJBAGRCxbOPX7Fip5TLiZBtoXbSp1LcBYxLlagXPxwH64U0yfNSd5UQN7ODDgm1ParZ BvhbP1hXSPNcDLFCFoLoDlYVR6i2kavFVJwA8hC2TLKvIAqApslC2GxZsGONGrRj/pPE UKbw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SLtPwlo2jn9I/Ict/rhgFwjBinx0JcVd+dLDQPJA0hg=; b=AT7yiIZ27vU1B2tVcHS3xwgsiX8gjU0/GKLAKfdnkjhIa69yqzy5S0ef12icAtKLfd 2YldU9TUbXi0SzcHQ86xjBfVz3EjtXlpkjBNT1FvMeP4TDlElusLKPz6ZMTqsm3Syi82 xoPHzczmseEP9HHjOk2ZXOGe/ITu1+rFrAfiRcWfhHEDv1WE/x9BgTZLNEP1EEjboGoU aEUqkaZ+baIwuNZzp0097LKEDD8MnmZ/ls3xs68Jj1DPmHDt8CrSAkOzL2SoLfUkYfDm Mmcd0femYvI8Anf9CLEkeB1/PDS5Qem/W/kznusgutRlkMY0OjIktBKqel/EY7HUE+u7 1jbw==
X-Gm-Message-State: AIVw113DbwqHnsRQrV0teAO/F3gstm2tGn+KMZLw7n9+tiy2vBIi1Aeh UrVoEjmhtThEQq72MGLMJWoCjzwNJOA1
X-Received: by 10.28.203.206 with SMTP id b197mr4908067wmg.120.1501716461814; Wed, 02 Aug 2017 16:27:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.225.5 with HTTP; Wed, 2 Aug 2017 16:27:40 -0700 (PDT)
Received: by 10.28.225.5 with HTTP; Wed, 2 Aug 2017 16:27:40 -0700 (PDT)
In-Reply-To: <F19EC009-0301-4C23-BC27-FFF021C77C02@fugue.com>
References: <05e469cf-1325-89fc-4a81-661f8647e869@eff.org> <CAKXHy=ctB=LZkX9j=8-Jy0NkTAs2tAesa4gmFhfp94O5=9U4TA@mail.gmail.com> <1dbb47a4-c6e2-97d2-a1d7-ce6c65a4042a@eff.org> <CACfw2hiX7U74n9+defcYiD7jLKZeLhtLM6WP5YM_WuAoA8ecYQ@mail.gmail.com> <CAL02cgRg6k7=b7berKr9J+9aL8PTS81nJ_yXQO8QTYqgiqXSbg@mail.gmail.com> <6B25B24C-4C80-4A04-BF27-2306F4A77EF6@fugue.com> <CAL02cgQ2z9Fze-Q2QWQ=+PHJEO_S3bTaq1fPJ6XSEwFUQ=ftvw@mail.gmail.com> <CAKXHy=eV0OBW+S308rdiHZ523foOgxYNB3i07RkeFJiTjMYQEQ@mail.gmail.com> <D9568E51-3C48-4BA3-9797-3F7756E857C9@fugue.com> <20170802180221.n7ezh5yzr5cuxklz@mycre.ws> <F19EC009-0301-4C23-BC27-FFF021C77C02@fugue.com>
From: Richard Barnes <rlb@ipv.sx>
Date: Wed, 02 Aug 2017 19:27:40 -0400
Message-ID: <CAL02cgQJ0UMHMJa8B59mZO8up7gPg=f8QbR_iyunW7ZCzScW8A@mail.gmail.com>
To: Ted Lemon <mellon@fugue.com>
Cc: Robert Edmonds <edmonds@mycre.ws>, Mike West <mkwst@google.com>, dnsop <dnsop@ietf.org>, Jacob Hoffman-Andrews <jsha@eff.org>, william manning <chinese.apricot@gmail.com>
Content-Type: multipart/alternative; boundary="94eb2c12f37c42a4ae0555cd9cc3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/b5fE7qwrjjUBotTZIPWwnA2ClNg>
Subject: Re: [DNSOP] Status of "let localhost be localhost"?
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Aug 2017 23:27:45 -0000

On Wed, Aug 2, 2017 at 4:27 PM, Ted Lemon <mellon@fugue.com> wrote:

> On Aug 2, 2017, at 2:02 PM, Robert Edmonds <edmonds@mycre.ws> wrote:
>
> draft-west-let-localhost-be-localhost-03 upgrades the requirements in
> RFC 6761 §6.3 to make them much stricter, for all applications,
> converting SHOULDs to MUSTs, etc. So we're not arguing about whether
> localhost "should" be treated specially, but whether it MUST be treated
> specially, by all applications. Can the W3C not impose stricter
> requirements on browser developers even if 6761 doesn't impose mandatory
> treatment for "localhost"?
>
>
> It should be MUST in both cases.   But writing that in an RFC doesn't make
> it so.   Bear in mind when you look at the W3C document that it is talking
> about what would be ideal, not what is actually present in browsers.
>
> As an app developer worried about security footprint, I would be wiser to
> be cautious and use ::1 or 127.0.0.1, rather than using localhost and
> relying on the name resolution infrastructure.   But the use case that I
> would be most skeptical about is using localhost in a URL.   I think that
> should be MUST NOT.   Apparently there is not wholehearted agreement on
> this topic, however... :)
>

You have this backwards.  Browser today do take the more cautious, IP-based
approach.  It sucks for developers.  They want to be able to use
"localhost", but in order to do it safely, they will need to hard-wire it
internally (since as you say, writing an RFC doesn't make resolvers
change).  And they don't want to hard-wire unless that's the clear semantic
because standards are what make the web work.

--Richard