Re: [art] Putting actual credentials in URIs was an accident of history, let's repurpose those fields instead?
worley@ariadne.com Tue, 28 February 2023 01:45 UTC
Return-Path: <worley@alum.mit.edu>
X-Original-To: art@ietfa.amsl.com
Delivered-To: art@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1D0CFC14CE4E for <art@ietfa.amsl.com>; Mon, 27 Feb 2023 17:45:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.98
X-Spam-Level:
X-Spam-Status: No, score=-0.98 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, PP_MIME_FAKE_ASCII_TEXT=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcastmailservice.net
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 RntnOEBPGZ4r for <art@ietfa.amsl.com>; Mon, 27 Feb 2023 17:45:03 -0800 (PST)
Received: from resqmta-h1p-028590.sys.comcast.net (resqmta-h1p-028590.sys.comcast.net [96.102.200.8]) (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 80F63C152EFE for <art@ietf.org>; Mon, 27 Feb 2023 17:45:03 -0800 (PST)
Received: from resomta-h1p-027911.sys.comcast.net ([96.102.179.202]) by resqmta-h1p-028590.sys.comcast.net with ESMTP id Wcc9pmcqf4c1KWp1Bplh6C; Tue, 28 Feb 2023 01:43:01 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcastmailservice.net; s=20211018a; t=1677548581; bh=SdplhO4+BNrqK53ayMjVba2dudHfjQgMCX+rEzHmC00=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID:Xfinity-Spam-Result; b=ZccRI4zcl+Km5raL4nE41Nbe+nNOMiJf+Yp1njninrng3QYDYkwZWO2aNp/H1eabx llOpr0sG9NHZYicR6CpHRTfEoO/QlhKp+pKqcCy0cuMr0bAXxyIeSX4Vu4h/VeLwPJ sHQZVNAw0vyeeQcDc3iWycmUu6c2RVFC8turaLfqRxhjWXZ+UCJILhJcZ4a/pAcrRn Mjh2hLxxnDi4vO4HfiJnSD9HawjeHcYDsk1f+h4AtfQIvaqO4lbwpOmQMDNZzFQ8WE jcol4RziW6jdI5gHOrf8r3ELH6n9Nk90hz9W+Et12eZ1Y4lFwOnjqRDKG911mWwflF XCeBRlWSHccdA==
Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4a00:430::9e4e]) by resomta-h1p-027911.sys.comcast.net with ESMTPA id Wp0mpDsmFN2puWp0npe52e; Tue, 28 Feb 2023 01:42:39 +0000
X-Xfinity-VMeta: sc=49.00;st=legit
Received: from hobgoblin.ariadne.com (localhost [127.0.0.1]) by hobgoblin.ariadne.com (8.16.1/8.16.1) with ESMTPS id 31S1gZ8N2782063 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 27 Feb 2023 20:42:35 -0500
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.16.1/8.16.1/Submit) id 31S1gZPY2782060; Mon, 27 Feb 2023 20:42:35 -0500
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: "Soni L." <fakedme+art@gmail.com>
Cc: art@ietf.org
In-Reply-To: <9568aaa5-21f3-a40c-92ed-57d8b217813f@gmail.com> (fakedme+art@gmail.com)
Sender: worley@ariadne.com
Date: Mon, 27 Feb 2023 20:42:35 -0500
Message-ID: <871qmaa7lg.fsf@hobgoblin.ariadne.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/A6PXgEvhZ50JHViQgWntdCxzg9U>
Subject: Re: [art] Putting actual credentials in URIs was an accident of history, let's repurpose those fields instead?
X-BeenThere: art@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Applications and Real-Time Area Discussion <art.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/art>, <mailto:art-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/art/>
List-Post: <mailto:art@ietf.org>
List-Help: <mailto:art-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/art>, <mailto:art-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 28 Feb 2023 01:45:08 -0000
"Soni L." <fakedme+art@gmail.com> writes: > So how bad of an idea would it be to repurpose "username" and "password" > in URIs for all sorts of stuff? E.g. > https://soniex2.tumblr.com/post/705832532473724928/so-heres-our-plan-we-wanna-have-web-git-urls > > --- > > so hereâs our plan: we wanna have web+git URLs, and it should look like > web+git://username:namespace@hostname/path > > so for example, on something like github, username = the username of the > owner of the repo, namespace = always empty since github doesnât support > namespaces, hostname = github.com, path = repo name. The current standard is RFC 3986, which says in section 3.2.1: The userinfo subcomponent may consist of a user name and, optionally, scheme-specific information about how to gain authorization to access the resource. [...] Use of the format "user:password" in the userinfo field is deprecated. If I read it correctly, "user@" is considered fine but adding ":password" is not. But it's clear that there's no firm definition of what "password" is or does, other than it should be kept secret. E.g. Applications should not render as clear text any data after the first colon (":") character found within a userinfo subcomponent unless the data after the colon is the empty string (indicating no password). Personally, I would move the namespace information to the first component of the path, which is a place that has the right semantics. That is, I'd change your example to web+git://username@hostname/namespace/path Indeed, "username" is generally used to designate *what user you are acting as while accessing the data* not an identifier of what user owns the data. So if "username = the username of the owner of the repo", your semantics are better aligned to use web+git://hostname/username/namespace/path or perhaps web+git://hostname/~username/namespace/path Dale