
From nobody Wed Sep 16 02:20:33 2015
Return-Path: <saul@ag-projects.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2EFA71B399D for <stox@ietfa.amsl.com>; Wed, 16 Sep 2015 02:20:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.011
X-Spam-Level: *
X-Spam-Status: No, score=1.011 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HELO_MISMATCH_NET=0.611, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7] autolearn=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 G-GKX1ZYaIgD for <stox@ietfa.amsl.com>; Wed, 16 Sep 2015 02:20:31 -0700 (PDT)
Received: from mail.sipthor.net (node16.dns-hosting.info [81.23.228.161]) by ietfa.amsl.com (Postfix) with ESMTP id CF5A01B395B for <stox@ietf.org>; Wed, 16 Sep 2015 02:20:30 -0700 (PDT)
Received: from [192.168.1.38] (a82-94-59-122.adsl.xs4all.nl [82.94.59.122]) by mail.sipthor.net (Postfix) with ESMTPSA id 919C516DC6C3; Wed, 16 Sep 2015 11:20:28 +0200 (CEST)
From: =?iso-8859-1?Q?Sa=FAl_Ibarra_Corretg=E9?= <saul@ag-projects.com>
X-Pgp-Agent: GPGMail 2.5.1
Content-Type: multipart/signed; boundary="Apple-Mail=_23F30A78-37BE-43D0-AE10-B2C70C544714"; protocol="application/pgp-signature"; micalg=pgp-sha512
Date: Wed, 16 Sep 2015 11:20:22 +0200
Message-Id: <FE9D0BFF-5DC4-43FE-84C5-8D9651E4A173@ag-projects.com>
To: stox@ietf.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/IxVaKXxIihgBx9LvCDFfd07r9KQ>
Cc: Ben Campbell <ben@nostrum.com>, Peter Saint-Andre - &yet <peter@andyet.net>
Subject: [Stox]  Updated writeup for draft-saintandre-stox-7248bis
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Sep 2015 09:20:32 -0000

--Apple-Mail=_23F30A78-37BE-43D0-AE10-B2C70C544714
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

Hi,

I just updated the shepherd writeup for 7248bis [0], adding some extra =
text about the consensus process of 7248bis itself. Please take a look.


Cheers,

[0]: =
http://datatracker.ietf.org/doc/draft-ietf-stox-7248bis/shepherdwriteup/

--
Sa=FAl Ibarra Corretg=E9
AG Projects






--Apple-Mail=_23F30A78-37BE-43D0-AE10-B2C70C544714
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJV+TRaAAoJEN2cyH9ENwiq6NsP/2hxAXbr39Yd3LLbrgipC5vp
HA7DRCO4rOLdUAJGI5T1/vcyhfZyiENhDdfsSLMVpX6cSay7w13vKCYKgAPGsNoC
NrjoIcQiDlwvObFIshsz8S23VHQB0fNcH2mYz/rST1xNIO4gLWGB/u7e6pOtc7uz
jS3fuzpylOYn6frEAgMCl6LmeUj6GrwveZLX0TBme7HawjcHEozXHIC35NVXR6Pm
qHQRCpqjlkUZmb+AGoRDqldt77m9dQeb9QxaTDsEGUqC2UJrY7wEsZcS5KSAspUb
DEL9Y+CAENagjdQphWeJ1E8780cTcmihNpToIaASmAFkDbslwrL6bJUJALo2fyZC
XiKSwA/5+FI/mr4U/Osjey5QTAa7Y8Cs5HaD6fBcQxX7qcnILERDCX3ar+xo5g40
t+MDBDy+qTdQHW+t0ZQFbYEhpgQCWAH6XbNkg3sx3ZflomWOB3Fo/T/Ptxq86jP9
45dtqEZqMhrpFcA0aTzQEEWVqh/QsUbeEmyuLDdRREZEyr1LxTDohEK8zRQBHi9H
LnMWJaRVeDz1ObIecWleecHbu5udiswtvnVUbCv77ckuDuxOymKgV0CnMWQt0/57
aWIkeBfjv8Mgl/qpMXTJBNZGqf7UA0RHSyA+HYEEsXS6qePZH0MNRD9F4AjrwzAP
1pTqKn5gm8TPLg1KQn5b
=nDqz
-----END PGP SIGNATURE-----

--Apple-Mail=_23F30A78-37BE-43D0-AE10-B2C70C544714--


From nobody Wed Sep 16 06:10:54 2015
Return-Path: <peter@andyet.net>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8E9DA1B332E for <stox@ietfa.amsl.com>; Wed, 16 Sep 2015 06:10:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.301
X-Spam-Level: 
X-Spam-Status: No, score=-2.301 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 KPkOaS9eu1Vl for <stox@ietfa.amsl.com>; Wed, 16 Sep 2015 06:10:51 -0700 (PDT)
Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) (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 3DE941B3326 for <stox@ietf.org>; Wed, 16 Sep 2015 06:10:51 -0700 (PDT)
Received: by igbni9 with SMTP id ni9so31717403igb.0 for <stox@ietf.org>; Wed, 16 Sep 2015 06:10:50 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:mime-version:in-reply-to:content-type :content-transfer-encoding:message-id:cc:from:subject:date:to; bh=T9lWlijsim42y13USIUsTlbrdZBRj4u4TucXVBDKamE=; b=EUoHYyLNwdvWh5z1ODd1Sr7WaBBgL8S1lEpaPnnXZNy9sICd1YPIjVT6Zb/N/+7OwE GYhhGnO9CXnB3EL9WqvVxn6SrfoWDdeY/hfwt/k4qoKMt9+Cu2sbP+h4gzAA8DEozjZP tRgcilDzT2kqYyvqCxgxnLI/tz/eHL7GnlaQPadBS1JGHHLvX1UhpbD443EZo48AIHN0 T6Hpg6O6mGsB5Lp360f9eKbc/Hw6XLd7UCpvU5EsBpEh/d3PdRj8GymftwgRsdm8x63P qnV5ybvgB6d2hXXZf4BDAIDw6CW+KmAMSnrp4/Xf1QZH3RgG12Ur5iGW/YVTN6KEUzZ4 lxSw==
X-Gm-Message-State: ALoCoQnADomuR4xGXdvngcW8k+MjZ+aAp85mAQ9osJzDKkuZ0HjssFHBiH71TB3TsOBr8KGcTQop
X-Received: by 10.50.6.100 with SMTP id z4mr15003395igz.97.1442409050258; Wed, 16 Sep 2015 06:10:50 -0700 (PDT)
Received: from ?IPv6:2601:282:4201:ef5b:3169:4591:737d:5904? ([2601:282:4201:ef5b:3169:4591:737d:5904]) by smtp.gmail.com with ESMTPSA id pi6sm1836847igb.21.2015.09.16.06.10.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Sep 2015 06:10:49 -0700 (PDT)
References: <FE9D0BFF-5DC4-43FE-84C5-8D9651E4A173@ag-projects.com>
Mime-Version: 1.0 (1.0)
In-Reply-To: <FE9D0BFF-5DC4-43FE-84C5-8D9651E4A173@ag-projects.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Message-Id: <2D300F6C-F595-4C01-AB14-49D8A34AAF93@andyet.net>
X-Mailer: iPhone Mail (12H321)
From: Peter Saint-Andre <peter@andyet.net>
Date: Wed, 16 Sep 2015 07:10:48 -0600
To: =?utf-8?Q?Sa=C3=BAl_Ibarra_Corretg=C3=A9?= <saul@ag-projects.com>
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/Pqh21JcDYtjjV9JT65vUS-QFxCY>
Cc: "stox@ietf.org" <stox@ietf.org>, Ben Campbell <ben@nostrum.com>
Subject: Re: [Stox] Updated writeup for draft-saintandre-stox-7248bis
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Sep 2015 13:10:53 -0000

Thanks, that looks accurate and thorough to me!


> On Sep 16, 2015, at 3:20 AM, Sa=C3=BAl Ibarra Corretg=C3=A9 <saul@ag-proje=
cts.com> wrote:
>=20
> Hi,
>=20
> I just updated the shepherd writeup for 7248bis [0], adding some extra tex=
t about the consensus process of 7248bis itself. Please take a look.
>=20
>=20
> Cheers,
>=20
> [0]: http://datatracker.ietf.org/doc/draft-ietf-stox-7248bis/shepherdwrite=
up/
>=20
> --
> Sa=C3=BAl Ibarra Corretg=C3=A9
> AG Projects
>=20
>=20
>=20
>=20
>=20


From nobody Wed Sep 16 07:11:15 2015
Return-Path: <ben@nostrum.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2E3C61B3D70 for <stox@ietfa.amsl.com>; Wed, 16 Sep 2015 07:11:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.61
X-Spam-Level: 
X-Spam-Status: No, score=-1.61 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, T_RP_MATCHES_RCVD=-0.01] autolearn=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 2sNeVqn5VQ4E for <stox@ietfa.amsl.com>; Wed, 16 Sep 2015 07:11:12 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 8715E1B3D67 for <stox@ietf.org>; Wed, 16 Sep 2015 07:11:10 -0700 (PDT)
Received: from [10.0.1.23] (cpe-70-119-203-4.tx.res.rr.com [70.119.203.4]) (authenticated bits=0) by nostrum.com (8.15.2/8.14.9) with ESMTPSA id t8GEAl2Q032566 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 16 Sep 2015 09:10:58 -0500 (CDT) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host cpe-70-119-203-4.tx.res.rr.com [70.119.203.4] claimed to be [10.0.1.23]
From: "Ben Campbell" <ben@nostrum.com>
To: "=?utf-8?q?Sa=C3=BAl?= Ibarra =?utf-8?q?Corretg=C3=A9?=" <saul@ag-projects.com>
Date: Wed, 16 Sep 2015 09:10:47 -0500
Message-ID: <6224668A-2865-4E21-8847-8A083AFBEF41@nostrum.com>
In-Reply-To: <FE9D0BFF-5DC4-43FE-84C5-8D9651E4A173@ag-projects.com>
References: <FE9D0BFF-5DC4-43FE-84C5-8D9651E4A173@ag-projects.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Mailer: MailMate (1.9.2r5107)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/Uo4qxOaNlr0o7yy8-A8glfd_mYY>
Cc: stox@ietf.org, Peter Saint-Andre - &yet <peter@andyet.net>
Subject: Re: [Stox] Updated writeup for draft-saintandre-stox-7248bis
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Sep 2015 14:11:14 -0000

That looks excellent, Thanks!

Ben.

On 16 Sep 2015, at 4:20, Saúl Ibarra Corretgé wrote:

