Re: [apps-discuss] SRV and service discovery, draft-ietf-appsawg-webfinger-04

"John Levine" <johnl@taugh.com> Sun, 25 November 2012 16:32 UTC

Return-Path: <johnl@iecc.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 208BE21F8599 for <apps-discuss@ietfa.amsl.com>; Sun, 25 Nov 2012 08:32:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.596
X-Spam-Level:
X-Spam-Status: No, score=-105.596 tagged_above=-999 required=5 tests=[AWL=-2.997, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JliXKLRtYfyH for <apps-discuss@ietfa.amsl.com>; Sun, 25 Nov 2012 08:32:24 -0800 (PST)
Received: from leila.iecc.com (leila6.iecc.com [IPv6:2001:470:1f07:1126:0:4c:6569:6c61]) by ietfa.amsl.com (Postfix) with ESMTP id 402B321F8588 for <apps-discuss@ietf.org>; Sun, 25 Nov 2012 08:32:24 -0800 (PST)
Received: (qmail 62682 invoked from network); 25 Nov 2012 16:32:23 -0000
Received: from leila.iecc.com (64.57.183.34) by mail1.iecc.com with QMQP; 25 Nov 2012 16:32:23 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:vbr-info; s=50b24817.xn--30v786c.k1211; i=johnl@user.iecc.com; bh=6tNOlNRRZ40Ky37Bqr+JZ1zGq8cprQFONq8MjNLST8E=; b=zRYofDw2uM8iTjG4hTA9klxlMVdOMQmKZujwkWi+gP5NMqnKVdRC3j6h68caiCmwVCqnCkerpMdqwYzp56uMDMM875QcKatTqvy6AYKTwrzprV7o4ctuoW1C+hlrHOLFkTx7bqLRNXpSNNycOdxv48ZMjLvozSO1asYgFTc/Sro=
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:vbr-info; s=50b24817.xn--30v786c.k1211; olt=johnl@user.iecc.com; bh=6tNOlNRRZ40Ky37Bqr+JZ1zGq8cprQFONq8MjNLST8E=; b=n5pZR3BXdm6VPwSn6Fm/yNg+fREpgqfx5glZ50dvx+QKWXaKclPezAqQ2TdF8H+j4c+pqwXxh9sgoObLHE6u/uXiHRyNzVGcf3WEk1hfglgWnnCUSoMa3XNPL4Vh5BGY2uvg0Syqn5OczRf2X2O473wPiQaJhyTXT/OqLMRichQ=
VBR-Info: md=iecc.com; mc=all; mv=dwl.spamhaus.org
Date: Sun, 25 Nov 2012 16:32:00 -0000
Message-ID: <20121125163200.407.qmail@joyce.lan>
From: John Levine <johnl@taugh.com>
To: apps-discuss@ietf.org
In-Reply-To: <464D7FE4-33F2-4039-8B44-AE1BF50E422F@frobbit.se>
Organization:
X-Headerized: yes
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 7bit
Subject: Re: [apps-discuss] SRV and service discovery, draft-ietf-appsawg-webfinger-04
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 25 Nov 2012 16:32:25 -0000

>> not unlike the ones here.)  But if after 16 years, the people who
>> maintain Javascript are unpersuaded that would be worth tneir time to
>> add SRV lookups, it's not because they are stupid.
>
>Who has to do that persuasion?

People who think doing SRV lookups is a good idea.  You, perhaps.

>I.e. is it not part of an initiative like this, that want some service
>discovery, to ensure JavaScript is doing The Right Thing?

Presumably, but arguments that end at "add SRV to Javascript" are not
productive.

It is not clear to me even at what level it would be appropriate to do
SRV lookups.  One possibility might be new builtin JS functions,
although I don't understand at this point how that would interact with
the single origin rule.  

Another possibility is a new URL scheme, along the lines
of draft-jennings-http-srv, or more generally like this:

  srv[s]://example.com:foo/bar 

does a SRV looksup of 

  _foo._tcp.example.com

and turns the request into

  http[s]://<target>:<port>/bar

(Add hand waving about what to do with the priority and weight if
there are multiple answers, along the lines of what it already does
with multiple A or AAAA answers.)

If people think this is a good idea, they sould write it up and try
implementing it in some of the open source browsers that people use.
Or else stop kvetching.

R's,
John