Re: Adding user@ to HTTP[S] URIs
Amos Jeffries <squid3@treenet.co.nz> Sat, 25 January 2020 12:43 UTC
Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 67C3E120804 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 25 Jan 2020 04:43:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.304
X-Spam-Level:
X-Spam-Status: No, score=-1.304 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_BL_SPAMCOP_NET=1.347, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 BlRXsICZYeeU for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sat, 25 Jan 2020 04:43:25 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [IPv6:2603:400a:ffff:804:801e:34:0:38]) (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 9D0F412006F for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sat, 25 Jan 2020 04:43:25 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.89) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1ivKjq-0001uH-0y for ietf-http-wg-dist@listhub.w3.org; Sat, 25 Jan 2020 12:40:34 +0000
Resent-Date: Sat, 25 Jan 2020 12:40:34 +0000
Resent-Message-Id: <E1ivKjq-0001uH-0y@frink.w3.org>
Received: from titan.w3.org ([2603:400a:ffff:804:801e:34:0:4c]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <squid3@treenet.co.nz>) id 1ivKjo-0001tP-40 for ietf-http-wg@listhub.w3.org; Sat, 25 Jan 2020 12:40:32 +0000
Received: from [116.251.193.116] (helo=treenet.co.nz) by titan.w3.org with esmtp (Exim 4.92) (envelope-from <squid3@treenet.co.nz>) id 1ivKjg-0000lX-Dn for ietf-http-wg@w3.org; Sat, 25 Jan 2020 12:40:31 +0000
Received: from [192.168.20.251] (unknown [121.98.62.26]) by treenet.co.nz (Postfix) with ESMTPA id 499B2305C83 for <ietf-http-wg@w3.org>; Sun, 26 Jan 2020 01:38:59 +1300 (NZDT)
To: ietf-http-wg@w3.org
References: <5E2B76EC.5000300@openfortress.nl> <BB50C7B7-3861-4054-AFB7-6F1C287AFEE6@gmail.com> <5E2C2039.7080303@openfortress.nl>
From: Amos Jeffries <squid3@treenet.co.nz>
Autocrypt: addr=squid3@treenet.co.nz; prefer-encrypt=mutual; keydata= mQINBFiOEzoBEADuuawHiMOqHBjL5Mk6IfPCgJmY3oqJDmykzve+vDh7jArtFnOG067ftaML ligGh3y6LOLh3r1kIZ254CPHuKFYssA1p9mXL9YJnZ1qHrQVhqZwDq7dH/UtBQ2IM1QukoTo 1VRTB3ppiPHKTSa2zZ/kgBs0d+1MOi8DY2SmIDYVhUJI55qSqpxlcs6MyG4KxlEPD35J3nL4 hIzLzuzIbZoUO6M+dLvnqiFu2+mm6o75nxYmq+JCPwN5biETkSvndqr56t/W0ajlU1MpFXfO YJ8PfutrIBUPsRJUqWQjGg6uXp4torC1q2XasfSKVIQ+8duw7MCrkAfRv5BtDtpesAAsScvY TwUaDYVioiNNK1uJQZlrpYY4I0EbHI4GHKq7Q4VmotcQ2BhigqRIdh7kD3corddhlLTvTs0G 5Pjk/T2ZoMFZI03g+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kVANBo1KmE+Ycw92IMcz2ev4VFw+pbqZ/swHqa3y3L5cT7Keqgc67 wiahSZRc5zM0jJWxN//lpgcdnDRI1OSLCrMMI69yc2QMzUZu87BtEJzm0DBy2pIKEni9dSCw wMITUsU21Ny3RmaV7fmXYAyp9pcaQQWGOb2CIvU7k60eLWgfNTo5SGI56WYC+ndod7vPU+sw JVbKrQKqfwO5JbdY9YPbo++Z6kfrnbkmm3wkJ4W8dOcrkLYbmOk7sColcQhVbmGy74Ggzl75 R22Q7+Uhjj9iq0Kv3CGQ3rKVdXOfAo5OekdaMDx9t9HoirGiokcyCPTy7wAyvQ75lbrygxCm e05XBfLZHrMp+SdM8ONsdgIe7U0bI85zYegceSagzCtBdB8HQ10TFg==
Message-ID: <0bb7f153-57ea-7cb4-59e2-26ee2e41d928@treenet.co.nz>
Date: Sun, 26 Jan 2020 01:38:55 +1300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1
MIME-Version: 1.0
In-Reply-To: <5E2C2039.7080303@openfortress.nl>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=116.251.193.116; envelope-from=squid3@treenet.co.nz; helo=treenet.co.nz
X-W3C-Hub-Spam-Status: No, score=-2.8
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, RCVD_IN_BL_SPAMCOP_NET=1.347, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1ivKjg-0000lX-Dn 1a44147d32fba54539e800e69138d86f
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Adding user@ to HTTP[S] URIs
Archived-At: <https://www.w3.org/mid/0bb7f153-57ea-7cb4-59e2-26ee2e41d928@treenet.co.nz>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37278
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>
On 26/01/20 12:02 am, Rick van Rein wrote: > Hi Michael, > > Thanks for your positive response. > >>> Most protocols support users under domain names, but HTTP does not. >> This is incorrect. userinfo@ is part of the generic URI format, so it must still be supported by http:// URL parsers. The difference is that the client is expected to map the section into data sent in another way. A client is forbidden from *sending* the userinfo@ on-wire. Implementation differences in remote parser is where problems start occuring. >> Well, it *does* support users within the "path" part of the URL. For instance, here's a page I just made for you, that's scoped to my user account: >> >> https://invisible.college/@toomim/hello-rick > > These patterns are common, examples below, and that's why I believe that > we should support mapping users into the HTTP space. It is useful if > the pattern can be consistent among servers, and in comparison with > other protocols, I think. HTTP is missing that part of URL syntax. > > Having a place to specify user name syntax and semantics is a good > example. This can help to squash numerous attacks that may be tried > with the generic path-based format that you are showing. We can then > restrict the grammar to that of a utf8-username in RFC 7542 and thus > exclude spaces, ":" and "@" and other junk and have it enforced (!) at > the HTTP level instead of in scripted applications of varying quality. > Those rules already exist for the initiel userinfo@ section. The core of all these issues is that they are not being obeyed by software in reality. Also please be aware that the latest HTTP versions 2+ do not send their URL as a single text string. It is broken down into a set of fields sent in headers. So the parsing related issues are no longer such a bad concern there. However that also means that any new URI part must be sent as a header anyway - which is no different in HTTP than pulling username from a (Proxy-)Authorization header. >>> Usage patterns in the wild do suggest a desire to have this facility. >> >> I didn't see any example usage patterns in the internet draft. Can you provide some of them, so that we know what we are working with? > > There are many examples of the URL-mapped form like you proposed, and > they seem to be telling that people (or groups) want to represent their > online identity in an HTTP URL. They cannot be interpreted as user > names, and code to access it ends up with in-situ coding. > > Conventionally structured mapping, > https://www.cabrillo.edu/~rnolthenius/ > > Site-specific structure, > https://nlnet.nl/people/leenaars.html > https://people.utwente.nl/m.vankeulen > https://www.facebook.com/dssvtartaros/ > > Unstructured mappings, > http://catb.org/esr/ > http://rick.vanrein.org > > These could be consistently represented as > https://rnothenius@www.cabrillo.edu > https://leenaars@nlnet.nl > https://m.vankeulen@people.utwente.nl > https://dssvtartaros@www.facebook.com > http://esr@catb.org/esr > http://rick@vanrein.org > These are valid URLs today - all have the same value: 1) the typically seen absolute URL: http://example.com@localhost.local/ 2) path delimiter is optional for empty paths http://example.com@localhost.local 3) relative hostname is valid in some DNS domains http://exmaple.com@localhost 4) dotless cc-TLS is also valid hostname http://exmaple.com@local 5) on-wire URLs: http://local http://localhost http://localhost.local > I pioneered this idea with a crude hack based on Basic authentication, > which is highly inconsistent across browsers because Basic and Digegst > have always misinterpreted the URL userinfo as authentication names, That is not a misinterpretation. The content is site-specific. If a site has URLs with userinfo@ *and* challenges for authentication credentials, then it is reasonable for the field to be interpreted as the answer to the challenge. Amos
- Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Michael Toomim
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Amos Jeffries
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Daniel Stenberg
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Paul Vixie
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Julian Reschke
- Re: Adding user@ to HTTP[S] URIs James Fuller
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Amos Jeffries
- Re: Adding user@ to HTTP[S] URIs Matthew Kerwin
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Daniel Stenberg
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Julian Reschke
- Re: Adding user@ to HTTP[S] URIs Daniel Stenberg
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Daniel Stenberg
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Amos Jeffries
- Re: Adding user@ to HTTP[S] URIs Willy Tarreau
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein
- Re: Adding user@ to HTTP[S] URIs Rick van Rein