> Hi,
>
> I just updated the shepherd writeup for 7248bis [0], adding some extra 
> text about the consensus process of 7248bis itself. Please take a 
> look.
>
>
> Cheers,
>
> [0]: 
> http://datatracker.ietf.org/doc/draft-ietf-stox-7248bis/shepherdwriteup/
>
> --
> Saúl Ibarra Corretgé
> AG Projects


From nobody Mon Sep 21 20:25:20 2015
Return-Path: <ben@nostrum.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F2FCF1A879A; Mon, 21 Sep 2015 20:25:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.011
X-Spam-Level: 
X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 2sZ0M4BqOeNa; Mon, 21 Sep 2015 20:25:16 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 102BB1A8798; Mon, 21 Sep 2015 20:25:13 -0700 (PDT)
Received: from [10.0.1.23] (cpe-70-119-203-4.tx.res.rr.com [70.119.203.4]) (authenticated bits=0) by nostrum.com (8.15.2/8.14.9) with ESMTPSA id t8M3P10r041907 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 21 Sep 2015 22:25:11 -0500 (CDT) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host cpe-70-119-203-4.tx.res.rr.com [70.119.203.4] claimed to be [10.0.1.23]
From: "Ben Campbell" <ben@nostrum.com>
To: draft-ietf-stox-7248bis.all@ietf.org, stox@ietf.org
Date: Mon, 21 Sep 2015 22:25:01 -0500
Message-ID: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Mailer: MailMate (1.9.2r5107)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/sP3VbStoYS_BVcnA_wj-o3pd_YU>
Subject: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Sep 2015 03:25:18 -0000

Hi,

This is my AD evaluation of draft-ietf-stox-7248bis-05

Summary:

This is not quite ready for IETF last call. There are a number of SIP 
errors in the examples, and I think we need some more text to discuss a 
potential privacy issue. There's some questionable use of 2119 keywords, 
and a few other comments.  Details follow.

Thanks!

Ben.

-- Privacy:

I'm concerned that a naive implementation of the gateway could allow an 
XMPP user to see presence information for a SIP user that they were not 
authorized to see. The issue is that SIP allows a presentity to send 
different presence information to different subscribers. For example, if 
alice@xmpp.example.com and bob@xmpp.example.com both subscribe to 
sip:carol@sip.example.net, what if Carol wants to tell Alice that she is 
available, but Bob that she is not? (This is allowed in SIP.) Can we be 
sure the gateway won't take presence intended for Alice and also send it 
to Bob?

I think this is an issue, since if I understand things correctly, an 
XMPP presentity typically sends one presence stanza to her server, and 
that server distributes it among her subscribers. I _think_ this can 
work as long as we make sure the gateway sends each presence stanza 
directly to the subscriber that was targeted by the SIP Notify, and 
never mixes them up. But I think we need some text to describe the issue 
and give guidance on how to do the Right Thing.

-- 2119 Keywords.

There's quite a number of 2119 keywords used to describe existing 
normative SIP and XMPP behavior. Those should be written in descriptive 
language, or very clearly attribute the authoritative source. (There are 
a few attributed keywords, but many are not.)

-- section 4, 1st bullet:

"Instead of forwarding a SUBSCRIBE message to the SIP user, the Presence 
Server and SIP User Agent would interact via the ’presence.winfo’ 
event package"

This is only true if the presentity has not already setup policy to 
allow the subscriber to subscribe. Typically, this happens on the 
initial subscription, and future subscriptions may not require the 
presence.winfo interaction.

"The SIP User Agent would then authorize the subscription through..,"

Typically, the user agent persistently authorizes the _subscriber_. 
(Remembering that in SIP the subscription is ephemeral. )

-- Example 2:
The "To" tag should not exist on the first request in a dialog. The tag 
value is learned from the SIP Response (200 OK in this example). The UAC 
does not know the tag value at the time of the initial SUBSCRIBE 
request. (Note that this repeats in later examples)

-- Example 3:
The From and To values are swapped. Remember that a SIP _response_ uses 
the exact same From and To as in the request. (Except for adding the To 
tag in a response to a request that did not contain one.) (Note that 
this repeats in later examples.)

-- Example 4:

The Request-URI should match the Contact header field value from the 
SUBSCRIBE. (Technically, from the last message from the peer, but 
assuming you don't have them change contacts mid-stream, it's the same.) 
You also might want to consider whether the aforementioned contact 
values are useful examples. (Repeats in later examples)

-- 5.2.3

The flow and message details are missing the final SIP NOTIFY request.

-- Example 8:

The request-URI should match the peers Contact field value.

-- Table 1:
- I think this could use some more text around what happens if you have 
multiple XMPP resources, or a SIP presentity sends multiple tuples. The 
note discusses how to map the resource identifier to the tuple id, but 
not much about what it means to have multiple of either.

- I don't think it's correct to try to map CSeq. That's an artifact of 
the SIP state machine that seems
meaningless to the XMPP side. (Same for table 2)

-- 6.2, note 5:

The NOTIFY with a subscription state of "terminated" tears down the SIP 
subscription. Is that the intent? Why would the unavailability of the 
contact end the SIP subscription?

-- note 7:

Do you expect a SIP Presence UA to do something useful with the <show/> 
element ? Most will probably ignore it.

-- 9, 2nd paragraph:

"an XMPP-to-SIP gateway ought to be associated only with a single domain 
or trust realm"

Is this intended to discourage multi-tenant gateways? Does the existence 
of draft-ietf-xmpp-dna change that?

"... whenever an XMPP-to-SIP gateway seeks to refresh an XMPP user’s 
long-lived subscription to a SIP user’s presence, it MUST first send 
an XMPP <presence/> stanza of type "probe" ..."

I would have liked to see that discussed in the relevant procedures 
section(s).

-- Editorial Comments and nits:

-- 5.2.2, 2nd paragraph:

Technically, RFC 6665 doesn’t talk about “presence” subscriptions,
  but it does give the rules for SIP-events subscriptions in general. 
Should the citation be to 3856?

-- 5.3.1:
The flow leaves out the SIP responses. That's okay if it's on purpose, 
but it would be good to mention you are doing so. (especially since the 
previous examples showed them.)

- 2nd paragraph after example 10: "Request-URI or To header"
Shouldn't this just be the Request-URI?

-2nd paragraph after example 11:
This also needs a NOTIFY. You mention one in the following paragraph for 
the declined case, but you need one in either case.

-- 5.3.2, 1st bullet:
"will seem strange to the XMPPcontact"

Does the contact's human typically get notified of this?

- 2nd bullet:
This description is confusing. You aren’t maintaining the SIP 
subscription, just the xmpp subscription.

-- 2nd bullet, sub-item 2:

Do I understand this to mean the XMPP gateway infers availability of the 
SIP user from the SIP user’s subscription? That should come from a 
reciprocal subscription. Just because a SIP user subscribes to someone 
else's presence doesn't mean that user is available. Just because he 
doesn't doesn't mean he is not.

Also, how does this violate the SIP semantic?

-- 6.2:
7 and 8 seem mostly redundant—and there doesn’t seem to be a 
citation for 8 in the table.

-- 7:

This is about polling, right? It seems like polling and subscribing are 
just two ways to request presence info.


