Re: [art] The web+ URI scheme prefix
"Roy T. Fielding" <fielding@gbiv.com> Wed, 22 February 2023 18:08 UTC
Return-Path: <fielding@gbiv.com>
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 897F8C14CE4C for <art@ietfa.amsl.com>; Wed, 22 Feb 2023 10:08:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gbiv.com
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 vy-x_GEvyDXg for <art@ietfa.amsl.com>; Wed, 22 Feb 2023 10:08:40 -0800 (PST)
Received: from bisque.elm.relay.mailchannels.net (bisque.elm.relay.mailchannels.net [23.83.212.18]) (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 82F71C14CE46 for <art@ietf.org>; Wed, 22 Feb 2023 10:08:40 -0800 (PST)
X-Sender-Id: dreamhost|x-authsender|fielding@gbiv.com
Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 3E33F7E1364; Wed, 22 Feb 2023 18:08:39 +0000 (UTC)
Received: from pdx1-sub0-mail-a273.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id A6F047E123E; Wed, 22 Feb 2023 18:08:38 +0000 (UTC)
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1677089318; a=rsa-sha256; cv=none; b=vQQImtnRLoqFCEFOv/CDBbEMA5n9qBgWoDPIzLUA4VXOPYT4vP7yxMOrqkD32zWiPfv/0+ yetgx2LnNag691Ae/maesX8GLy5OOT9Gp39YZgpgs53U2FaG387sBXf1C3D8BgD3bBEl3B toK/f0g1w/1q6hk7kTYwuHVHApC9FhfeLt1gX6RldgyZFKGjvfKXoC2cK43WtHUTxOcfAf bJzZNbERY88mXhVR2wn8/mUXp7Zxjpp5ZS0/LscLtBbGSD0e00h5WotuO2Y/mb4W7xTe6V ZhCGYlbe4NHnIX1X5bCAy/RsneVcyusWcoDtYUeUO2jZ+PY/0dWrYYeMQ0LcfA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1677089318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=O+mLCZNYef91dIm2csumhLjkriCf8wT1T+nVsqlghG8=; b=yjR45HFdw0EfMynA62021QAQiZD3I7n/8u+qWT2GLkTBz23m413oToFe7bZqujHugpzG3/ 6IWc6Rham2ExXWO/RYizMlJMINKL0ExSDrYymQQL/BC+/u3CKdPiY0YQnGe6XoUBrxVI7I l2ZBIBLvUwnxKA6t00T7HZiKDXfFxavbjPucy+xhfTtzSgXWxke+W/5iYYdKs4V1J1OBXh C/aU2zE0WyKY1+5ciLUwJdIhPmhoehhlrmaDuoofrz8r4NHgV68xS2kknHgQukf+7BKhNy v0/0KYvy2ps0L/3/CzLMG6VjnJ2jt+FxFDpB8tia8pCZPd6xK1WB4AdsDteDgQ==
ARC-Authentication-Results: i=1; rspamd-9788b98bc-lgvr7; auth=pass smtp.auth=dreamhost smtp.mailfrom=fielding@gbiv.com
X-Sender-Id: dreamhost|x-authsender|fielding@gbiv.com
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|fielding@gbiv.com
X-MailChannels-Auth-Id: dreamhost
X-Cure-Callous: 1032ab54601a06c7_1677089319032_3839440945
X-MC-Loop-Signature: 1677089319032:2695978662
X-MC-Ingress-Time: 1677089319032
Received: from pdx1-sub0-mail-a273.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.97.48.87 (trex/6.7.1); Wed, 22 Feb 2023 18:08:39 +0000
Received: from smtpclient.apple (ip72-194-77-117.oc.oc.cox.net [72.194.77.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: fielding@gbiv.com) by pdx1-sub0-mail-a273.dreamhost.com (Postfix) with ESMTPSA id 4PMPKf1NlXz3N; Wed, 22 Feb 2023 10:08:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gbiv.com; s=dreamhost; t=1677089318; bh=MJCJsnpQw5Tp7RJfd8AOTxohSTI8QEBniQIC4/iXh7o=; h=Content-Type:Subject:From:Date:Cc:Content-Transfer-Encoding:To; b=ZAXP6qAWOJbCOgo0HCaJ9bRKcU6a8FuktYQItfd7rBdmLpeVlSsVdGK/hTRaKz/V/ 5CjGy1URE3KS/5KKD74zueRPCCMyTdkBiznLxfInlDL8ymdT/2FBs71x9paYjZacbg 8Sk5KqqNf22O3pctzPRiMWEZuFo/jam1LDikSl4qG5+uz1QeGP9pUXKDNBrkBXk/fn zNITUcdgw/4XHMJ7Eb7IWLiUm2pvn9WO5ZbrANGnTOBh3ijWq+P15CLMNGfA+g9qok j/pUvs2mteSTTaRmIBFgCbZauVNV2C2uVXyRU4/JuXnUjq2e4adwLWvUnQoEfPONpM csiODMkncYMWA==
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\))
From: "Roy T. Fielding" <fielding@gbiv.com>
In-Reply-To: <644ae777-8d07-990f-d6a1-e2b766d8a61a@gmail.com>
Date: Wed, 22 Feb 2023 10:08:26 -0800
Cc: art@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <30CCF853-426D-4059-ABFF-F00C055535AA@gbiv.com>
References: <703b076f-b353-71ae-58fc-1e8592b8fa9b@gmail.com> <FDD6CF1A-EE04-4CB8-8CB8-248A7DD05FB4@gbiv.com> <bc4ec28d-1407-eedd-63d1-800e3a6bff04@gmail.com> <fbe803ca-4c02-49b1-aece-b312ee811893@betaapp.fastmail.com> <46345a58-7cfd-1323-543f-3ce1b2cf5899@gmail.com> <938228c5-dbdd-4bee-aed1-36828bc067f5@betaapp.fastmail.com> <43a73eff-a555-b5cf-faef-c9b56b469104@ninebynine.org> <644ae777-8d07-990f-d6a1-e2b766d8a61a@gmail.com>
To: "Soni L." <fakedme+art@gmail.com>
X-Mailer: Apple Mail (2.3731.400.51.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/art/Q3B8EC5kYodqNN1UhswddTB_90g>
Subject: Re: [art] The web+ URI scheme prefix
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: Wed, 22 Feb 2023 18:08:44 -0000
> On Feb 22, 2023, at 7:15 AM, Soni L. <fakedme+art@gmail.com> wrote: > > The fact that browsers do treat web+ as special and the fact that it's not documented/acknowledged by the IETF already has a potential to cause unexpected and unwelcome consequences. > > Yes, in an ideal world it would've been more like web://target/protocol/data (e.g. web://example.org/ap/user/Foo) but browsers already went with web+ so we're sticking with web+. It's a historical pain point. > > And we uh did just actually release an app that supports fallbacks for web+. (Also, "fallback" is the language used by the Windows APIs we're using.) Argh, this is all getting confused. I did not suggest defining a new universal scheme for all future protocols/names to be hierarchically bound within. The URI scheme is the bit that is universal. The Web is designed for new schemes to be defined when and where they are needed. Whether the scheme is handled as an alias (resolved to some other scheme) or as a network protocol (resolved by accessing a resource on the Internet) or as a name (not resolved at all but useful for comparison) is completely irrelevant to the conceptual purpose of URI schemes. The only reason this is difficult, in any way, is because someone in browser design (i.e., someone trying to fix what they thought was a bug) decided that having a fixed set of URI schemes was "better" because then all of the other schemey:hrefs could be treated as relative URLs. This is what happens when you think "fixing the Web" means ignoring HTML authoring mistakes. Later, after years of people pointing out that this was a horrible thing to do to the Web because it ended the extensibility of schemes, browser folks added the safelisted schemes for recognized extensions and the "web+schemes" workaround for private extensions. The web+ prefix serves the same purpose as the x- prefix of IMS field names, and is equally flawed in practice. When you come to the IETF and say we need a registry for web+ schemes, the answer is that the ENTIRE purpose of web+ is to not be registered schemes. Register a normal scheme and ask for it to be safelisted. End of discussion. The problem with using extensions as a resolution mechanism for fediverse identifiers is that ActivityPub uses https identifiers, and those https identifiers require an end-to-end encryption to the origin for both privacy and security. A non-standard mechanism that intercepts those identifiers and sends them to some other federated service authority for resolution (or even a third party extension that merely rewrites the URL) would violate the security properties required of the https identification mechanism. Hence, the only way to implement authority-independent identification of ActivityPub resources is for the link author to choose a URI scheme that is safe for that purpose, which means a publicly standardized and registered URI scheme that is commonly implemented within the browser's trusted scheme resolvers. The way to do that is to define such a scheme as an Internet Draft (or a W3C draft recommendation) and have all the right people verify that it defines a safe implementation of fediverse-identification even though it only presumes a secure channel to the user's local instance of choice, rather than a secure channel to the link author's personal instance. And then convince the major browsers to implement that scheme. It is easier than it sounds. Far easier than trying to debate your way into a design that makes it easy for untrusted parties to observe and potentially report upon every user's fediverse requests. The web+ mechanism might be useful for prototypes, but is deliberately not secure enough for commonly standardized protocols like ActivityPub. ....Roy
- [art] The web+ URI scheme prefix Soni L.
- Re: [art] The web+ URI scheme prefix Roy T. Fielding
- Re: [art] The web+ URI scheme prefix Soni L.
- Re: [art] The web+ URI scheme prefix Martin Thomson
- Re: [art] The web+ URI scheme prefix Soni L.
- Re: [art] The web+ URI scheme prefix Martin Thomson
- Re: [art] The web+ URI scheme prefix Soni L.
- Re: [art] The web+ URI scheme prefix worley
- Re: [art] The web+ URI scheme prefix Anjam Saqib
- Re: [art] The web+ URI scheme prefix Graham Klyne
- Re: [art] The web+ URI scheme prefix Soni L.
- Re: [art] The web+ URI scheme prefix Roy T. Fielding
- Re: [art] The web+ URI scheme prefix Soni L.
- Re: [art] The web+ URI scheme prefix Roy T. Fielding
- Re: [art] The web+ URI scheme prefix Soni L.
- [art] Securen't contexts (was: Re: The web+ URI s… Soni L.
- Re: [art] The web+ URI scheme prefix Soni L.