From nobody Wed Sep 23 19:52:47 2015
Return-Path: <peter@andyet.net>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 249E41B365D for <stox@ietfa.amsl.com>; Wed, 23 Sep 2015 19:52:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 dYTgud3cMyrY for <stox@ietfa.amsl.com>; Wed, 23 Sep 2015 19:52:43 -0700 (PDT)
Received: from mail-io0-f169.google.com (mail-io0-f169.google.com [209.85.223.169]) (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 49F2B1B365C for <stox@ietf.org>; Wed, 23 Sep 2015 19:52:43 -0700 (PDT)
Received: by iofb144 with SMTP id b144so63467505iof.1 for <stox@ietf.org>; Wed, 23 Sep 2015 19:52:42 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=z2OeKTg3irsK3nBXtTNU52kiee1NlHjV+Ktt3oiq3oE=; b=bBeOeq0CWWiLSEnwFvKSb6Z4kquWZQefW8P8sPsweymWIy/3a1HpndGOmFl5DVb/Qk bsU8gXohYJ73zcokwhQLoycTbaRqoGhJgT7BhexSZ9vHF01FlELmjIYbW4guvdtqn+li eqiTn9asdVlpCgCXD4NDCg53Yw0BWe1mZEK/jzC4h0eQS6yh/oY4r04idFxrbVO8yZFD Mw+/XAddxYjpp7GKVeyiv3xnfCEUPWBkJtslFAc6+wRcNQZSKrMDGwTLpMH5HXwCLTWx IIj0sstDKUTsb2aj0SGGKR6skiDWXoz3YLaaUICjws4yz9+odDwLMWOMHuCxSSXcUnxR vQLw==
X-Gm-Message-State: ALoCoQnqMdh9Ps9oxA/TDJHebcAauIaS8snAfWsMTZ8gYXdUGcL7oJeUT2aOpczaZPYrF1CMJRX5
X-Received: by 10.107.10.79 with SMTP id u76mr40135429ioi.99.1443063162378; Wed, 23 Sep 2015 19:52:42 -0700 (PDT)
Received: from aither.local (c-73-34-202-214.hsd1.co.comcast.net. [73.34.202.214]) by smtp.googlemail.com with ESMTPSA id b16sm4929205iob.39.2015.09.23.19.52.40 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Sep 2015 19:52:41 -0700 (PDT)
To: Ben Campbell <ben@nostrum.com>, draft-ietf-stox-7248bis.all@ietf.org, stox@ietf.org
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com>
From: Peter Saint-Andre - &yet <peter@andyet.net>
Message-ID: <56036577.3000204@andyet.net>
Date: Wed, 23 Sep 2015 20:52:39 -0600
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/0329OsdkdUYsejHSApiAHKJPD14>
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Sep 2015 02:52:46 -0000

Hi Ben, thanks for the continued careful reviews. Comments inline.

On 9/21/15 9:25 PM, Ben Campbell wrote:
> Hi,
>
> This is my AD evaluation of draft-ietf-stox-7248bis-05
>
> Summary:
>
> This is not quite ready for IETF last call. There are a number of SIP
> errors in the examples, and I think we need some more text to discuss a
> potential privacy issue. There's some questionable use of 2119 keywords,
> and a few other comments.  Details follow.
>
> Thanks!
>
> Ben.
>
> -- Privacy:
>
> I'm concerned that a naive implementation of the gateway could allow an
> XMPP user to see presence information for a SIP user that they were not
> authorized to see. The issue is that SIP allows a presentity to send
> different presence information to different subscribers. For example, if
> alice@xmpp.example.com and bob@xmpp.example.com both subscribe to
> sip:carol@sip.example.net, what if Carol wants to tell Alice that she is
> available, but Bob that she is not? (This is allowed in SIP.)

This also exists in XMPP, where it is called "directed presence":

http://tools.ietf.org/html/rfc6121#section-4.6

However, in XMPP this is the exception, not the rule.

> Can we be
> sure the gateway won't take presence intended for Alice and also send it
> to Bob?
>
> I think this is an issue, since if I understand things correctly, an
> XMPP presentity typically sends one presence stanza to her server, and
> that server distributes it among her subscribers.

Yes, this is the usual broadcast model for presence in XMPP.

> I _think_ this can
> work as long as we make sure the gateway sends each presence stanza
> directly to the subscriber that was targeted by the SIP Notify, and
> never mixes them up. But I think we need some text to describe the issue
> and give guidance on how to do the Right Thing.

It can't hurt.

We actually need a bit of text in the XMPP-to-SIP direction, too. The 
behavior of the XMPP server is specified in RFC 6121, but perhaps it 
would help to mention here that the server adds a 'to' address on each 
presence stanza it generates when it broadcasts the undirected presence 
stanza to the XMPP user's subscribers. This 'to' address is used for 
routing and needs to be honored by the XMPP-to-SIP gateway. From the 
perspective of the gateway, all it knows is that it has a presence 
stanza that it needs to transform into a SIP NOTIFY, and that stanza 
includes a 'to' address - it can't just assume that it can send that 
stanza to any random SIP user (and in fact it doesn't have the 
information it would need to make such decisions, since it isn't privy 
to the XMPP user's roster, which includes the subscription states).

I'll work to formulate some proposed text and post it in this thread.

> -- 2119 Keywords.
>
> There's quite a number of 2119 keywords used to describe existing
> normative SIP and XMPP behavior. Those should be written in descriptive
> language, or very clearly attribute the authoritative source. (There are
> a few attributed keywords, but many are not.)

Agreed. I'll check those over and scrub the text.

> -- section 4, 1st bullet:
>
> "Instead of forwarding a SUBSCRIBE message to the SIP user, the Presence
> Server and SIP User Agent would interact via the ’presence.winfo’ event
> package"
>
> This is only true if the presentity has not already setup policy to
> allow the subscriber to subscribe. Typically, this happens on the
> initial subscription, and future subscriptions may not require the
> presence.winfo interaction.

Right. How about:

OLD
       Instead of forwarding a SUBSCRIBE message
       to the SIP user, the Presence Server and SIP User Agent would
       interact via the 'presence.winfo' event package, to which the SIP
       user would be subcribed.

NEW
       Instead of forwarding a SUBSCRIBE message
       to the SIP user, the Presence Server would act on the basis of a
       policy set by the SIP User Agent using the 'presence.winfo' event
       package, to which the SIP user would be subcribed.

> "The SIP User Agent would then authorize the subscription through..,"
>
> Typically, the user agent persistently authorizes the _subscriber_.
> (Remembering that in SIP the subscription is ephemeral. )

It's hard to remember unless I put on my SIP glasses. ;-)

> -- Example 2:
> The "To" tag should not exist on the first request in a dialog. The tag
> value is learned from the SIP Response (200 OK in this example). The UAC
> does not know the tag value at the time of the initial SUBSCRIBE
> request. (Note that this repeats in later examples)

Correct.

Does this also apply to the NOTIFY messages later in the spec?

> -- Example 3:
> The From and To values are swapped. Remember that a SIP _response_ uses
> the exact same From and To as in the request. (Except for adding the To
> tag in a response to a request that did not contain one.) (Note that
> this repeats in later examples.)

Will fix.

> -- Example 4:
>
> The Request-URI should match the Contact header field value from the
> SUBSCRIBE. (Technically, from the last message from the peer, but
> assuming you don't have them change contacts mid-stream, it's the same.)
> You also might want to consider whether the aforementioned contact
> values are useful examples. (Repeats in later examples)

Noted.

> -- 5.2.3
>
> The flow and message details are missing the final SIP NOTIFY request.

The use case here is that the XMPP user no longer wants to receive 
presence information about the SIP user. Is the SIP NOTIFY tiggered 
because there's an assumption that the subscription needs to be 
bidirectional?

> -- Example 8:
>
> The request-URI should match the peers Contact field value.

Ack.

> -- Table 1:
> - I think this could use some more text around what happens if you have
> multiple XMPP resources, or a SIP presentity sends multiple tuples. The
> note discusses how to map the resource identifier to the tuple id, but
> not much about what it means to have multiple of either.

That could get messy. I'll need to think about it and propose text.

> - I don't think it's correct to try to map CSeq. That's an artifact of
> the SIP state machine that seems
> meaningless to the XMPP side. (Same for table 2)

OK.

> -- 6.2, note 5:
>
> The NOTIFY with a subscription state of "terminated" tears down the SIP
> subscription. Is that the intent? Why would the unavailability of the
> contact end the SIP subscription?

Hmm. I would have thought this falls out from the ephemeral nature of 
subscriptions in SIP. What you write would suggest that it's OK for the 
SIP user's subscription to last beyond the XMPP user's presence session 
(for example because the XMPP user might start another presence session 
during the life of the SIP user's subscription). I suppose that would be 
fine.

> -- note 7:
>
> Do you expect a SIP Presence UA to do something useful with the <show/>
> element ? Most will probably ignore it.

Losing that information along the way would guarantee that a presence UA 
can't do something useful with it; preserving the information seems helpful.

> -- 9, 2nd paragraph:
>
> "an XMPP-to-SIP gateway ought to be associated only with a single domain
> or trust realm"
>
> Is this intended to discourage multi-tenant gateways? Does the existence
> of draft-ietf-xmpp-dna change that?

No, because that's the same trust realm (i.e., a service under the 
control of a single administrative entity even if that entity hosts 
multiple tenants).

This text is intended to discourage the gateway equivalent of open 
relays that are shared across XMPP domains from different trust realms.

> "... whenever an XMPP-to-SIP gateway seeks to refresh an XMPP user’s
> long-lived subscription to a SIP user’s presence, it MUST first send an
> XMPP <presence/> stanza of type "probe" ..."
>
> I would have liked to see that discussed in the relevant procedures
> section(s).

OK, I'll see if we can include it earlier in the document.

> -- Editorial Comments and nits:
>
> -- 5.2.2, 2nd paragraph:
>
> Technically, RFC 6665 doesn’t talk about “presence” subscriptions,
>   but it does give the rules for SIP-events subscriptions in general.
> Should the citation be to 3856?

Actually I think this paragraph should cite both:

    In accordance with Section 6.7 of [RFC3856], the XMPP-to-SIP gateway
    MUST consider the subscription state to be "neutral" until it
    receives a NOTIFY message with a Subscription-State header [RFC6665]
    whose value is "active".

> -- 5.3.1:
> The flow leaves out the SIP responses. That's okay if it's on purpose,
> but it would be good to mention you are doing so. (especially since the
> previous examples showed them.)

I'm happy to add them.

> - 2nd paragraph after example 10: "Request-URI or To header"
> Shouldn't this just be the Request-URI?

Given that the SUBSCRIBE can't have a To header yet (see above), yes.

> -2nd paragraph after example 11:
> This also needs a NOTIFY. You mention one in the following paragraph for
> the declined case, but you need one in either case.

Yes. The XMPP server will generate a presence notification in this case, 
so that's the primary NOTIFY of interest here, I think.

> -- 5.3.2, 1st bullet:
> "will seem strange to the XMPPcontact"
>
> Does the contact's human typically get notified of this?

Only the first time. It would be strange in XMPP to continually receive 
unsubscribe events whenever an ephemeral SIP subscription happens to 
expire (and subscribe events whenever a subscription is renewed).

> - 2nd bullet:
> This description is confusing. You aren’t maintaining the SIP
> subscription, just the xmpp subscription.

"Treat the subscription as if it were long-lived" might be clearer.

> -- 2nd bullet, sub-item 2:
>
> Do I understand this to mean the XMPP gateway infers availability of the
> SIP user from the SIP user’s subscription? That should come from a
> reciprocal subscription. Just because a SIP user subscribes to someone
> else's presence doesn't mean that user is available. Just because he
> doesn't doesn't mean he is not.

This flow describes what happens when the SIP user ends its presence 
session. In that case, it seems to me that sending a presence stanza of 
type "unavailable" to the XMPP user is appropriate (when the gateway 
treats the subscription as if it were long-lived).

> Also, how does this violate the SIP semantic?

There's a mismatch in the meaning of subscribe. Treating a SIP 
subscription as if it were long-lived means the gateway follows the XMPP 
subscription model, not the SIP subscription model. A gateway 
implementer needs to choose which model to honor, and if it chooses the 
XMPP model then it's not honoring the SIP model (and vice-versa).

> -- 6.2:
> 7 and 8 seem mostly redundant—and there doesn’t seem to be a citation
> for 8 in the table.

That seems to be a copy-paste error.

> -- 7:
>
> This is about polling, right? It seems like polling and subscribing are
> just two ways to request presence info.

Yes, the good way and the bad way. :-)

Perhaps it's not sensible to talk about polling for presence, but I 
think we included this for the sake of completeness.

Peter

-- 
Peter Saint-Andre
https://andyet.com/


From nobody Thu Sep 24 10:56:11 2015
Return-Path: <ben@nostrum.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DC9431B30CD; Thu, 24 Sep 2015 10:56:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 B9Z0AoTY6mlo; Thu, 24 Sep 2015 10:56:07 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 864801B30CC; Thu, 24 Sep 2015 10:56:07 -0700 (PDT)
Received: from [10.10.1.3] ([162.216.46.31]) (authenticated bits=0) by nostrum.com (8.15.2/8.14.9) with ESMTPSA id t8OHtr7F031769 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 24 Sep 2015 12:56:03 -0500 (CDT) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host [162.216.46.31] claimed to be [10.10.1.3]
From: "Ben Campbell" <ben@nostrum.com>
To: "Peter Saint-Andre - &yet" <peter@andyet.net>
Date: Thu, 24 Sep 2015 13:55:51 -0400
Message-ID: <1794408B-8BE1-4F24-8A26-F40B1A0804EF@nostrum.com>
In-Reply-To: <56036577.3000204@andyet.net>
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Mailer: MailMate (1.9.2r5107)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/EjY4poOSxASf99fEc8jqBw_p2mo>
Cc: stox@ietf.org, draft-ietf-stox-7248bis.all@ietf.org
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 24 Sep 2015 17:56:10 -0000

Thanks for the quick response. More inline; I've removed sections that 
do not seem to need further discussion.

Ben.

On 23 Sep 2015, at 22:52, Peter Saint-Andre - &yet wrote:

> Hi Ben, thanks for the continued careful reviews. Comments inline.
>
> On 9/21/15 9:25 PM, Ben Campbell wrote:

[...]

>
>> -- section 4, 1st bullet:
>>
>> "Instead of forwarding a SUBSCRIBE message to the SIP user, the 
>> Presence
>> Server and SIP User Agent would interact via the ’presence.winfo’ 
>> event
>> package"
>>
>> This is only true if the presentity has not already setup policy to
>> allow the subscriber to subscribe. Typically, this happens on the
>> initial subscription, and future subscriptions may not require the
>> presence.winfo interaction.
>
> Right. How about:
>
> OLD
>    Instead of forwarding a SUBSCRIBE message
>    to the SIP user, the Presence Server and SIP User Agent would
>    interact via the 'presence.winfo' event package, to which the SIP
>    user would be subcribed.
>
> NEW
>    Instead of forwarding a SUBSCRIBE message
>    to the SIP user, the Presence Server would act on the basis of a
>    policy set by the SIP User Agent using the 'presence.winfo' event
>    package, to which the SIP user would be subcribed.
>

That works for me.

>> -- Example 2:
>> The "To" tag should not exist on the first request in a dialog. The 
>> tag
>> value is learned from the SIP Response (200 OK in this example). The 
>> UAC
>> does not know the tag value at the time of the initial SUBSCRIBE
>> request. (Note that this repeats in later examples)
>
> Correct.
>
> Does this also apply to the NOTIFY messages later in the spec?

The NOTIFY requests will always be part of an existing dialog, so those 
should have both from and to tags.

[...]

>
>> -- 5.2.3
>>
>> The flow and message details are missing the final SIP NOTIFY 
>> request.
>
> The use case here is that the XMPP user no longer wants to receive 
> presence information about the SIP user. Is the SIP NOTIFY tiggered 
> because there's an assumption that the subscription needs to be 
> bidirectional?

No, there is no assumption that subscriptions are bi-directional. But a 
NOTIFY request is needed to send the SIP subscription dialog. The 
SUBSCRIBE with expires=0 merely triggers that notify.

 From RFC 6665, section 4.4.1:

       A subscriber may send a SUBSCRIBE request with an "Expires" 
header
       field of 0 in order to trigger the sending of such a NOTIFY
       request; however, for the purposes of subscription and dialog
       lifetime, the subscription is not considered terminated until the
       NOTIFY transaction with a "Subscription-State" of "terminated"
       completes.

[...]

>
>> -- Table 1:
>> - I think this could use some more text around what happens if you 
>> have
>> multiple XMPP resources, or a SIP presentity sends multiple tuples. 
>> The
>> note discusses how to map the resource identifier to the tuple id, 
>> but
>> not much about what it means to have multiple of either.
>
> That could get messy. I'll need to think about it and propose text.
>

I agree on the messy. It's worth some discussion about whether it makes 
sense to model multiple tuples as if they represented multiple 
resources. My kneejerk response is that is the easiest approach, even if 
it might not always be strictly true. (In my mind, modeling resources as 
tuples seems to make more sense when going from xmpp to sip.)

>> - I don't think it's correct to try to map CSeq. That's an artifact 
>> of
>> the SIP state machine that seems
>> meaningless to the XMPP side. (Same for table 2)
>
> OK.

I meant to go on and say that if a gateway decided to map id to CSeq to 
save local session state (with some scheme that preserved the semantics 
for either side), that would be perfectly acceptable--but there's no 
need to standardize it.

>
>> -- 6.2, note 5:
>>
>> The NOTIFY with a subscription state of "terminated" tears down the 
>> SIP
>> subscription. Is that the intent? Why would the unavailability of the
>> contact end the SIP subscription?
>
> Hmm. I would have thought this falls out from the ephemeral nature of 
> subscriptions in SIP. What you write would suggest that it's OK for 
> the SIP user's subscription to last beyond the XMPP user's presence 
> session (for example because the XMPP user might start another 
> presence session during the life of the SIP user's subscription). I 
> suppose that would be fine.

I think of the SIP dialog as representing the subscriber's active 
interest. The subscriber does not necessarily stop caring just because 
the contact became unavailable--as you say, he might come back.

>
>> -- note 7:
>>
>> Do you expect a SIP Presence UA to do something useful with the 
>> <show/>
>> element ? Most will probably ignore it.
>
> Losing that information along the way would guarantee that a presence 
> UA can't do something useful with it; preserving the information seems 
> helpful.

Okay. It might be worth a note that the sender should not depend on the 
receiver to render it.

>
>> -- 9, 2nd paragraph:
>>
>> "an XMPP-to-SIP gateway ought to be associated only with a single 
>> domain
>> or trust realm"
>>
>> Is this intended to discourage multi-tenant gateways? Does the 
>> existence
>> of draft-ietf-xmpp-dna change that?
>
> No, because that's the same trust realm (i.e., a service under the 
> control of a single administrative entity even if that entity hosts 
> multiple tenants).
>
> This text is intended to discourage the gateway equivalent of open 
> relays that are shared across XMPP domains from different trust 
> realms.

Okay

[...]

>
>> -- Editorial Comments and nits:
>>
>> -- 5.2.2, 2nd paragraph:
>>
>> Technically, RFC 6665 doesn’t talk about “presence” 
>> subscriptions,
>> but it does give the rules for SIP-events subscriptions in general.
>> Should the citation be to 3856?
>
> Actually I think this paragraph should cite both:
>
> In accordance with Section 6.7 of [RFC3856], the XMPP-to-SIP gateway
> MUST consider the subscription state to be "neutral" until it
> receives a NOTIFY message with a Subscription-State header [RFC6665]
> whose value is "active".
>

WFM


>> -- 5.3.1:
>> The flow leaves out the SIP responses. That's okay if it's on 
>> purpose,
>> but it would be good to mention you are doing so. (especially since 
>> the
>> previous examples showed them.)
>
> I'm happy to add them.

That would solve my concern. A note that they are omitted on purpose 
would also solve my concern.

>
>> - 2nd paragraph after example 10: "Request-URI or To header"
>> Shouldn't this just be the Request-URI?
>
> Given that the SUBSCRIBE can't have a To header yet (see above), yes.

Hmm, it has a To header--just not a To header _tag_. (I don't think that 
effects this answer, but I hope we don't have a misunderstanding in the 
previous sections.)


>
>> -2nd paragraph after example 11:
>> This also needs a NOTIFY. You mention one in the following paragraph 
>> for
>> the declined case, but you need one in either case.
>
> Yes. The XMPP server will generate a presence notification in this 
> case, so that's the primary NOTIFY of interest here, I think.

I think it's still worth mentioning that it happens. And that brings up 
another question: A RFC 6665 notifier is required to send an "immediate" 
NOTIFY. Do you think the presence stanza will reliably arrive at the 
gateway in time to be considered "immediate"? If there's any likelihood 
of delay, the gateway may need to send a "pending" NOTIFY.

[...]

>
>> - 2nd bullet:
>> This description is confusing. You aren’t maintaining the SIP
>> subscription, just the xmpp subscription.
>
> "Treat the subscription as if it were long-lived" might be clearer.
>

WFM.

>> -- 2nd bullet, sub-item 2:
>>
>> Do I understand this to mean the XMPP gateway infers availability of 
>> the
>> SIP user from the SIP user’s subscription? That should come from a
>> reciprocal subscription. Just because a SIP user subscribes to 
>> someone
>> else's presence doesn't mean that user is available. Just because he
>> doesn't doesn't mean he is not.
>
> This flow describes what happens when the SIP user ends its presence 
> session. In that case, it seems to me that sending a presence stanza 
> of type "unavailable" to the XMPP user is appropriate (when the 
> gateway treats the subscription as if it were long-lived).

While it's probably not common in practice, it's perfectly okay 
according to the protocol for a SIP user to stop subscribing to a 
resource, while continuing to send updates to that resource on a 
reciprocal subscription. It might be reasonable to assume the user to be 
unavailable if you have no information to the contrary, but this advice 
seems to suggest overriding presence information sent explicitly by the 
SIP user with presence information inferred from the subscription.


>
>> Also, how does this violate the SIP semantic?
>
> There's a mismatch in the meaning of subscribe. Treating a SIP 
> subscription as if it were long-lived means the gateway follows the 
> XMPP subscription model, not the SIP subscription model. A gateway 
> implementer needs to choose which model to honor, and if it chooses 
> the XMPP model then it's not honoring the SIP model (and vice-versa).

I think this depends on the resolution to the previous comment, but I 
would say that if the protoocl behavior expectations of the SIP 
subscriber are met, the semantic has not been violated.


[...]


>> -- 7:
>>
>> This is about polling, right? It seems like polling and subscribing 
>> are
>> just two ways to request presence info.
>
> Yes, the good way and the bad way. :-)
>
> Perhaps it's not sensible to talk about polling for presence, but I 
> think we included this for the sake of completeness.

I guess my objection was to characterize "polling" as a "request" for 
presence information, as if subscribing was not also a way of 
"requesting" that. I don't object to mapping between probes and 
zero-duration subscriptions.



From nobody Mon Sep 28 19:15:51 2015
Return-Path: <peter@andyet.net>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 094101B2D57 for <stox@ietfa.amsl.com>; Mon, 28 Sep 2015 19:15:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable
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 LWnjD2qBD3S6 for <stox@ietfa.amsl.com>; Mon, 28 Sep 2015 19:15:48 -0700 (PDT)
Received: from mail-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) (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 B1D501B2D58 for <stox@ietf.org>; Mon, 28 Sep 2015 19:15:47 -0700 (PDT)
Received: by ioii196 with SMTP id i196so197052558ioi.3 for <stox@ietf.org>; Mon, 28 Sep 2015 19:15:47 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=oJjw/n1vmJRQOl6cIsfmHXRI92bDmgLj/BSZzLwDsCc=; b=d6F+nrBMjltuKKRocw5Kss5SOmjEVXfx7E6b9ii6qi8N4AiI/ZmrgE2Erk2y/hXvqj ruEGJXfNc/fW5Qd9n7RN+w234oiHOG5Y26PMjgurIXTQ9AIUqR6GqLd/14/S+11enNh9 1hEkBco828VXPvLQYWuwTQ0x5YNE4d2/VZV5Q7AZ27zq14ds1cdLlauu8vnnjnHkBbDL w3D5hGQqGJ/ABREQZaUcRm4h6N8MBrp09UpVgvxy97WmLbAMtmflELp1SaMC5jSkOJcV 4NYAzDmT2L7KtulWTAuOZmi0bf0Ds7cfdD+seaBhP98AgvhllRsWHasqCMGU5WuK+fLu 3DPQ==
X-Gm-Message-State: ALoCoQlulD7x0RvMlOPXWjiNIdwLeTmthhU743Dgo1gb6+aGk8kVcXdFSIgxieuT2gWxkRWj9Hrk
X-Received: by 10.107.15.170 with SMTP id 42mr26979054iop.137.1443492946831; Mon, 28 Sep 2015 19:15:46 -0700 (PDT)
Received: from aither.local (c-73-34-202-214.hsd1.co.comcast.net. [73.34.202.214]) by smtp.googlemail.com with ESMTPSA id u99sm10030786ioi.0.2015.09.28.19.15.44 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 19:15:45 -0700 (PDT)
To: Ben Campbell <ben@nostrum.com>, draft-ietf-stox-7248bis.all@ietf.org, stox@ietf.org
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net>
From: Peter Saint-Andre - &yet <peter@andyet.net>
Message-ID: <5609F44F.4020702@andyet.net>
Date: Mon, 28 Sep 2015 20:15:43 -0600
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <56036577.3000204@andyet.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/fGBOULjk086_HYYSDNLYD5W7bwc>
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Sep 2015 02:15:50 -0000

Proposed text inline.

On 9/23/15 8:52 PM, Peter Saint-Andre - &yet wrote:
>
> On 9/21/15 9:25 PM, Ben Campbell wrote:
>>
>> -- Privacy:
>>
>> I'm concerned that a naive implementation of the gateway could allow an
>> XMPP user to see presence information for a SIP user that they were not
>> authorized to see. The issue is that SIP allows a presentity to send
>> different presence information to different subscribers. For example, if
>> alice@xmpp.example.com and bob@xmpp.example.com both subscribe to
>> sip:carol@sip.example.net, what if Carol wants to tell Alice that she is
>> available, but Bob that she is not? (This is allowed in SIP.)
>
> This also exists in XMPP, where it is called "directed presence":
>
> http://tools.ietf.org/html/rfc6121#section-4.6
>
> However, in XMPP this is the exception, not the rule.
>
>> Can we be
>> sure the gateway won't take presence intended for Alice and also send it
>> to Bob?
>>
>> I think this is an issue, since if I understand things correctly, an
>> XMPP presentity typically sends one presence stanza to her server, and
>> that server distributes it among her subscribers.
>
> Yes, this is the usual broadcast model for presence in XMPP.
>
>> I _think_ this can
>> work as long as we make sure the gateway sends each presence stanza
>> directly to the subscriber that was targeted by the SIP Notify, and
>> never mixes them up. But I think we need some text to describe the issue
>> and give guidance on how to do the Right Thing.
>
> It can't hurt.
>
> We actually need a bit of text in the XMPP-to-SIP direction, too. The
> behavior of the XMPP server is specified in RFC 6121, but perhaps it
> would help to mention here that the server adds a 'to' address on each
> presence stanza it generates when it broadcasts the undirected presence
> stanza to the XMPP user's subscribers. This 'to' address is used for
> routing and needs to be honored by the XMPP-to-SIP gateway. From the
> perspective of the gateway, all it knows is that it has a presence
> stanza that it needs to transform into a SIP NOTIFY, and that stanza
> includes a 'to' address - it can't just assume that it can send that
> stanza to any random SIP user (and in fact it doesn't have the
> information it would need to make such decisions, since it isn't privy
> to the XMPP user's roster, which includes the subscription states).
>
> I'll work to formulate some proposed text and post it in this thread.

I think we can include a paragraph such as the following in the Security 
Considerations and use it to cover the behavior in both directions:

    Presence notifications can contain sensitive information (e.g., about
    network availability).  In addition, it is possible in both SIP and
    XMPP for an entity to send different presence notifications to
    different subscribers.  Therefore, a gateway MUST honor data about
    the intended recipient of a presence notification and it MUST NOT
    route or deliver a presence notification to any other entities.


>> -- Example 4:
>>
>> The Request-URI should match the Contact header field value from the
>> SUBSCRIBE. (Technically, from the last message from the peer, but
>> assuming you don't have them change contacts mid-stream, it's the same.)
>> You also might want to consider whether the aforementioned contact
>> values are useful examples. (Repeats in later examples)
>
> Noted.

Is your suggestion that we not include the Contact headers, or only that 
we look carefully at the values of those headers?

>> -- Table 1:
>> - I think this could use some more text around what happens if you have
>> multiple XMPP resources, or a SIP presentity sends multiple tuples. The
>> note discusses how to map the resource identifier to the tuple id, but
>> not much about what it means to have multiple of either.
>
> That could get messy. I'll need to think about it and propose text.

I still need to think about that issue.

>> -- 9, 2nd paragraph:
>>
>> "an XMPP-to-SIP gateway ought to be associated only with a single domain
>> or trust realm"
>>
>> Is this intended to discourage multi-tenant gateways? Does the existence
>> of draft-ietf-xmpp-dna change that?
>
> No, because that's the same trust realm (i.e., a service under the
> control of a single administrative entity even if that entity hosts
> multiple tenants).
>
> This text is intended to discourage the gateway equivalent of open
> relays that are shared across XMPP domains from different trust realms.

I suggest that we break up the long sentence there into bullet points, 
and add a few more words...

    The mismatch between long-lived XMPP presence subscriptions and
    short-lived SIP presence subscriptions introduces the possibility of
    an amplification attack launched from the XMPP network against a SIP
    presence server (because each long-lived XMPP presence subscription
    would typically result in multiple subscription refresh requests on
    the SIP side of an XMPP-to-SIP gateway).  Therefore, access to an
    XMPP-to-SIP gateway SHOULD be restricted in various ways; for
    example:

    o  Only an XMPP service that carefully controls account provisioning
       and provides effective methods for the administrators to control
       the behavior of registered users ought to host an XMPP-to-SIP
       gateway (e.g., not a service that offers open account
       registration).

    o  An XMPP-to-SIP gateway ought to be associated only with a single
       domain or trust realm (e.g., an XMPP-to-SIP gateway hosted at
       simple.example.com ought to allow only users within the
       example.com domain to access the XMPP-to-SIP gateway, not users
       within example.org, example.net, or any other domain unless they
       are part of a multi-tenant environment as example.com).

Peter

-- 
Peter Saint-Andre
https://andyet.com/


From nobody Mon Sep 28 19:39:25 2015
Return-Path: <peter@andyet.net>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7C6A61B2D77 for <stox@ietfa.amsl.com>; Mon, 28 Sep 2015 19:39:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable
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 MqNKCukC1UFY for <stox@ietfa.amsl.com>; Mon, 28 Sep 2015 19:39:22 -0700 (PDT)
Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) (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 017F11B2D74 for <stox@ietf.org>; Mon, 28 Sep 2015 19:39:22 -0700 (PDT)
Received: by igbkq10 with SMTP id kq10so70390553igb.0 for <stox@ietf.org>; Mon, 28 Sep 2015 19:39:21 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=M8v7cXKrQtsR8zduujT0pKcDwirPRVf0e572UCTkIuQ=; b=JY1AtZs/1s8k3GqJXM+M/1417iNrfrZM4d1cL8Fdi9kj6Lt6y5ggqp/zOaZj38jnYA zlbY6t1woAJMaFa1aH7HasI/BL00shnxMN5AVOwWmHTlRC4x1FQArhZy2+ZPjo9Oz429 ieU2lnWHf+oIR3AZkgXl4OiEqX67GJb9D7+5egHXRV1AlidXf+0VNIjspsN4IV7kUT2u kyeszENaAmG46ZoBonBM0VPdIbo9VYpKtk1OHafZBMtIax7CkeVdHsg3PfOnetC+mvw2 iNLAi8CGpyZ1KpVFwS7XGNZSQx0Es7I0UY3JR6FaC6KSUCm+KrqgHnFn24sAMwkHV77t fpmQ==
X-Gm-Message-State: ALoCoQk3obginr+pnOwb/+Dpi3F+St8uPHuD++R4LxJdulv9z5y9H7v/iRvVsZlFAmlUKTDMKTh+
X-Received: by 10.50.79.167 with SMTP id k7mr19998659igx.28.1443494361153; Mon, 28 Sep 2015 19:39:21 -0700 (PDT)
Received: from aither.local (c-73-34-202-214.hsd1.co.comcast.net. [73.34.202.214]) by smtp.googlemail.com with ESMTPSA id c97sm10045609ioj.41.2015.09.28.19.39.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Sep 2015 19:39:20 -0700 (PDT)
To: Ben Campbell <ben@nostrum.com>
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net> <1794408B-8BE1-4F24-8A26-F40B1A0804EF@nostrum.com>
From: Peter Saint-Andre - &yet <peter@andyet.net>
Message-ID: <5609F9D5.2080306@andyet.net>
Date: Mon, 28 Sep 2015 20:39:17 -0600
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <1794408B-8BE1-4F24-8A26-F40B1A0804EF@nostrum.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/V9tJJrtt_x9ODN0Dt0NnkM5d-kI>
Cc: stox@ietf.org, draft-ietf-stox-7248bis.all@ietf.org
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Sep 2015 02:39:24 -0000

On 9/24/15 11:55 AM, Ben Campbell wrote:
> Thanks for the quick response. More inline; I've removed sections that
> do not seem to need further discussion.

Likewise.

> On 23 Sep 2015, at 22:52, Peter Saint-Andre - &yet wrote:
>
>> Hi Ben, thanks for the continued careful reviews. Comments inline.
>>
>> On 9/21/15 9:25 PM, Ben Campbell wrote:

[...]

>>> -- 5.2.3
>>>
>>> The flow and message details are missing the final SIP NOTIFY request.
>>
>> The use case here is that the XMPP user no longer wants to receive
>> presence information about the SIP user. Is the SIP NOTIFY tiggered
>> because there's an assumption that the subscription needs to be
>> bidirectional?
>
> No, there is no assumption that subscriptions are bi-directional. But a
> NOTIFY request is needed to send the SIP subscription dialog. The
> SUBSCRIBE with expires=0 merely triggers that notify.
>
>  From RFC 6665, section 4.4.1:
>
>        A subscriber may send a SUBSCRIBE request with an "Expires" header
>        field of 0 in order to trigger the sending of such a NOTIFY
>        request; however, for the purposes of subscription and dialog
>        lifetime, the subscription is not considered terminated until the
>        NOTIFY transaction with a "Subscription-State" of "terminated"
>        completes.

Thanks for the clarification.

>>> -- Table 1:
>>> - I think this could use some more text around what happens if you have
>>> multiple XMPP resources, or a SIP presentity sends multiple tuples. The
>>> note discusses how to map the resource identifier to the tuple id, but
>>> not much about what it means to have multiple of either.
>>
>> That could get messy. I'll need to think about it and propose text.
>>
>
> I agree on the messy. It's worth some discussion about whether it makes
> sense to model multiple tuples as if they represented multiple
> resources. My kneejerk response is that is the easiest approach, even if
> it might not always be strictly true.

That's how I've been thinking about the matter, but I need to ponder it 
further.

> (In my mind, modeling resources as
> tuples seems to make more sense when going from xmpp to sip.)
>
>>> - I don't think it's correct to try to map CSeq. That's an artifact of
>>> the SIP state machine that seems
>>> meaningless to the XMPP side. (Same for table 2)
>>
>> OK.
>
> I meant to go on and say that if a gateway decided to map id to CSeq to
> save local session state (with some scheme that preserved the semantics
> for either side), that would be perfectly acceptable--but there's no
> need to standardize it.

I think your initial intuition was correct. In XMPP the 'id' attribute 
is not a sequence number, whereas in SIP the CSeq header values are, in 
request dialogs, strictly monotonically increasing. Thus I don't think 
the semantics align well enough to even suggest a mapping.

>>> -- 6.2, note 5:
>>>
>>> The NOTIFY with a subscription state of "terminated" tears down the SIP
>>> subscription. Is that the intent? Why would the unavailability of the
>>> contact end the SIP subscription?
>>
>> Hmm. I would have thought this falls out from the ephemeral nature of
>> subscriptions in SIP. What you write would suggest that it's OK for
>> the SIP user's subscription to last beyond the XMPP user's presence
>> session (for example because the XMPP user might start another
>> presence session during the life of the SIP user's subscription). I
>> suppose that would be fine.
>
> I think of the SIP dialog as representing the subscriber's active
> interest. The subscriber does not necessarily stop caring just because
> the contact became unavailable--as you say, he might come back.

Correct.

>>> -- note 7:
>>>
>>> Do you expect a SIP Presence UA to do something useful with the <show/>
>>> element ? Most will probably ignore it.
>>
>> Losing that information along the way would guarantee that a presence
>> UA can't do something useful with it; preserving the information seems
>> helpful.
>
> Okay. It might be worth a note that the sender should not depend on the
> receiver to render it.

Actually the XMPP sender (or the sender's client) doesn't necessarily 
know that the receiver is a SIP user. Therefore I'm not sure what we can 
say about the sender. At most perhaps we can add a sentence like this:

        However, there is no guarantee that the SIP receiver will render
        a standard XMPP <show/> value or custom extension.

>>> -- 9, 2nd paragraph:
>>>
>>> "an XMPP-to-SIP gateway ought to be associated only with a single domain
>>> or trust realm"
>>>
>>> Is this intended to discourage multi-tenant gateways? Does the existence
>>> of draft-ietf-xmpp-dna change that?
>>
>> No, because that's the same trust realm (i.e., a service under the
>> control of a single administrative entity even if that entity hosts
>> multiple tenants).
>>
>> This text is intended to discourage the gateway equivalent of open
>> relays that are shared across XMPP domains from different trust realms.
>
> Okay

See the other message I just sent in this thread.

>>> - 2nd paragraph after example 10: "Request-URI or To header"
>>> Shouldn't this just be the Request-URI?
>>
>> Given that the SUBSCRIBE can't have a To header yet (see above), yes.
>
> Hmm, it has a To header--just not a To header _tag_. (I don't think that
> effects this answer, but I hope we don't have a misunderstanding in the
> previous sections.)

Right, no tag. We're on the same page.

>>> -2nd paragraph after example 11:
>>> This also needs a NOTIFY. You mention one in the following paragraph for
>>> the declined case, but you need one in either case.
>>
>> Yes. The XMPP server will generate a presence notification in this
>> case, so that's the primary NOTIFY of interest here, I think.
>
> I think it's still worth mentioning that it happens. And that brings up
> another question: A RFC 6665 notifier is required to send an "immediate"
> NOTIFY. Do you think the presence stanza will reliably arrive at the
> gateway in time to be considered "immediate"? If there's any likelihood
> of delay, the gateway may need to send a "pending" NOTIFY.

Not sure. I'll think about that some more.

>>> -- 2nd bullet, sub-item 2:
>>>
>>> Do I understand this to mean the XMPP gateway infers availability of the
>>> SIP user from the SIP user’s subscription? That should come from a
>>> reciprocal subscription. Just because a SIP user subscribes to someone
>>> else's presence doesn't mean that user is available. Just because he
>>> doesn't doesn't mean he is not.
>>
>> This flow describes what happens when the SIP user ends its presence
>> session. In that case, it seems to me that sending a presence stanza
>> of type "unavailable" to the XMPP user is appropriate (when the
>> gateway treats the subscription as if it were long-lived).
>
> While it's probably not common in practice, it's perfectly okay
> according to the protocol for a SIP user to stop subscribing to a
> resource, while continuing to send updates to that resource on a
> reciprocal subscription. It might be reasonable to assume the user to be
> unavailable if you have no information to the contrary, but this advice
> seems to suggest overriding presence information sent explicitly by the
> SIP user with presence information inferred from the subscription.

Yes, such a difference is possible in XMPP, too, depending on the 
subscription state.

Let me see if I can formulate some text to address this scenario, and 
clean up the current text referenced above.

>>> Also, how does this violate the SIP semantic?
>>
>> There's a mismatch in the meaning of subscribe. Treating a SIP
>> subscription as if it were long-lived means the gateway follows the
>> XMPP subscription model, not the SIP subscription model. A gateway
>> implementer needs to choose which model to honor, and if it chooses
>> the XMPP model then it's not honoring the SIP model (and vice-versa).
>
> I think this depends on the resolution to the previous comment, but I
> would say that if the protoocl behavior expectations of the SIP
> subscriber are met, the semantic has not been violated.

Maybe. :-)

It still seems to me that the gateway is enforcing one model or the 
other. Perhaps "violate" is a strong word in this context, though.

>>> -- 7:
>>>
>>> This is about polling, right? It seems like polling and subscribing are
>>> just two ways to request presence info.
>>
>> Yes, the good way and the bad way. :-)
>>
>> Perhaps it's not sensible to talk about polling for presence, but I
>> think we included this for the sake of completeness.
>
> I guess my objection was to characterize "polling" as a "request" for
> presence information, as if subscribing was not also a way of
> "requesting" that. I don't object to mapping between probes and
> zero-duration subscriptions.

Ah, I see. I suppose we meant "one-time request" as opposed to the 
"standing request" that is a subscription.

Peter

-- 
Peter Saint-Andre
https://andyet.com/


From nobody Mon Sep 28 20:17:12 2015
Return-Path: <ben@nostrum.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 44A7B1B2D96; Mon, 28 Sep 2015 20:17:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 yd52Dj6N5fQd; Mon, 28 Sep 2015 20:17:09 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 010BE1B2D93; Mon, 28 Sep 2015 20:17:08 -0700 (PDT)
Received: from [10.0.1.23] (cpe-70-119-203-4.tx.res.rr.com [70.119.203.4]) (authenticated bits=0) by nostrum.com (8.15.2/8.14.9) with ESMTPSA id t8T3GqQu052197 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 28 Sep 2015 22:17:03 -0500 (CDT) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host cpe-70-119-203-4.tx.res.rr.com [70.119.203.4] claimed to be [10.0.1.23]
From: "Ben Campbell" <ben@nostrum.com>
To: "Peter Saint-Andre - &yet" <peter@andyet.net>
Date: Mon, 28 Sep 2015 22:16:52 -0500
Message-ID: <802DAAC4-1DA2-4787-8121-8DB29D4B4B80@nostrum.com>
In-Reply-To: <5609F44F.4020702@andyet.net>
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net> <5609F44F.4020702@andyet.net>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-Mailer: MailMate (1.9.2r5107)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/7X9vCaXOqjK36_00yZG7Dvx4ieY>
Cc: stox@ietf.org, draft-ietf-stox-7248bis.all@ietf.org
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Sep 2015 03:17:11 -0000

On 28 Sep 2015, at 21:15, Peter Saint-Andre - &yet wrote:

> Proposed text inline.
>
> On 9/23/15 8:52 PM, Peter Saint-Andre - &yet wrote:
>>
>> On 9/21/15 9:25 PM, Ben Campbell wrote:
>>>
>>> -- Privacy:
>>>
>>> I'm concerned that a naive implementation of the gateway could allow 
>>> an
>>> XMPP user to see presence information for a SIP user that they were 
>>> not
>>> authorized to see. The issue is that SIP allows a presentity to send
>>> different presence information to different subscribers. For 
>>> example, if
>>> alice@xmpp.example.com and bob@xmpp.example.com both subscribe to
>>> sip:carol@sip.example.net, what if Carol wants to tell Alice that 
>>> she is
>>> available, but Bob that she is not? (This is allowed in SIP.)
>>
>> This also exists in XMPP, where it is called "directed presence":
>>
>> http://tools.ietf.org/html/rfc6121#section-4.6
>>
>> However, in XMPP this is the exception, not the rule.
>>
>>> Can we be
>>> sure the gateway won't take presence intended for Alice and also 
>>> send it
>>> to Bob?
>>>
>>> I think this is an issue, since if I understand things correctly, an
>>> XMPP presentity typically sends one presence stanza to her server, 
>>> and
>>> that server distributes it among her subscribers.
>>
>> Yes, this is the usual broadcast model for presence in XMPP.
>>
>>> I _think_ this can
>>> work as long as we make sure the gateway sends each presence stanza
>>> directly to the subscriber that was targeted by the SIP Notify, and
>>> never mixes them up. But I think we need some text to describe the 
>>> issue
>>> and give guidance on how to do the Right Thing.
>>
>> It can't hurt.
>>
>> We actually need a bit of text in the XMPP-to-SIP direction, too. The
>> behavior of the XMPP server is specified in RFC 6121, but perhaps it
>> would help to mention here that the server adds a 'to' address on 
>> each
>> presence stanza it generates when it broadcasts the undirected 
>> presence
>> stanza to the XMPP user's subscribers. This 'to' address is used for
>> routing and needs to be honored by the XMPP-to-SIP gateway. From the
>> perspective of the gateway, all it knows is that it has a presence
>> stanza that it needs to transform into a SIP NOTIFY, and that stanza
>> includes a 'to' address - it can't just assume that it can send that
>> stanza to any random SIP user (and in fact it doesn't have the
>> information it would need to make such decisions, since it isn't 
>> privy
>> to the XMPP user's roster, which includes the subscription states).
>>
>> I'll work to formulate some proposed text and post it in this thread.
>
> I think we can include a paragraph such as the following in the 
> Security Considerations and use it to cover the behavior in both 
> directions:
>
> Presence notifications can contain sensitive information (e.g., about
> network availability).  In addition, it is possible in both SIP and
> XMPP for an entity to send different presence notifications to
> different subscribers.  Therefore, a gateway MUST honor data about
> the intended recipient of a presence notification and it MUST NOT
> route or deliver a presence notification to any other entities.

Works for me, thanks.

>
>
>>> -- Example 4:
>>>
>>> The Request-URI should match the Contact header field value from the
>>> SUBSCRIBE. (Technically, from the last message from the peer, but
>>> assuming you don't have them change contacts mid-stream, it's the 
>>> same.)
>>> You also might want to consider whether the aforementioned contact
>>> values are useful examples. (Repeats in later examples)
>>
>> Noted.
>
> Is your suggestion that we not include the Contact headers, or only 
> that we look carefully at the values of those headers?

The second. The contact identifies (and routes to) the device that sent 
the containing message. And with RFC 6665, the contact sent by the 
notifier MUST contain a GRUU (RFC 5627).

For example:

       Contact: <sip:juliet@example.com;gr=hdg7777ad7aflzig8sf7>


It wouldn't hurt for the subscriber to also contain one, albeit the gruu 
value should be unique per device.



>
>>> -- Table 1:
>>> - I think this could use some more text around what happens if you 
>>> have
>>> multiple XMPP resources, or a SIP presentity sends multiple tuples. 
>>> The
>>> note discusses how to map the resource identifier to the tuple id, 
>>> but
>>> not much about what it means to have multiple of either.
>>
>> That could get messy. I'll need to think about it and propose text.
>
> I still need to think about that issue.
>
>>> -- 9, 2nd paragraph:
>>>
>>> "an XMPP-to-SIP gateway ought to be associated only with a single 
>>> domain
>>> or trust realm"
>>>
>>> Is this intended to discourage multi-tenant gateways? Does the 
>>> existence
>>> of draft-ietf-xmpp-dna change that?
>>
>> No, because that's the same trust realm (i.e., a service under the
>> control of a single administrative entity even if that entity hosts
>> multiple tenants).
>>
>> This text is intended to discourage the gateway equivalent of open
>> relays that are shared across XMPP domains from different trust 
>> realms.
>
> I suggest that we break up the long sentence there into bullet points, 
> and add a few more words...
>
> The mismatch between long-lived XMPP presence subscriptions and
> short-lived SIP presence subscriptions introduces the possibility of
> an amplification attack launched from the XMPP network against a SIP
> presence server (because each long-lived XMPP presence subscription
> would typically result in multiple subscription refresh requests on
> the SIP side of an XMPP-to-SIP gateway).  Therefore, access to an
> XMPP-to-SIP gateway SHOULD be restricted in various ways; for
> example:
>
> o  Only an XMPP service that carefully controls account provisioning
>    and provides effective methods for the administrators to control
>    the behavior of registered users ought to host an XMPP-to-SIP
>    gateway (e.g., not a service that offers open account
>    registration).
>
> o  An XMPP-to-SIP gateway ought to be associated only with a single
>    domain or trust realm (e.g., an XMPP-to-SIP gateway hosted at
>    simple.example.com ought to allow only users within the
>    example.com domain to access the XMPP-to-SIP gateway, not users
>    within example.org, example.net, or any other domain unless they
>    are part of a multi-tenant environment as example.com).

WFM


>
> Peter
>
> -- 
> Peter Saint-Andre
> https://andyet.com/


From nobody Mon Sep 28 20:32:47 2015
Return-Path: <ben@nostrum.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A9F501B2DA0; Mon, 28 Sep 2015 20:32:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level: 
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 19Fykxw7mQzv; Mon, 28 Sep 2015 20:32:44 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 579A91B2D8E; Mon, 28 Sep 2015 20:32:44 -0700 (PDT)
Received: from [10.0.1.23] (cpe-70-119-203-4.tx.res.rr.com [70.119.203.4]) (authenticated bits=0) by nostrum.com (8.15.2/8.14.9) with ESMTPSA id t8T3WVFN053391 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 28 Sep 2015 22:32:42 -0500 (CDT) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host cpe-70-119-203-4.tx.res.rr.com [70.119.203.4] claimed to be [10.0.1.23]
From: "Ben Campbell" <ben@nostrum.com>
To: "Peter Saint-Andre - &yet" <peter@andyet.net>
Date: Mon, 28 Sep 2015 22:32:31 -0500
Message-ID: <BD08A7FA-9722-4444-B5B7-3640D4AC2D56@nostrum.com>
In-Reply-To: <5609F9D5.2080306@andyet.net>
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net> <1794408B-8BE1-4F24-8A26-F40B1A0804EF@nostrum.com> <5609F9D5.2080306@andyet.net>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed
X-Mailer: MailMate (1.9.2r5107)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/pjH-psSdiYWjoveo6W9hk9EqccI>
Cc: stox@ietf.org, draft-ietf-stox-7248bis.all@ietf.org
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Sep 2015 03:32:45 -0000

On 28 Sep 2015, at 21:39, Peter Saint-Andre - &yet wrote:

> On 9/24/15 11:55 AM, Ben Campbell wrote:

[...]
>>>> -- note 7:
>>>>
>>>> Do you expect a SIP Presence UA to do something useful with the 
>>>> <show/>
>>>> element ? Most will probably ignore it.
>>>
>>> Losing that information along the way would guarantee that a 
>>> presence
>>> UA can't do something useful with it; preserving the information 
>>> seems
>>> helpful.
>>
>> Okay. It might be worth a note that the sender should not depend on 
>> the
>> receiver to render it.
>
> Actually the XMPP sender (or the sender's client) doesn't necessarily 
> know that the receiver is a SIP user. Therefore I'm not sure what we 
> can say about the sender. At most perhaps we can add a sentence like 
> this:

Of course, by "sender", I meant "gateway" :-)

>
>     However, there is no guarantee that the SIP receiver will render
>     a standard XMPP <show/> value or custom extension.
>

WFM.

[...]
>
>>>> -2nd paragraph after example 11:
>>>> This also needs a NOTIFY. You mention one in the following 
>>>> paragraph for
>>>> the declined case, but you need one in either case.
>>>
>>> Yes. The XMPP server will generate a presence notification in this
>>> case, so that's the primary NOTIFY of interest here, I think.
>>
>> I think it's still worth mentioning that it happens. And that brings 
>> up
>> another question: A RFC 6665 notifier is required to send an 
>> "immediate"
>> NOTIFY. Do you think the presence stanza will reliably arrive at the
>> gateway in time to be considered "immediate"? If there's any 
>> likelihood
>> of delay, the gateway may need to send a "pending" NOTIFY.
>
> Not sure. I'll think about that some more.

It might be reasonable to punt this to the implementation to decide, 
with some guidance about what to do if you can't immediately send a 
"real" NOTIFY. And on reflection, this gets tangled up with 
authorization--the "pending" NOTIFY is more to say the authorization has 
not yet been determined. If the subscriber is known to be authorized, 
then rather than a "pending" NOTIFY it might just send a normal NOTIFY 
with some default presence state, then send the real presence when it 
gets it. (The subscriber's user experience might be a to initially see 
the entity as "closed" then quickly transition to "open".)

[...]

>
>
>>>> Also, how does this violate the SIP semantic?
>>>
>>> There's a mismatch in the meaning of subscribe. Treating a SIP
>>> subscription as if it were long-lived means the gateway follows the
>>> XMPP subscription model, not the SIP subscription model. A gateway
>>> implementer needs to choose which model to honor, and if it chooses
>>> the XMPP model then it's not honoring the SIP model (and 
>>> vice-versa).
>>
>> I think this depends on the resolution to the previous comment, but I
>> would say that if the protoocl behavior expectations of the SIP
>> subscriber are met, the semantic has not been violated.
>
> Maybe. :-)
>
> It still seems to me that the gateway is enforcing one model or the 
> other. Perhaps "violate" is a strong word in this context, though.
>

I think we may be reading too much into the "ephemeral" subscription 
model, while still trying to think of an xmpp subscription and a SIP 
subscription of modeling the same thing. Both XMPP and SIP have an 
ephemeral component and a long-lived component. In XMPP, the 
subscription is long lived, and the presence session is relatively 
ephemeral. In SIP, the authorization policy, and the presence of an 
entity on a contact list are long lived, and the subscription is 
ephemeral.

So if we think of an XMPP subscription as equivalent to SIP subscriber 
authorization, and an XMPP presence session as equivalent to a SIP 
subscription, I think we can avoid violence to the assumptions of either 
side.

[...]


From nobody Tue Sep 29 09:32:18 2015
Return-Path: <peter@andyet.net>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6C1271B47DF for <stox@ietfa.amsl.com>; Tue, 29 Sep 2015 09:32:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 AeoepFbRoFgC for <stox@ietfa.amsl.com>; Tue, 29 Sep 2015 09:32:15 -0700 (PDT)
Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) (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 316251B47DE for <stox@ietf.org>; Tue, 29 Sep 2015 09:32:15 -0700 (PDT)
Received: by igcpb10 with SMTP id pb10so84319500igc.1 for <stox@ietf.org>; Tue, 29 Sep 2015 09:32:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=x//N2/GBksQmmJt/v79nIcVZymvovfX3HubD1mAxrqo=; b=EswlK/JVm/wXXkpHaz5W8G5epDlE6UP497bbYoNZ4wQIs65+g5+RlpUEd8s6j1sqgs BTwifUBpvx7a4UfSGIKSFlfA+yz9jJu85BU9vO860Tmqn3OnQnQwPN37kOeADylpMENl 8YD0FdGUkQvDq6GR1oJlu30RU+7HkkuZtroweEswqMICHAWx28IlZJYL8YkgVmPNsT/2 xKVcTrAKwxlgucLk6K2T7wG5FPj+bLezyzzFEPRJ5zpEVJfH6uNH6BULuatRI0+tjsNC 76KObifvQ7g4+kJqsKCE70Ky82TyWez8/ysdd2ZavfzN8tM6OB8M1mKtDZzyIGHug5I5 SDUQ==
X-Gm-Message-State: ALoCoQmdZBfG6A9uvt6Gee2j1pGn4stRCeK29sno7NDXIX3ZAMgq/nGOWS/0OhM3THR8ozIW5Cb6
X-Received: by 10.50.8.3 with SMTP id n3mr24788584iga.26.1443544333561; Tue, 29 Sep 2015 09:32:13 -0700 (PDT)
Received: from aither.local ([2601:282:4201:ef5b:504:fb71:bc2:ab64]) by smtp.googlemail.com with ESMTPSA id u99sm11521732ioi.0.2015.09.29.09.32.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Sep 2015 09:32:12 -0700 (PDT)
To: Ben Campbell <ben@nostrum.com>
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net> <5609F44F.4020702@andyet.net> <802DAAC4-1DA2-4787-8121-8DB29D4B4B80@nostrum.com>
From: Peter Saint-Andre - &yet <peter@andyet.net>
Message-ID: <560ABD0A.9060303@andyet.net>
Date: Tue, 29 Sep 2015 10:32:10 -0600
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <802DAAC4-1DA2-4787-8121-8DB29D4B4B80@nostrum.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/4sDc5CkvUTTNOnFulgVNKGk_Dzw>
Cc: stox@ietf.org, draft-ietf-stox-7248bis.all@ietf.org
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Sep 2015 16:32:17 -0000

On 9/28/15 9:16 PM, Ben Campbell wrote:
> On 28 Sep 2015, at 21:15, Peter Saint-Andre - &yet wrote:
>
>> Proposed text inline.
>>
>> On 9/23/15 8:52 PM, Peter Saint-Andre - &yet wrote:
>>>
>>> On 9/21/15 9:25 PM, Ben Campbell wrote:
>>>>

[...]

>>>> -- Example 4:
>>>>
>>>> The Request-URI should match the Contact header field value from the
>>>> SUBSCRIBE. (Technically, from the last message from the peer, but
>>>> assuming you don't have them change contacts mid-stream, it's the
>>>> same.)
>>>> You also might want to consider whether the aforementioned contact
>>>> values are useful examples. (Repeats in later examples)
>>>
>>> Noted.
>>
>> Is your suggestion that we not include the Contact headers, or only
>> that we look carefully at the values of those headers?
>
> The second. The contact identifies (and routes to) the device that sent
> the containing message. And with RFC 6665, the contact sent by the
> notifier MUST contain a GRUU (RFC 5627).
>
> For example:
>
>        Contact: <sip:juliet@example.com;gr=hdg7777ad7aflzig8sf7>
>
>
> It wouldn't hurt for the subscriber to also contain one, albeit the gruu
> value should be unique per device.

OK I will see how to update the text and examples here. More soon. :-)

Peter

-- 
Peter Saint-Andre
https://andyet.com/


From nobody Wed Sep 30 01:25:30 2015
Return-Path: <saul@ag-projects.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8E4C31A1B27; Wed, 30 Sep 2015 01:25:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.289
X-Spam-Level: 
X-Spam-Status: No, score=-0.289 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, HELO_MISMATCH_NET=0.611, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7] autolearn=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 dOJa8-a1XUHe; Wed, 30 Sep 2015 01:25:27 -0700 (PDT)
Received: from mail.sipthor.net (node16.dns-hosting.info [81.23.228.161]) by ietfa.amsl.com (Postfix) with ESMTP id 1A0671A1B2A; Wed, 30 Sep 2015 01:25:26 -0700 (PDT)
Received: from [192.168.0.48] (92-111-25-226.static.chello.nl [92.111.25.226]) by mail.sipthor.net (Postfix) with ESMTPSA id E4AB916DC6C5; Wed, 30 Sep 2015 10:25:24 +0200 (CEST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type: multipart/signed; boundary="Apple-Mail=_9766DC53-17E7-4B00-8BC4-405DC3F3D551"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail 2.5.2
From: =?utf-8?Q?Sa=C3=BAl_Ibarra_Corretg=C3=A9?= <saul@ag-projects.com>
In-Reply-To: <BD08A7FA-9722-4444-B5B7-3640D4AC2D56@nostrum.com>
Date: Wed, 30 Sep 2015 10:25:19 +0200
Message-Id: <377E0E64-1BA5-477B-95C3-66CA44E4BDD4@ag-projects.com>
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net> <1794408B-8BE1-4F24-8A26-F40B1A0804EF@nostrum.com> <5609F9D5.2080306@andyet.net> <BD08A7FA-9722-4444-B5B7-3640D4AC2D56@nostrum.com>
To: Ben Campbell <ben@nostrum.com>
X-Mailer: Apple Mail (2.2104)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/NXZSoZFimlgr4uQOG2QHDSdPkns>
Cc: stox@ietf.org, draft-ietf-stox-7248bis.all@ietf.org, Peter Saint-Andre - &yet <peter@andyet.net>
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 30 Sep 2015 08:25:28 -0000

--Apple-Mail=_9766DC53-17E7-4B00-8BC4-405DC3F3D551
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Sorry for coming late folks, looks like you got almost everything sorted =
out :-)

>>=20
>>>>> -2nd paragraph after example 11:
>>>>> This also needs a NOTIFY. You mention one in the following =
paragraph for
>>>>> the declined case, but you need one in either case.
>>>>=20
>>>> Yes. The XMPP server will generate a presence notification in this
>>>> case, so that's the primary NOTIFY of interest here, I think.
>>>=20
>>> I think it's still worth mentioning that it happens. And that brings =
up
>>> another question: A RFC 6665 notifier is required to send an =
"immediate"
>>> NOTIFY. Do you think the presence stanza will reliably arrive at the
>>> gateway in time to be considered "immediate"? If there's any =
likelihood
>>> of delay, the gateway may need to send a "pending" NOTIFY.
>>=20
>> Not sure. I'll think about that some more.
>=20
> It might be reasonable to punt this to the implementation to decide, =
with some guidance about what to do if you can't immediately send a =
"real" NOTIFY. And on reflection, this gets tangled up with =
authorization--the "pending" NOTIFY is more to say the authorization has =
not yet been determined. If the subscriber is known to be authorized, =
then rather than a "pending" NOTIFY it might just send a normal NOTIFY =
with some default presence state, then send the real presence when it =
gets it. (The subscriber's user experience might be a to initially see =
the entity as "closed" then quickly transition to "open=E2=80=9D.

You could still send an empty NOTIFY with subscription state =
=E2=80=9Cactive=E2=80=9D, to indicate that the it has been allowed by =
the policy, but there is no presence state to show at this moment. How =
to interpret that is of course implementation specific.


--
Sa=C3=BAl Ibarra Corretg=C3=A9
AG Projects






--Apple-Mail=_9766DC53-17E7-4B00-8BC4-405DC3F3D551
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWC5xzAAoJEN2cyH9ENwiqhyQP/A1gR0xjzJhT75Y5uHUuCNH1
DdDu+/mGhI/n9HKsBv1eHw7duzk5QRH0EZZdXa0z21FjUmGZGPOjlq4omCgBW6ow
mLzLS9+cZ+XdTMaWCPTU/cvmauXGOw1p1J+k+FBbUEDIZmy007CoSWahIVVj1iyc
s7RA6YYR/+14/YYJfq6tE3UQzBJukcoho+QLOthyofRoXiY7HqEdpxxeppEZ/HeH
qWsyZUvzOGj/Jcx3WVUDbVhy6vmL9eFBMdoYhtLFC4mtOsOFnt5VQqHAAqc7FtEh
zdNGl20WUfJ99ISeBkbqIJMlPuWrN9udCD54BdgFU5NxiWvLS0Oh+A/V+XD9w/KR
ckMJLFQ8tZA494sCN4rs8MMD95HgrAUZbZlzOxHh0pqt226C2U4ajrSzoSxhGtAP
QI3NKMIu28vPAOj86Z+OkJTtES/iIxaimhawr7odjk/rGmfwFrTqnYg+ednDhb4R
4Q/fVmgIHwb5i9bdzAT2dsM1F4uWH5moWfWSKBRZCM9Q36md5MRqgA7/ajqg/P7U
o5CbccgB0nhMtg/LpYZIv7pLja0z68F3vekg9ivW7Y5WcYOSgOFksVedaJjjZzM+
UF1NJ9P2PiLmLKz3DTwwIOGOTEkSrLM86TrzN/GRibNefvawzCLlOkMiJ0xvL498
uuOSzoDCy9t0e7tSIzt5
=mCOD
-----END PGP SIGNATURE-----

--Apple-Mail=_9766DC53-17E7-4B00-8BC4-405DC3F3D551--


From nobody Wed Sep 30 07:16:33 2015
Return-Path: <ben@nostrum.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 55DF11A8757; Wed, 30 Sep 2015 07:16:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.61
X-Spam-Level: 
X-Spam-Status: No, score=-1.61 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, T_RP_MATCHES_RCVD=-0.01] autolearn=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 72nrcMisde1h; Wed, 30 Sep 2015 07:16:30 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 AEF031A7023; Wed, 30 Sep 2015 07:16:30 -0700 (PDT)
Received: from [10.0.1.23] (cpe-70-119-203-4.tx.res.rr.com [70.119.203.4]) (authenticated bits=0) by nostrum.com (8.15.2/8.14.9) with ESMTPSA id t8UEGFRs061104 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 30 Sep 2015 09:16:16 -0500 (CDT) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host cpe-70-119-203-4.tx.res.rr.com [70.119.203.4] claimed to be [10.0.1.23]
From: "Ben Campbell" <ben@nostrum.com>
To: "=?utf-8?q?Sa=C3=BAl?= Ibarra =?utf-8?q?Corretg=C3=A9?=" <saul@ag-projects.com>
Date: Wed, 30 Sep 2015 09:16:17 -0500
Message-ID: <DF830FC2-315C-408F-82B1-A3B4F573B0AF@nostrum.com>
In-Reply-To: <377E0E64-1BA5-477B-95C3-66CA44E4BDD4@ag-projects.com>
References: <CC605F0B-9B8E-4FE0-9DEC-79A3E1162ED5@nostrum.com> <56036577.3000204@andyet.net> <1794408B-8BE1-4F24-8A26-F40B1A0804EF@nostrum.com> <5609F9D5.2080306@andyet.net> <BD08A7FA-9722-4444-B5B7-3640D4AC2D56@nostrum.com> <377E0E64-1BA5-477B-95C3-66CA44E4BDD4@ag-projects.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Mailer: MailMate (1.9.2r5141)
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/TZRiSVXC6fjNlWNg1q6dGNQhi1Y>
Cc: stox@ietf.org, draft-ietf-stox-7248bis.all@ietf.org, Peter Saint-Andre - &yet <peter@andyet.net>
Subject: Re: [Stox] AD Evaluation of draft-ietf-stox-7248bis-05
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 30 Sep 2015 14:16:31 -0000

On 30 Sep 2015, at 3:25, Saúl Ibarra Corretgé wrote:

> It might be reasonable to punt this to the implementation to decide, 
> with some guidance about what to do if you can't immediately send a 
> "real" NOTIFY. And on reflection, this gets tangled up with 
> authorization--the "pending" NOTIFY is more to say the authorization 
> has not yet been determined. If the subscriber is known to be 
> authorized, then rather than a "pending" NOTIFY it might just send a 
> normal NOTIFY with some default presence state, then send the real 
> presence when it gets it. (The subscriber's user experience might be a 
> to initially see the entity as "closed" then quickly transition to 
> "open”.
>
>
> You could still send an empty NOTIFY with subscription state 
> “active”, to indicate that the it has been allowed by the policy, 
> but there is no presence state to show at this moment. How to 
> interpret that is of course implementation specific.

Also true.

Ben.

