
From stpeter@stpeter.im  Wed Aug  4 06:29:01 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 97BEF3A6836 for <xmpp@core3.amsl.com>; Wed,  4 Aug 2010 06:29:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.688
X-Spam-Level: 
X-Spam-Status: No, score=-0.688 tagged_above=-999 required=5 tests=[AWL=-1.681, BAYES_50=0.001, DATE_IN_PAST_12_24=0.992]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kc8a9-+IUBnw for <xmpp@core3.amsl.com>; Wed,  4 Aug 2010 06:29:00 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id CF5A83A68DA for <xmpp@ietf.org>; Wed,  4 Aug 2010 06:29:00 -0700 (PDT)
Received: from squire.local (ip-216-17-182-154.rev.frii.com [216.17.182.154]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 79CD440077 for <xmpp@ietf.org>; Wed,  4 Aug 2010 07:29:58 -0600 (MDT)
Message-ID: <4C582677.7040504@stpeter.im>
Date: Tue, 03 Aug 2010 16:23:51 +0200
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] 3921bis: proposed text on storing subscribed, unsubscribed, and unsubscribe
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 13:29:01 -0000

[Written while in flight; delivery will be delayed.]

Here is proposed text (promised during the WG session last week)
regarding the optional behavior of server-side caching of inbound
presence stanzas of type "subscribed", "unsubscribe", and "unsubscribed"
(as supported by several existing servers)...

      Implementation Note: If the account has no available resources
      when the inbound subscribed notification is received, a server MAY
      keep a record of the notification (ideally the complete presence
      stanza) and then deliver the notification when the account next
      has an available resource.  This behavior provides more complete
      signalling to the user regarding the reasons for the roster change
      that occurred while the user was offline.

/psa


From stpeter@stpeter.im  Wed Aug  4 09:23:29 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8EFE43A67E1 for <xmpp@core3.amsl.com>; Wed,  4 Aug 2010 09:23:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.426
X-Spam-Level: 
X-Spam-Status: No, score=-102.426 tagged_above=-999 required=5 tests=[AWL=0.173, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dIAU44nw-PCJ for <xmpp@core3.amsl.com>; Wed,  4 Aug 2010 09:23:28 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 861403A68C8 for <xmpp@ietf.org>; Wed,  4 Aug 2010 09:23:28 -0700 (PDT)
Received: from squire.local (ip-216-17-182-154.rev.frii.com [216.17.182.154]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 66A7C40074 for <xmpp@ietf.org>; Wed,  4 Aug 2010 10:24:27 -0600 (MDT)
Message-ID: <4C59941B.801@stpeter.im>
Date: Wed, 04 Aug 2010 10:23:55 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] 3921bis planning
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 16:23:29 -0000

On the flight back to America yesterday I worked through several of the
open issues discussed in the WG meeting last week. Here's what I think
remains to be done:

1. I still need to reply to the last message from Florian Zeitz:

http://www.ietf.org/mail-archive/web/xmpp/current/msg01540.html

2. I might need to add a bit of text about the impact of various
presence stanzas on roster states (e.g., we are now using presence
stanzas of type 'unsubscribed' in response to presence probes in certain
circumstances).

3. I need to think about whether text changes are needed based on the
long message I sent last Saturday about message delivery:

http://www.ietf.org/mail-archive/web/xmpp/current/msg01557.html

(For example, I might restructure Section 8 a bit, focusing more on
stanza types than the JIDs in the 'to' address.)

I plan to submit an updated version (-10) by the end of this week, and
will leave it up to the chairs whether they think a second WG Last Call
will be necessary.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug  4 09:44:16 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C20143A685B for <xmpp@core3.amsl.com>; Wed,  4 Aug 2010 09:44:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.432
X-Spam-Level: 
X-Spam-Status: No, score=-102.432 tagged_above=-999 required=5 tests=[AWL=0.167, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gvqiThiLYAyO for <xmpp@core3.amsl.com>; Wed,  4 Aug 2010 09:44:15 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 218C028C0D8 for <xmpp@ietf.org>; Wed,  4 Aug 2010 09:44:15 -0700 (PDT)
Received: from squire.local (ip-216-17-182-154.rev.frii.com [216.17.182.154]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 8539B40074 for <xmpp@ietf.org>; Wed,  4 Aug 2010 10:45:13 -0600 (MDT)
Message-ID: <4C5998FB.4060109@stpeter.im>
Date: Wed, 04 Aug 2010 10:44:43 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <D971404D-A338-4BAB-80AF-0D08063CC1CC@nostrum.com>	<4C4E3B84.9040201@babelmonkeys.de>	<4C504CD2.5030401@stpeter.im> <4C50BDB3.6040100@babelmonkeys.de>
In-Reply-To: <4C50BDB3.6040100@babelmonkeys.de>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Subject: Re: [xmpp] WGLC of draft-ietf-xmpp-3921bis-08
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Aug 2010 16:44:16 -0000

On 7/28/10 5:30 PM, Florian Zeitz wrote:
> On 28.07.2010 17:29, Peter Saint-Andre wrote:
>> On 7/27/10 3:51 AM, Florian Zeitz wrote:
>>> In section 2.6.2 the first and last paragraph seem to contradict
>>> each other. One says you MUST include a ver attribute if roster
>>> versioning is supported the other says there are legitimate reasons
>>> to leave it out even though you support versioning. I also think that
>>> the last paragraph is wrong when saying that not wanting to bootstrap
>>> is a reason to leave the ver attribute out.
>>
>> I see no contradiction:
>>
>>    If a client supports roster versioning and the server to which it has
>>    connected advertises support for roster versioning as described in
>>    the foregoing section, then the client MUST include the 'ver' element
>>    in its request for the roster.
>>
>> vs.
>>
>>    Naturally, if the client does not support roster versioning or does
>>    not wish to bootstrap the use of roster versioning, it will not
>>    include the 'ver' attribute.
>>
>> So it's a question of whether the client supports roster versioning.
>>
> Basically what Kev said.
> However I still don't see how not wanting to bootstrap is a reason to
> leave the 'ver' attribute out. Either you want to bootstrap and set it
> to an empty string, or you set it to the version you currently have.
> Otherwise I think this sentence would be equivalent to "If the client
> doesn't support roster versioning, or isn't in the mood to use it, it
> will not include the 'ver' attribute"...

I changed MUST to SHOULD, so I think that addresses your concern.

>>> Section 4.3.1 says »The server MUST NOT send a probe to a contact if
>>> the user is not subscribed to the contact's presence [...], unless
>>> the user has sent directed presence to the contact and has received
>>> presence information in return.«. I don't think having received
>>> presence information is actually needed as a requirement here.
>>
>> I think it's worth discussing that more. I'll bring it up in the WG
>> meeting on Thursday (along with other open issues -- I'll post to the
>> list about that separately).
>>
> See my other mail.

My working copy now has this text:

      Implementation Note: Although presence probes are intended for
      sending to contacts (i.e., entities to which a user is
      subscribed), a MAY send a presence probe to the full JID of an
      entity from which the user has received presence information
      during the current session.

>>> Section 4.4.2 (same for 4.5.2) requires the type of the last
>>> received presence not to have been "unsubscribe" and a subscription
>>> of from or both. Is there really a case (that I'm missing) where the
>>> last received presence was type="unsubscribe", but we have a
>>> subscription state of "from" or "both"?
>>
>> Well, 'from' means the contact is subscribed to the user (i.e., there is
>> a subscription *from* the contact to the user), so if the contact sends
>> 'unsubscribe' to the user then the user's server shouldn't send outbound
>> presence anymore.
>>
> Sure, I'm not saying that is wrong. However I would have expected that
> in response to the 'unsubscribe' the server would also have changed
> 'from' to 'none' and 'both' to 'to'... Maybe I'm just confused here.

Ah, I see your point. I've changed that text to:

   2.  The last presence stanza received from the contact during the
       user's presence session was not of type "unsubscribe" (because
       the user's server would then have changed the subscription state
       to either "none" or "to"; see Section 3.3 and Appendix A).

>>> Section 4.6.4: I think text similar to that provided in section
>>> 4.6.3 would be better here.
>>
>> Please clarify.
>>
> 4.6.3 dealing with server handling of inbound directed presence just
> says, directed presence is no different to normal presence to a server.
> If I didn't miss something the same goes for clients. But 4.6.4 instead
> choose to copy the text that is already present in 4.2.4, 4.4.4 and
> 4.5.4 (which is a lot of duplicates too if I may say that).

True. I've changed the duplicate text so that those sections refer to
the first instance.

>>> Section 8: We no longer specify that higher priority == more
>>> available at all. Shouldn't this at least be a suggestion for a
>>> possible algorithm? This also needs to go into Appendix E I think.
>>
>> Could you clarify exactly what you are suggesting?
> Just so I'm sure I'm not completely out of line let me get in some more
> detail than may be needed.
> Current practice on most servers (which was also mandated by rfc3921
> AFAICT) is to treat resources with a higher priority value as more
> available and send messages addressed to the bare JID to the highest
> priority resource.
> 3921bis has changed that in two ways.
> 1. Sending messages to all only resources is not allowed
> 2. Availability is not determined by presence, but instead chosen by a
> implementation specific algorithm.
> What I suggest is:
> a) That Section 8 should provide the "highest priority resource is most
> available" behaviour as example for one such algorithm (or even present
> it as a sensible default).

Done.

> b) Appendix E should mention this changes

Done.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From jonasl@google.com  Thu Aug  5 05:12:08 2010
Return-Path: <jonasl@google.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4F2333A6A61 for <xmpp@core3.amsl.com>; Thu,  5 Aug 2010 05:12:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.046
X-Spam-Level: 
X-Spam-Status: No, score=-101.046 tagged_above=-999 required=5 tests=[AWL=-0.929, BAYES_20=-0.74, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P1-rHqrb2Tg7 for <xmpp@core3.amsl.com>; Thu,  5 Aug 2010 05:12:06 -0700 (PDT)
Received: from smtp-out.google.com (smtp-out.google.com [74.125.121.35]) by core3.amsl.com (Postfix) with ESMTP id 6BABF3A6A77 for <xmpp@ietf.org>; Thu,  5 Aug 2010 05:12:03 -0700 (PDT)
Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id o75CCWrF018025 for <xmpp@ietf.org>; Thu, 5 Aug 2010 05:12:33 -0700
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1281010353; bh=kflAr9SvKAlogxkTp4lYFPej16Y=; h=MIME-Version:In-Reply-To:References:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rK4inPgNbxLak8Gwqf5t5tWeVT/FiZv3GEjL8IfbA4BNj44nsvSzbYy3xpXrpNIxW PmwKzWTItjNdw0ZbSNVFg==
DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=mime-version:in-reply-to:references:from:date:message-id: subject:to:cc:content-type:x-system-of-record; b=lIS3y2oNsXE/gxPS9NPLIOiLPtSoJTeQACOkOZK0w1fEJQGjlt4wN+gxmIYAHFKD/ Jaw6Nk//dBWrmX/+dPrVw==
Received: from ywf9 (ywf9.prod.google.com [10.192.6.9]) by wpaz24.hot.corp.google.com with ESMTP id o75CCVGX024376 for <xmpp@ietf.org>; Thu, 5 Aug 2010 05:12:31 -0700
Received: by ywf9 with SMTP id 9so3049991ywf.13 for <xmpp@ietf.org>; Thu, 05 Aug 2010 05:12:31 -0700 (PDT)
Received: by 10.150.63.8 with SMTP id l8mr12096924yba.54.1281010351227; Thu,  05 Aug 2010 05:12:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.150.93.3 with HTTP; Thu, 5 Aug 2010 05:12:11 -0700 (PDT)
In-Reply-To: <2378.1280421411.209216@puncture>
References: <AANLkTin5Oo7RI3XYohlgpIOUMlmTq4gY1xXQmd_9mWt0@mail.gmail.com>  <AANLkTimjCKBzr2Ex9MtN9_OW-BcLQ6+-5MDK0MS3rpX1@mail.gmail.com>  <4C4719D4.6020702@stpeter.im> <AANLkTikrNbUYcs3JCsP6obuMIhSRuL3385g3y2EPDqhm@mail.gmail.com>  <4C4AB995.8010506@stpeter.im> <AANLkTikqBZMSXB9od8M4gewKjLi77U05T9qxJ3ipkn9-@mail.gmail.com>  <AANLkTikUErdC7=CP4TEqWS+HiX51iXK+Ok62P=0imjEV@mail.gmail.com>  <2378.1280421411.209216@puncture>
From: Jonas Lindberg <jonasl@google.com>
Date: Thu, 5 Aug 2010 14:12:11 +0200
Message-ID: <AANLkTik8rQhL_8u+58kTVpHkwdst_7kL2Xm1AVEOgjmt@mail.gmail.com>
To: Dave Cridland <dave@cridland.net>
Content-Type: multipart/alternative; boundary=000e0cd5cabaf044a2048d1276ac
X-System-Of-Record: true
Cc: XMPP Working Group <xmpp@ietf.org>
Subject: Re: [xmpp] 3921bis - not responding to probes.
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Aug 2010 12:12:08 -0000

--000e0cd5cabaf044a2048d1276ac
Content-Type: text/plain; charset=ISO-8859-1

On Thu, Jul 29, 2010 at 6:36 PM, Dave Cridland <dave@cridland.net> wrote:

> On Wed Jul 28 18:08:52 2010, Kevin Smith wrote:
>
>> On Mon, Jul 26, 2010 at 9:20 AM, Jonas Lindberg <jonasl@google.com>
>> wrote:
>> > Responding to presence probes for unavailable users would add an extra
>> > ~15% presence traffic in our use case, which is pretty significant.
>> > The percentage to be much larger if one also accounts for the "other
>> > optimization". (Disclaimer: this number is based on a quick back of
>> > the envelope calculation, so I reserve the right to have made
>> > errors..)
>> >
>> > Perhaps more interesting than that number is considering the cost of
>> > processing initial presence for users with large contact lists. Take
>> > the scenario where a user with a 1000 subscribed friends logs in. Say
>> > 20% of these friends are connected and present. With the optimization,
>> > servers responding to the probes need to process 200 probes to online
>> > friends and send responses. The other 800 probes can be dropped as
>> > soon as the receiver is identified as offline. But without the
>> > optimization, 400% more probes need to be responded to, which in
>> > addition to the cost of sending a response also may mean having to
>> > load (or keep) policy and roster data for each of these offline users
>> > in memory, to run business logic figuring out what the response should
>> > look like (unavailable/unsubscribed) etc.
>>
>> Thanks. I'm digesting.
>>
>
> Actually, you need to send those unsubscribed whether or not the user is
> online, it's the first step in 3921bis. This means you already have to load
> in the rosters. That's a MUST, incidentally - so you're also arguing against
> that.
>

That is a good point. I'd be interested in discussing that as well. It would
be much preferable from a scaling point of view if the protocol only
required loading state for users that are currently online, rather than all
users that have a friend that is online, since the latter set is likely much
larger.

The other point that was not brought up in this email thread is that making
this change likely would increase start-up time for existing clients. As an
anecdotal data point, the Xmpp desktop client I currently use (which doesn't
set any clever server side presence filters) takes ~5 seconds from login to
becoming useful, which seems to be when most of the initial presence storm
has subsided. I wouldn't be surprised if that time increased substantially
with also receiving a much larger set of unavailable presence on login.
Likely a bigger issue in scenarios with less available bandwidth, like cell
phone based xmpp clients (where of course battery is also a concern).

Also, thanks to PEP, servers currently maintain quite a substantial chunk of
> state for remote contacts which needs cleanup from time to time. If probes
> are unanswered, then we have to have timers per contact to decide if they're
> probably offline, and remove their subscriptions.
>
> There's similar cleanup in other places.
>
> For directed presence, as used in MUC, this is particularly important, as a
> directed probe is our sole means of seeing whether a full jid remains online
> or not. (Note that this is somewhat different - the response to the MUC
> probe is either unsubscribed or some presence). Again, this can be done with
> timers, but again, it feels very more more hacky.
>
> Essentially, a response to a probe allows consistent behaviour in a number
> of areas where otherwise heuristics, or degraded behaviour, have to be
> currently deployed.
>
>
> Dave.
> --
> Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net<xmpp%3Adwd@dave.cridland.net>
>  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
>  - http://dave.cridland.net/
> Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
>

--000e0cd5cabaf044a2048d1276ac
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<br><br><div class=3D"gmail_quote">On Thu, Jul 29, 2010 at 6:36 PM, Dave Cr=
idland <span dir=3D"ltr">&lt;<a href=3D"mailto:dave@cridland.net">dave@crid=
land.net</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class=3D"im">On Wed Jul 28 18:08:52 2010, Kevin Smith wrote:<br>
</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
eft:1px #ccc solid;padding-left:1ex"><div class=3D"im">
On Mon, Jul 26, 2010 at 9:20 AM, Jonas Lindberg &lt;<a href=3D"mailto:jonas=
l@google.com" target=3D"_blank">jonasl@google.com</a>&gt; wrote:<br></div><=
div class=3D"im">
&gt; Responding to presence probes for unavailable users would add an extra=
<br>
&gt; ~15% presence traffic in our use case, which is pretty significant.<br=
>
&gt; The percentage to be much larger if one also accounts for the &quot;ot=
her<br>
&gt; optimization&quot;. (Disclaimer: this number is based on a quick back =
of<br>
&gt; the envelope calculation, so I reserve the right to have made<br>
&gt; errors..)<br>
&gt;<br>
&gt; Perhaps more interesting than that number is considering the cost of<b=
r>
&gt; processing initial presence for users with large contact lists. Take<b=
r>
&gt; the scenario where a user with a 1000 subscribed friends logs in. Say<=
br>
&gt; 20% of these friends are connected and present. With the optimization,=
<br>
&gt; servers responding to the probes need to process 200 probes to online<=
br>
&gt; friends and send responses. The other 800 probes can be dropped as<br>
&gt; soon as the receiver is identified as offline. But without the<br>
&gt; optimization, 400% more probes need to be responded to, which in<br>
&gt; addition to the cost of sending a response also may mean having to<br>
&gt; load (or keep) policy and roster data for each of these offline users<=
br>
&gt; in memory, to run business logic figuring out what the response should=
<br>
&gt; look like (unavailable/unsubscribed) etc.<br>
<br>
Thanks. I&#39;m digesting.<br>
</div></blockquote>
<br>
Actually, you need to send those unsubscribed whether or not the user is on=
line, it&#39;s the first step in 3921bis. This means you already have to lo=
ad in the rosters. That&#39;s a MUST, incidentally - so you&#39;re also arg=
uing against that.<br>

</blockquote><div><br></div><div>That is a good point.=A0I&#39;d be interes=
ted in discussing that as well. It would be much=A0preferable=A0from a scal=
ing point of view if the protocol only required loading state for users tha=
t are currently online, rather than all users that have a friend that is on=
line, since the latter set is likely much larger.</div>

<div><br></div><div>The other point that was not brought up in this email t=
hread is that making this change likely would increase start-up time for ex=
isting clients. As an anecdotal data point, the Xmpp desktop client I curre=
ntly use (which doesn&#39;t set any clever server side presence filters) ta=
kes ~5 seconds from login to becoming useful, which seems to be when most o=
f the initial presence storm has=A0subsided. I wouldn&#39;t be surprised if=
 that time increased substantially with also receiving a much larger set of=
 unavailable presence on login. Likely a bigger issue in scenarios with les=
s available bandwidth, like cell phone based xmpp clients (where of course =
battery is also a concern).</div>

<div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex;">Also, thanks to PEP, servers=
 currently maintain quite a substantial chunk of state for remote contacts =
which needs cleanup from time to time. If probes are unanswered, then we ha=
ve to have timers per contact to decide if they&#39;re probably offline, an=
d remove their subscriptions.<br>


<br>
There&#39;s similar cleanup in other places.<br>
<br>
For directed presence, as used in MUC, this is particularly important, as a=
 directed probe is our sole means of seeing whether a full jid remains onli=
ne or not. (Note that this is somewhat different - the response to the MUC =
probe is either unsubscribed or some presence). Again, this can be done wit=
h timers, but again, it feels very more more hacky.<br>


<br>
Essentially, a response to a probe allows consistent behaviour in a number =
of areas where otherwise heuristics, or degraded behaviour, have to be curr=
ently deployed.<div><div></div><div class=3D"h5"><br>
<br>
Dave.<br>
-- <br>
Dave Cridland - mailto:<a href=3D"mailto:dave@cridland.net" target=3D"_blan=
k">dave@cridland.net</a> - <a href=3D"mailto:xmpp%3Adwd@dave.cridland.net" =
target=3D"_blank">xmpp:dwd@dave.cridland.net</a><br>
=A0- acap://<a href=3D"http://acap.dave.cridland.net/byowner/user/dwd/bookm=
arks/" target=3D"_blank">acap.dave.cridland.net/byowner/user/dwd/bookmarks/=
</a><br>
=A0- <a href=3D"http://dave.cridland.net/" target=3D"_blank">http://dave.cr=
idland.net/</a><br>
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade<br>
</div></div></blockquote></div><br>

--000e0cd5cabaf044a2048d1276ac--

From stpeter@stpeter.im  Fri Aug  6 18:53:52 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D505B3A68E6 for <xmpp@core3.amsl.com>; Fri,  6 Aug 2010 18:53:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.453
X-Spam-Level: 
X-Spam-Status: No, score=-102.453 tagged_above=-999 required=5 tests=[AWL=0.146, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QiJU4YfSQcI4 for <xmpp@core3.amsl.com>; Fri,  6 Aug 2010 18:53:51 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id B2D7E3A68B8 for <xmpp@ietf.org>; Fri,  6 Aug 2010 18:53:51 -0700 (PDT)
Received: from squire.local (ip-216-17-182-116.rev.frii.com [216.17.182.116]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 02C6140074 for <xmpp@ietf.org>; Fri,  6 Aug 2010 19:55:04 -0600 (MDT)
Message-ID: <4C5CBCCD.5020206@stpeter.im>
Date: Fri, 06 Aug 2010 19:54:21 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: multipart/mixed; boundary="------------010103050508080504090304"
Subject: [xmpp] Fwd: I-D Action:draft-saintandre-tls-server-id-check-09.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 07 Aug 2010 01:53:52 -0000

This is a multi-part message in MIME format.
--------------010103050508080504090304
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

FYI. Feedback and reviews are still needed on this spec, which is
referenced from Section 13.7 of 3920bis. Thanks!

/psa

-------- Original Message --------
Subject: I-D Action:draft-saintandre-tls-server-id-check-09.txt
Date: Fri,  6 Aug 2010 18:45:02 -0700 (PDT)
From: Internet-Drafts@ietf.org
Reply-To: internet-drafts@ietf.org
To: i-d-announce@ietf.org

A New Internet-Draft is available from the on-line Internet-Drafts
directories.

	Title           : Representation and Verification of Domain-Based
Application Service Identity in Certificates Used with Transport Layer
Security
	Author(s)       : P. Saint-Andre, J. Hodges
	Filename        : draft-saintandre-tls-server-id-check-09.txt
	Pages           : 41
	Date            : 2010-08-06

Many application technologies enable a secure connection between two
entities using certificates in the context of Transport Layer
Security (TLS).  This document specifies best current practices for
representing and verifying the identity of application services in
such interactions.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-saintandre-tls-server-id-check-09.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.


--------------010103050508080504090304
Content-Type: Message/External-body;
 name="draft-saintandre-tls-server-id-check-09.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="draft-saintandre-tls-server-id-check-09.txt"

Content-Type: text/plain
Content-ID: <2010-08-06183346.I-D@ietf.org>



--------------010103050508080504090304
Content-Type: text/plain;
 name="Attached Message Part"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="Attached Message Part"

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSS1ELUFu
bm91bmNlIG1haWxpbmcgbGlzdApJLUQtQW5ub3VuY2VAaWV0Zi5vcmcKaHR0cHM6Ly93d3cu
aWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby9pLWQtYW5ub3VuY2UKSW50ZXJuZXQtRHJhZnQg
ZGlyZWN0b3JpZXM6IGh0dHA6Ly93d3cuaWV0Zi5vcmcvc2hhZG93Lmh0bWwKb3IgZnRwOi8v
ZnRwLmlldGYub3JnL2lldGYvMXNoYWRvdy1zaXRlcy50eHQKCg==
--------------010103050508080504090304--

From stpeter@stpeter.im  Mon Aug  9 07:20:02 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4CFD43A635F for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 07:20:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.429
X-Spam-Level: 
X-Spam-Status: No, score=-102.429 tagged_above=-999 required=5 tests=[AWL=0.170, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lFG0DnOGGynC for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 07:20:01 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id E873C3A6AF8 for <xmpp@ietf.org>; Mon,  9 Aug 2010 07:19:52 -0700 (PDT)
Received: from squire.local (dsl-228-99.dynamic-dsl.frii.net [216.17.228.99]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 928F440074 for <xmpp@ietf.org>; Mon,  9 Aug 2010 08:21:22 -0600 (MDT)
Message-ID: <4C600EA1.3000109@stpeter.im>
Date: Mon, 09 Aug 2010 08:20:17 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] 3920bis tweaks
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 14:20:02 -0000

Before the Chairs request an IETF Last Call on 3920bis, I think we need
to make the following slight modifications:

1. Based on Last Call feedback, draft-saintandre-tls-server-id-check no
longer includes text about the preference order of identifiers in
certificates. Therefore, we need to adjust Section 13.7.1.2.1 of 3920bis.

2. In a hallway conversation in Maastricht, someone mentioned to me that
Section 4.5.1 ("Idle Peer") of 3920bis is slightly ambiguous, because it
might be taken to imply that stanza-level traffic supersedes TCP-level
traffic (such as whitespace keepalives). We can clarify this matter by
changing the order of subsections in Section 4.5 or by adding a few
words to Section 4.5.1.

I'll propose text on these points in the next day or so.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From ben@nostrum.com  Mon Aug  9 08:28:52 2010
Return-Path: <ben@nostrum.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C75563A6A92 for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 08:28:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.6
X-Spam-Level: 
X-Spam-Status: No, score=-102.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OsmFMyXX6Pgj for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 08:28:51 -0700 (PDT)
Received: from nostrum.com (nostrum-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:267::2]) by core3.amsl.com (Postfix) with ESMTP id 126D93A698B for <xmpp@ietf.org>; Mon,  9 Aug 2010 08:28:48 -0700 (PDT)
Received: from dn3-174.estacado.net (vicuna-alt.estacado.net [75.53.54.121]) (authenticated bits=0) by nostrum.com (8.14.3/8.14.3) with ESMTP id o79FTLPr006954 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 9 Aug 2010 10:29:22 -0500 (CDT) (envelope-from ben@nostrum.com)
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset=us-ascii
From: Ben Campbell <ben@nostrum.com>
In-Reply-To: <A57D997C-A287-40A3-B931-5D42055CB82E@nostrum.com>
Date: Mon, 9 Aug 2010 10:29:20 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <04238FE7-3992-42F7-BBC4-090A96934FE8@nostrum.com>
References: <A57D997C-A287-40A3-B931-5D42055CB82E@nostrum.com>
To: XMPP Working Group <xmpp@ietf.org>
X-Mailer: Apple Mail (2.1081)
Received-SPF: pass (nostrum.com: 75.53.54.121 is authenticated by a trusted mechanism)
Cc: Joe Hildebrand <joe.hildebrand@webex.com>
Subject: Re: [xmpp] Draft XMPP Minutes from IET78
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 15:28:52 -0000

Reminder: Please review the draft minutes as soon as possible. These =
will soon become the permanent record of the Maastricht meeting.

On Jul 30, 2010, at 9:06 AM, Ben Campbell wrote:

> Hi
>=20
> Draft minutes from the IETF78 XMPP meeting are available at =
http://www.ietf.org/proceedings/78/minutes/xmpp.txt .
>=20
> Please review as soon as possible, and send any feedback or =
corrections to the chairs.
>=20
> Thanks!
>=20
> Ben.
>=20
>=20
> _______________________________________________
> xmpp mailing list
> xmpp@ietf.org
> https://www.ietf.org/mailman/listinfo/xmpp


From stpeter@stpeter.im  Mon Aug  9 08:38:28 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6A8353A696D for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 08:38:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.664
X-Spam-Level: 
X-Spam-Status: No, score=-102.664 tagged_above=-999 required=5 tests=[AWL=-0.065, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nezsp7d0oYwM for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 08:38:27 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 08EE23A69CE for <xmpp@ietf.org>; Mon,  9 Aug 2010 08:38:27 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id A484540074 for <xmpp@ietf.org>; Mon,  9 Aug 2010 09:39:56 -0600 (MDT)
Message-ID: <4C602114.6070601@stpeter.im>
Date: Mon, 09 Aug 2010 09:39:00 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4C600EA1.3000109@stpeter.im>
In-Reply-To: <4C600EA1.3000109@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3920bis tweaks
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 15:38:28 -0000

On 8/9/10 8:20 AM, Peter Saint-Andre wrote:
> Before the Chairs request an IETF Last Call on 3920bis, I think we need
> to make the following slight modifications:
> 
> 1. Based on Last Call feedback, draft-saintandre-tls-server-id-check no
> longer includes text about the preference order of identifiers in
> certificates. Therefore, we need to adjust Section 13.7.1.2.1 of 3920bis.

That section currently reads:

###

13.7.1.2.1. Rules

   In a digital certificate to be presented by an XMPP server (i.e., a
   SERVER CERTIFICATE), it is RECOMMENDED for the certificate to include
   one or more JIDs (i.e., domainparts) associated with domains serviced
   at the server.  The rules and guidelines defined in [TLS-CERTS] apply
   to XMPP server certificates.  The following preference order of
   identifiers is RECOMMENDED, where the identifier types are as
   described in [TLS-CERTS] unless otherwise noted.

   1.  SRV-ID (see also [PKIX-SRV])
   2.  DNS-ID
   3.  XmppAddr as specified under Section 13.7.1.4
   4.  CN-ID

   XMPP client and server software implementations MUST be able to
   validate both the SRV-ID and DNS-ID identifier types.  Certification
   authorities that issue XMPP-specific certificates MUST support the
   DNS-ID identifier type and SHOULD support the SRV-ID identifier type.
   Service providers SHOULD request and prefer certificates that include
   an SRV-ID identifier type.  Support for the XmppAddr and CN-ID
   identifier types is encouraged for the sake of backward-
   compatibility.

###

I propose the following modified text:

###

13.7.1.2.1. Rules

   In a digital certificate to be presented by an XMPP server (i.e., a
   SERVER CERTIFICATE), it is RECOMMENDED for the certificate to include
   one or more JIDs (i.e., domainparts) associated with domains serviced
   at the server.  The rules and guidelines defined in [TLS-CERTS] apply
   to XMPP server certificates.  XMPP client and server software
   implementations MUST be able to validate both the SRV-ID and DNS-ID
   identifier types described in [TLS-CERTS].  Certification
   authorities that issue XMPP-specific certificates MUST support the
   DNS-ID identifier type and SHOULD support the SRV-ID identifier type.
   Service providers SHOULD request and prefer certificates that include
   the SRV-ID identifier type.  Support for the XmppAddr identifier
   type (specified under Section 13.7.1.4) and the CN-ID identifier
   type (described in [TLS-CERTS]) is encouraged for the sake of
   backward-compatibility.

###

> 2. In a hallway conversation in Maastricht, someone mentioned to me that
> Section 4.5.1 ("Idle Peer") of 3920bis is slightly ambiguous, because it
> might be taken to imply that stanza-level traffic supersedes TCP-level
> traffic (such as whitespace keepalives). We can clarify this matter by
> changing the order of subsections in Section 4.5 or by adding a few
> words to Section 4.5.1.

Here I think it would be good to follow the order of layers by first
describing the handling of dead TCP connections, then the handling of
broken streams, then the handling of idle peers. So in Section 4.5 we
would have:

   When an entity that is a party to a stream has not received any XMPP
   traffic from its stream peer for some period of time, the peer might
   appear to be silent.  There are several reasons why this might
   happen:

   1.  The underlying TCP connection is dead.

   2.  The XML stream is broken despite the fact that the underlying TCP
       connection is alive.

   3.  The peer is idle and simply has not sent any XMPP traffic over
       its XML stream to the entity.

Then we would reverse the order of Sections 4.5.1, 4.5.2, and 4.5.3, as
follows:

   4.5.1. Dead Connection

   4.5.2. Broken Stream

   4.5.3. Idle Peer

I suggest the following text tweaks to the second and third of those
sections:

###

4.5.2. Broken Stream

   Even if the underlying TCP connection is alive, the peer might never
   respond to XMPP traffic that the entity sends, whether normal
   stanzas or specialized stream-checking traffic such as the
   application-level pings defined in [XEP-0199] or the more
   comprehensive stream management protocol defined in [XEP-0198].  In
   this case, it is appropriate for the entity to terminate a broken
   stream using the <connection-timeout/> stream error described under
   Section 4.8.3.4.

###

and:

###

4.5.3. Idle Peer

   Even if the underlying TCP connection is alive and the stream is not
   broken, the peer might not have sent any stanzas for a certain
   period of time.  In this case, the peer SHOULD close the stream
   using the handshake described under Section 4.4.  However, if the
   idle peer does not close the stream, the other party to the stream
   MAY either close the stream using the handshake described under
   Section 4.4 or return a stream error (e.g., <resource-constraint/>
   if the entity has reached a limit on the number of open TCP
   connections or <policy-violation/> if the connection has exceeded a
   local timeout policy).  However, consistent with the order of layers
   (Section 13.3), the other party is advised to check the underlying
   TCP connection and the stream itself before concluding that the peer
   is idle.  Furthermore, it is preferable to be liberal in accepting
   idle peers, since experience has shown that doing so improves the
   reliability of communication over XMPP networks and that it is
   typically more efficient to maintain a stream between two servers
   than to aggressively timeout such a stream.

###

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug  9 09:07:51 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 243563A6ACC for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 09:07:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.663
X-Spam-Level: 
X-Spam-Status: No, score=-102.663 tagged_above=-999 required=5 tests=[AWL=-0.064, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fJaG0oayBFkH for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 09:07:50 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 256B43A6981 for <xmpp@ietf.org>; Mon,  9 Aug 2010 09:07:50 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 6F52640074 for <xmpp@ietf.org>; Mon,  9 Aug 2010 10:09:20 -0600 (MDT)
Message-ID: <4C6027FC.5050001@stpeter.im>
Date: Mon, 09 Aug 2010 10:08:28 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4C600EA1.3000109@stpeter.im> <4C602114.6070601@stpeter.im>
In-Reply-To: <4C602114.6070601@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3920bis tweaks
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 16:07:51 -0000

On 8/9/10 9:39 AM, Peter Saint-Andre wrote:

> 4.5.3. Idle Peer
> 
>    Even if the underlying TCP connection is alive and the stream is not
>    broken, the peer might not have sent any stanzas for a certain
>    period of time.  In this case, the peer SHOULD close the stream
>    using the handshake described under Section 4.4.  However, if the
>    idle peer does not close the stream, the other party to the stream
>    MAY either close the stream using the handshake described under
>    Section 4.4 or return a stream error (e.g., <resource-constraint/>
>    if the entity has reached a limit on the number of open TCP
>    connections or <policy-violation/> if the connection has exceeded a
>    local timeout policy).  However, consistent with the order of layers
>    (Section 13.3), the other party is advised to check the underlying
>    TCP connection and the stream itself before concluding that the peer
>    is idle.  Furthermore, it is preferable to be liberal in accepting
>    idle peers, since experience has shown that doing so improves the
>    reliability of communication over XMPP networks and that it is
>    typically more efficient to maintain a stream between two servers
>    than to aggressively timeout such a stream.

That text has some less-than-perfect grammar and might still be
considered a bit ambiguous. I think this is a bit better:

###

4.5.3.  Idle Peer

   Even if the underlying TCP connection is alive and the stream is not
   broken, the peer might have sent no stanzas for a certain period of
   time.  In this case, the peer SHOULD close the stream using the
   handshake described under Section 4.4.  If the idle peer does not
   close the stream, the other party MAY either close the stream using
   the handshake described under Section 4.4 or return a stream error
   (e.g., <resource-constraint/> if the entity has reached a limit on
   the number of open TCP connections or <policy-violation/> if the
   connection has exceeded a local timeout policy).  However, consistent
   with the order of layers (specified under Section 13.3), the other
   party is advised to verify that the underlying TCP connection is
   alive and the stream is unbroken (as described above) before
   concluding that the peer is idle.  Furthermore, it is preferable to
   be liberal in accepting idle peers, since experience has shown that
   doing so improves the reliability of communication over XMPP networks
   and that it is typically more efficient to maintain a stream between
   two servers than to aggressively timeout such a stream.

###



From stpeter@stpeter.im  Mon Aug  9 14:27:29 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6EDAB3A685B for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 14:27:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.732
X-Spam-Level: 
X-Spam-Status: No, score=-101.732 tagged_above=-999 required=5 tests=[AWL=-0.992, BAYES_20=-0.74, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qtRuF06mCJoG for <xmpp@core3.amsl.com>; Mon,  9 Aug 2010 14:27:28 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 20D9C3A6845 for <xmpp@ietf.org>; Mon,  9 Aug 2010 14:27:28 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id B848E40074 for <xmpp@ietf.org>; Mon,  9 Aug 2010 15:28:59 -0600 (MDT)
Message-ID: <4C6072E1.1060205@stpeter.im>
Date: Mon, 09 Aug 2010 15:28:01 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>
In-Reply-To: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 21:27:29 -0000

The updated versions of 3920bis and 3921bis will have some adjusted and
harmonized text along the lines discussed below. I will submit them in a
few minutes.

On 7/31/10 10:25 AM, Peter Saint-Andre wrote:
> I started to write a post about server handling of a headline message that
> is sent to a full JID where no such resource is online, but while doing so
> I recognized that there are broader issues here, thus the dissertation
> that follows. My apologies for the length, but I think it's important to
> get this right.
> 
> There are three primary considerations at play in server handling of
> inbound messages, which sometimes are at odds but need to be managed in a
> consistent way:
> 
> 1. It's good to deliver a message if possible.
> 
> 2. If a message can't be delivered, it's helpful to inform the sender.
> 
> 3. It's bad to facilitate directory harvesting attacks and presence leaks.
> 
> Take groupchat messages as a fairly non-controversial example. Clearly we
> want to deliver such messages to the user who has joined a groupchat room.
> However, if the user who was in a room then went offline, it's helpful to
> return an error to the chat service so that it can clean up any "ghosts"
> in the room. On the other hand, it's dangerous to return an error if the
> user doesn't exist when the same kind of message sent to an existing
> account would not return an error (because that would enable a directory
> harvesting attack).
> 
> One simple message handling rule that would meet all of the foregoing
> criteria is "the server always returns an error in response to messages of
> type groupchat sent to bare JIDs".
> 
> However, handling of groupchat messages sent to full JIDs is a bit more
> complex. If the server delivers the message when there is an active
> resource that matches the full JID but returns an error when there is no
> matching full JID, then an attacker could send lots of messages to the
> same account with various random resources and perhaps discover whether
> the user is online. Whether the attack is practical is another matter --
> the server could start to return a different error condition if it detects
> such an attack from a particular JID, although the attacker could be smart
> and send its messages from multiple JIDs. We need to weigh costs and
> benefits, and recognize that there are legitimate tradeoffs between
> functionality and security. IMHO it is more difficult to figure out what
> the right tradeoffs are with respect to presence leaks than directory
> harvesting attacks, which is one reason why I think we're having trouble
> agreeing on the right behavior in the case of a headline message that is
> sent to a full JID where no such resource is online.
> 
> I think there is one more principle here: from the perspective of an
> attacker, there is little if any effective difference between the server's
> (i) delivering the message or storing it offline and (ii) silently
> ignoring it (because an error is not returned immediately in any of those
> cases). Therefore, in scenarios where a server delivers a message or
> places a message into offline storage for an existing account, it needs to
> silently ignore the message if that account does not exist. This implies
> that if a server deploys offline storage and thus would store offline a
> message of type chat sent to the bare JID of an account that has no active
> resources, it would need to silently ignore such a message if sent to a
> bare JID for which there is no account.
> 
> I see two subsidiary conclusions:
> 
> 1. Server handling of messages sent to bare JIDs has implications for
> directory harvesting.
> 
> 2. Server handling of messages send to full JIDs has implications for
> presence leaks. However, the attack is less direct here (because the
> attacker needs to try many different resources in an attempt to find the
> one resource that matches) so it is of somewhat lesser concern, in my
> opinion.
> 
> Therefore, I propose the following table. For this table to be useful, you
> need to mentally walk through some of the scenarios, such as "if the
> server receives a message of type chat for a full JID where the account
> does not exist, then it would silently drop the message; whereas if the
> server receives such a message and there is more than one resource with a
> non-negative priority but there is no matching resource, then it would
> deliver the message to the most-available resource or to all of the
> resources (if they have opted in for receiving all chat messages)".
> 
> The conventions "O", "E", "D", "S", "M", and "A" are defined in Section
> 8.3.4 of draft-ietf-xmpp-3921bis-09.
> 
> Finally, a word about the choices (e.g., "S/E"). If a server is more
> concerned about protecting against presence leaks, it would choose to
> silently drop messages sent to the full JID because some messages will
> always be delivered. If a server is more concerned about providing helpful
> feedback to (some) senders, it would choose to return errors in some cases
> (e.g., groupchat messages sent to full JIDs if there is no such active
> resource).
> 
> I'd like it if we could simplify this table, but I found it helpful to
> provisionally define the entire matrix (this matrix is different from the
> one currently in 3921bis, and the text in 3921bis does not match this
> matrix in all cases).
> 
> (I'm posting this via webmail so I hope it works! If not, perhaps someone
> could clean it up and repost, because I am out of time. I might have
> missed something so other corrections are welcome.)
> 
> +----------------------------------------------------------+
> | Condition        | Normal | Chat  | Groupchat | Headline |
> +----------------------------------------------------------+
> | ACCOUNT DOES NOT EXIST                                   |
> |  bare            |  S/E   |  S/E  |     E     |    S     |
> |  full            |  S/E   |  S/E  |    S/E    |   S/E    |
> +----------------------------------------------------------+
> | ACCOUNT EXISTS, BUT NO ACTIVE RESOURCES                  |
> |  bare            |  O/E   |  O/E  |     E     |    S     |
> |  full (no match) |  S/E   |  O/E  |    S/E    |   S/E    |
> +----------------------------------------------------------+
> | 1 NEGATIVE RESOURCE                                      |
> |  bare            |  O/E   |  O/E  |     E     |    S     |
> |  full match      |   D    |   D   |     D     |    D     |
> |  full no match   |  S/E   |  O/E  |    S/E    |   S/E    |
> +----------------------------------------------------------+
> | 1 NON-NEGATIVE RESOURCE                                  |
> |  bare            |   D    |   D   |     E     |    D     |
> |  full match      |   D    |   D   |     D     |    D     |
> |  full no match   |  S/E   |   D   |    S/E    |   S/E    |
> +----------------------------------------------------------+
> | 1+ NON-NEGATIVE RESOURCES                                |
> |  bare            |  M/A   |  M/A* |     E     |    A     |
> |  full match      |   D    |  D/A* |     D     |    D     |
> |  full no match   |  S/E   |  M/A* |    S/E    |   S/E    |
> +----------------------------------------------------------+
> 
> I will be mostly offline for the next few days because of travel and
> meetings, but I will try to reply to list discussion where possible.
> 
> Peter
> 

From root@core3.amsl.com  Mon Aug  9 15:15:03 2010
Return-Path: <root@core3.amsl.com>
X-Original-To: xmpp@ietf.org
Delivered-To: xmpp@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id 553303A691B; Mon,  9 Aug 2010 15:15:02 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100809221503.553303A691B@core3.amsl.com>
Date: Mon,  9 Aug 2010 15:15:02 -0700 (PDT)
Cc: xmpp@ietf.org
Subject: [xmpp] I-D Action:draft-ietf-xmpp-3920bis-12.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 22:15:04 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.


	Title           : Extensible Messaging and Presence Protocol (XMPP): Core
	Author(s)       : P. Saint-Andre
	Filename        : draft-ietf-xmpp-3920bis-12.txt
	Pages           : 183
	Date            : 2010-08-09

The Extensible Messaging and Presence Protocol (XMPP) is an
application profile of the Extensible Markup Language (XML) that
enables the near-real-time exchange of structured yet extensible data
between any two or more network entities.  This document defines
XMPP's core protocol methods: setup and teardown of XML streams,
channel encryption, authentication, error handling, and communication
primitives for messaging, network availability ("presence"), and
request-response interactions.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3920bis-12.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-ietf-xmpp-3920bis-12.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-08-09150753.I-D@ietf.org>


--NextPart--

From root@core3.amsl.com  Mon Aug  9 15:15:05 2010
Return-Path: <root@core3.amsl.com>
X-Original-To: xmpp@ietf.org
Delivered-To: xmpp@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id D224D3A67D0; Mon,  9 Aug 2010 15:15:03 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100809221503.D224D3A67D0@core3.amsl.com>
Date: Mon,  9 Aug 2010 15:15:03 -0700 (PDT)
Cc: xmpp@ietf.org
Subject: [xmpp] I-D Action:draft-ietf-xmpp-3921bis-10.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Aug 2010 22:15:05 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.


	Title           : Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
	Author(s)       : P. Saint-Andre
	Filename        : draft-ietf-xmpp-3921bis-10.txt
	Pages           : 115
	Date            : 2010-08-09

This document defines extensions to core features of the Extensible
Messaging and Presence Protocol (XMPP) that provide basic instant
messaging (IM) and presence functionality in conformance with RFC
2779.  This document obsoletes RFC 3921.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3921bis-10.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-ietf-xmpp-3921bis-10.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-08-09150805.I-D@ietf.org>


--NextPart--

From stpeter@stpeter.im  Tue Aug 10 13:39:56 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 023683A6AC6 for <xmpp@core3.amsl.com>; Tue, 10 Aug 2010 13:39:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.641
X-Spam-Level: 
X-Spam-Status: No, score=-102.641 tagged_above=-999 required=5 tests=[AWL=-0.042, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f5keZqpuRNzh for <xmpp@core3.amsl.com>; Tue, 10 Aug 2010 13:39:54 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 96CF73A6AD2 for <xmpp@ietf.org>; Tue, 10 Aug 2010 13:39:54 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 4A54140074 for <xmpp@ietf.org>; Tue, 10 Aug 2010 14:41:32 -0600 (MDT)
Message-ID: <4C61B93C.1030702@stpeter.im>
Date: Tue, 10 Aug 2010 14:40:28 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im> <4C6072E1.1060205@stpeter.im>
In-Reply-To: <4C6072E1.1060205@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Aug 2010 20:39:56 -0000

The diffs are here:

http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3920bis-12.txt

http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-10.txt

I was working on several tasks at once, so sanity checks would be
appreciated. :)

/psa

On 8/9/10 3:28 PM, Peter Saint-Andre wrote:
> The updated versions of 3920bis and 3921bis will have some adjusted and
> harmonized text along the lines discussed below. I will submit them in a
> few minutes.
> 
> On 7/31/10 10:25 AM, Peter Saint-Andre wrote:
>> I started to write a post about server handling of a headline message that
>> is sent to a full JID where no such resource is online, but while doing so
>> I recognized that there are broader issues here, thus the dissertation
>> that follows. My apologies for the length, but I think it's important to
>> get this right.
>>
>> There are three primary considerations at play in server handling of
>> inbound messages, which sometimes are at odds but need to be managed in a
>> consistent way:
>>
>> 1. It's good to deliver a message if possible.
>>
>> 2. If a message can't be delivered, it's helpful to inform the sender.
>>
>> 3. It's bad to facilitate directory harvesting attacks and presence leaks.
>>
>> Take groupchat messages as a fairly non-controversial example. Clearly we
>> want to deliver such messages to the user who has joined a groupchat room.
>> However, if the user who was in a room then went offline, it's helpful to
>> return an error to the chat service so that it can clean up any "ghosts"
>> in the room. On the other hand, it's dangerous to return an error if the
>> user doesn't exist when the same kind of message sent to an existing
>> account would not return an error (because that would enable a directory
>> harvesting attack).
>>
>> One simple message handling rule that would meet all of the foregoing
>> criteria is "the server always returns an error in response to messages of
>> type groupchat sent to bare JIDs".
>>
>> However, handling of groupchat messages sent to full JIDs is a bit more
>> complex. If the server delivers the message when there is an active
>> resource that matches the full JID but returns an error when there is no
>> matching full JID, then an attacker could send lots of messages to the
>> same account with various random resources and perhaps discover whether
>> the user is online. Whether the attack is practical is another matter --
>> the server could start to return a different error condition if it detects
>> such an attack from a particular JID, although the attacker could be smart
>> and send its messages from multiple JIDs. We need to weigh costs and
>> benefits, and recognize that there are legitimate tradeoffs between
>> functionality and security. IMHO it is more difficult to figure out what
>> the right tradeoffs are with respect to presence leaks than directory
>> harvesting attacks, which is one reason why I think we're having trouble
>> agreeing on the right behavior in the case of a headline message that is
>> sent to a full JID where no such resource is online.
>>
>> I think there is one more principle here: from the perspective of an
>> attacker, there is little if any effective difference between the server's
>> (i) delivering the message or storing it offline and (ii) silently
>> ignoring it (because an error is not returned immediately in any of those
>> cases). Therefore, in scenarios where a server delivers a message or
>> places a message into offline storage for an existing account, it needs to
>> silently ignore the message if that account does not exist. This implies
>> that if a server deploys offline storage and thus would store offline a
>> message of type chat sent to the bare JID of an account that has no active
>> resources, it would need to silently ignore such a message if sent to a
>> bare JID for which there is no account.
>>
>> I see two subsidiary conclusions:
>>
>> 1. Server handling of messages sent to bare JIDs has implications for
>> directory harvesting.
>>
>> 2. Server handling of messages send to full JIDs has implications for
>> presence leaks. However, the attack is less direct here (because the
>> attacker needs to try many different resources in an attempt to find the
>> one resource that matches) so it is of somewhat lesser concern, in my
>> opinion.
>>
>> Therefore, I propose the following table. For this table to be useful, you
>> need to mentally walk through some of the scenarios, such as "if the
>> server receives a message of type chat for a full JID where the account
>> does not exist, then it would silently drop the message; whereas if the
>> server receives such a message and there is more than one resource with a
>> non-negative priority but there is no matching resource, then it would
>> deliver the message to the most-available resource or to all of the
>> resources (if they have opted in for receiving all chat messages)".
>>
>> The conventions "O", "E", "D", "S", "M", and "A" are defined in Section
>> 8.3.4 of draft-ietf-xmpp-3921bis-09.
>>
>> Finally, a word about the choices (e.g., "S/E"). If a server is more
>> concerned about protecting against presence leaks, it would choose to
>> silently drop messages sent to the full JID because some messages will
>> always be delivered. If a server is more concerned about providing helpful
>> feedback to (some) senders, it would choose to return errors in some cases
>> (e.g., groupchat messages sent to full JIDs if there is no such active
>> resource).
>>
>> I'd like it if we could simplify this table, but I found it helpful to
>> provisionally define the entire matrix (this matrix is different from the
>> one currently in 3921bis, and the text in 3921bis does not match this
>> matrix in all cases).
>>
>> (I'm posting this via webmail so I hope it works! If not, perhaps someone
>> could clean it up and repost, because I am out of time. I might have
>> missed something so other corrections are welcome.)
>>
>> +----------------------------------------------------------+
>> | Condition        | Normal | Chat  | Groupchat | Headline |
>> +----------------------------------------------------------+
>> | ACCOUNT DOES NOT EXIST                                   |
>> |  bare            |  S/E   |  S/E  |     E     |    S     |
>> |  full            |  S/E   |  S/E  |    S/E    |   S/E    |
>> +----------------------------------------------------------+
>> | ACCOUNT EXISTS, BUT NO ACTIVE RESOURCES                  |
>> |  bare            |  O/E   |  O/E  |     E     |    S     |
>> |  full (no match) |  S/E   |  O/E  |    S/E    |   S/E    |
>> +----------------------------------------------------------+
>> | 1 NEGATIVE RESOURCE                                      |
>> |  bare            |  O/E   |  O/E  |     E     |    S     |
>> |  full match      |   D    |   D   |     D     |    D     |
>> |  full no match   |  S/E   |  O/E  |    S/E    |   S/E    |
>> +----------------------------------------------------------+
>> | 1 NON-NEGATIVE RESOURCE                                  |
>> |  bare            |   D    |   D   |     E     |    D     |
>> |  full match      |   D    |   D   |     D     |    D     |
>> |  full no match   |  S/E   |   D   |    S/E    |   S/E    |
>> +----------------------------------------------------------+
>> | 1+ NON-NEGATIVE RESOURCES                                |
>> |  bare            |  M/A   |  M/A* |     E     |    A     |
>> |  full match      |   D    |  D/A* |     D     |    D     |
>> |  full no match   |  S/E   |  M/A* |    S/E    |   S/E    |
>> +----------------------------------------------------------+
>>
>> I will be mostly offline for the next few days because of travel and
>> meetings, but I will try to reply to list discussion where possible.
>>
>> Peter
>>

From stpeter@stpeter.im  Wed Aug 11 09:52:07 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9DAA93A69BF for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 09:52:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.704
X-Spam-Level: 
X-Spam-Status: No, score=-102.704 tagged_above=-999 required=5 tests=[AWL=-0.105, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zmx5kR7Sa+Eq for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 09:52:06 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id A596F3A695B for <xmpp@ietf.org>; Wed, 11 Aug 2010 09:52:06 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id B4EF140074 for <xmpp@ietf.org>; Wed, 11 Aug 2010 10:53:49 -0600 (MDT)
Message-ID: <4C62D559.7090203@stpeter.im>
Date: Wed, 11 Aug 2010 10:52:41 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 16:52:07 -0000

During an offlist discussion today, I realized that the concept of
subscription pre-approvals is underspecified. Currently the only text
about it is hidden away in a note within Appendix A.2.3 of 3921bis.
Sometime today or tomorrow I'll propose a paragraph or two for inclusion
as a new subsection of Section 3 ("Managing Presence Subscriptions") so
that server developers don't need to make so many guesses about how to
implement this feature. This text can then be reviewed during the second
WGLC.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug 11 09:56:54 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4B0C33A6986 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 09:56:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.699
X-Spam-Level: 
X-Spam-Status: No, score=-102.699 tagged_above=-999 required=5 tests=[AWL=-0.100, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kp3tU3otpx3M for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 09:56:53 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 3DFBD3A6968 for <xmpp@ietf.org>; Wed, 11 Aug 2010 09:56:53 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 7FCA440074 for <xmpp@ietf.org>; Wed, 11 Aug 2010 10:58:36 -0600 (MDT)
Message-ID: <4C62D678.2070301@stpeter.im>
Date: Wed, 11 Aug 2010 10:57:28 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] 3921bis: ThreadID security consideration
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 16:56:54 -0000

Over at the XSF, folks are reviewing XEP-0201 ("Best Practices for
Message Threads") so that it can be stabilized before 3921bis moves
forward. As part of that review, we concluded that a security
consideration currently in XEP-0201 really belongs in 3921bis, to wit:

   An application that generates a ThreadID MUST ensure that it
   does not reveal identifying information about the entity (e.g.,
   the MAC address of the device on which the XMPP application is
   running).

If there are no objections, I'll find a place for that text in 3921bis
(probably in Section 5.2.5).

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug 11 10:00:39 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F06C13A6981 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 10:00:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.694
X-Spam-Level: 
X-Spam-Status: No, score=-102.694 tagged_above=-999 required=5 tests=[AWL=-0.095, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fsl9RJM4XRNw for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 10:00:39 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 308453A6A86 for <xmpp@ietf.org>; Wed, 11 Aug 2010 10:00:29 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 800A140074 for <xmpp@ietf.org>; Wed, 11 Aug 2010 11:02:12 -0600 (MDT)
Message-ID: <4C62D750.5090602@stpeter.im>
Date: Wed, 11 Aug 2010 11:01:04 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] 3921bis planning
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 17:00:40 -0000

I've just posted to the list about two small issues that came up during
review of 3921bis and related specifications. My plan is to address
those issues today or tomorrow, and also closely check over the diff
between -09 and -10:

http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-10.txt

Then I shall submit -11, which I expect will require a second WGLC
(although I leave that up to the chairs).

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From ben@nostrum.com  Wed Aug 11 12:32:00 2010
Return-Path: <ben@nostrum.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 02DCB3A69D0 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 12:32:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.6
X-Spam-Level: 
X-Spam-Status: No, score=-102.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SAWlcYZ3xwmW for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 12:31:59 -0700 (PDT)
Received: from nostrum.com (nostrum-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:267::2]) by core3.amsl.com (Postfix) with ESMTP id B7B233A6998 for <xmpp@ietf.org>; Wed, 11 Aug 2010 12:31:58 -0700 (PDT)
Received: from dn3-174.estacado.net (vicuna-alt.estacado.net [75.53.54.121]) (authenticated bits=0) by nostrum.com (8.14.3/8.14.3) with ESMTP id o7BJWXoc056180 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 11 Aug 2010 14:32:34 -0500 (CDT) (envelope-from ben@nostrum.com)
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset=us-ascii
From: Ben Campbell <ben@nostrum.com>
In-Reply-To: <4C62D750.5090602@stpeter.im>
Date: Wed, 11 Aug 2010 14:32:33 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <26D756CE-7840-4486-81B3-BFCAC48E8A2F@nostrum.com>
References: <4C62D750.5090602@stpeter.im>
To: Peter Saint-Andre <stpeter@stpeter.im>
X-Mailer: Apple Mail (2.1081)
Received-SPF: pass (nostrum.com: 75.53.54.121 is authenticated by a trusted mechanism)
Cc: XMPP <xmpp@ietf.org>
Subject: Re: [xmpp] 3921bis planning
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 19:32:00 -0000

On Aug 11, 2010, at 12:01 PM, Peter Saint-Andre wrote:

> I've just posted to the list about two small issues that came up =
during
> review of 3921bis and related specifications. My plan is to address
> those issues today or tomorrow, and also closely check over the diff
> between -09 and -10:
>=20
> http://tools.ietf.org/rfcdiff?url2=3Ddraft-ietf-xmpp-3921bis-10.txt
>=20
> Then I shall submit -11, which I expect will require a second WGLC
> (although I leave that up to the chairs).
>=20

I suspect it highly unlikely that the chairs will decide we don't need =
another WGLC when the author things we do need one :-)


From stpeter@stpeter.im  Wed Aug 11 12:33:41 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E46C93A6A8F for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 12:33:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.68
X-Spam-Level: 
X-Spam-Status: No, score=-102.68 tagged_above=-999 required=5 tests=[AWL=-0.081, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6dXsWl7UiC3u for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 12:33:40 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id C75D03A69D0 for <xmpp@ietf.org>; Wed, 11 Aug 2010 12:33:40 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 4285E40074 for <xmpp@ietf.org>; Wed, 11 Aug 2010 13:35:24 -0600 (MDT)
Message-ID: <4C62FB34.4000500@stpeter.im>
Date: Wed, 11 Aug 2010 13:34:12 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4C62D559.7090203@stpeter.im>
In-Reply-To: <4C62D559.7090203@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 19:33:42 -0000

On 8/11/10 10:52 AM, Peter Saint-Andre wrote:
> During an offlist discussion today, I realized that the concept of
> subscription pre-approvals is underspecified. Currently the only text
> about it is hidden away in a note within Appendix A.2.3 of 3921bis.
> Sometime today or tomorrow I'll propose a paragraph or two for inclusion
> as a new subsection of Section 3 ("Managing Presence Subscriptions") so
> that server developers don't need to make so many guesses about how to
> implement this feature. This text can then be reviewed during the second
> WGLC.

Here is proposed text. I've also added links to this section from a few
places in the specification (Section 3.1.3 on "Server Processing of
Inbound Subscription Request" and Appendix A.2.3).

###

3.4.  Pre-Approving a Subscription Request

   If a user has not received a subscription request from a contact, the
   user can "pre-approve" such a request so that it will be
   automatically approved by the user's server.

3.4.1.  Client Generation of Subscription Pre-Approval

   A client generates a subscription pre-approval by sending a presence
   stanza of type "subscribed" to the contact.

   UC: <presence id='pg81vx64'
                 to='juliet@example.com'
                 type='subscribed'/>

3.4.2.  Server Processing of Subscription Pre-Approval

   Upon receiving the presence stanza of type "subscribed", the user's
   server MUST proceed as follows.

   1.  If the contact is already in the user's roster with a state of
       "Both", "From", or "From + Pending Out", the user's server MUST
       silently ignore the stanza.

   2.  If the contact is already in the user's roster with a state of
       "To + Pending In", "None + Pending In", or "None + Pending
       Out+In", the user's server MUST handle the stanza as a
       subscription approval by updating the existing roster item to a
       state of "Both", "From", or "From + Pending Out" (respectively),
       pushing the modified roster item to all of the user's interested
       resources, and routing the presence stanza of type "subscribed"
       to the contact.

   3.  If the contact is in the user's roster with a state of "To",
       "None", or "None + Pending Out", the user's server MUST note the
       subscription pre-approval by setting the 'ask' flag to a value of
       "subscribed" and then push the modified roster item to all of the
       user's interested resources.  However, the user's server MUST NOT
       route the presence stanza of type "subscribed" to the contact.

   4.  If the contact is not already in the user's roster, the user's
       server MUST create a roster item for the contact with a state of
       "None" and set the 'ask' flag to a value of "subscribed", then
       push the roster item to all of the user's interested resources.
       However, the user's server MUST NOT route the presence stanza of
       type "subscribed" to the contact.

   When the 'ask' flag is set to "subscribed", the user's server MUST
   NOT deliver a presence stanza of type "subscribe" from the contact to
   the user, but instead MUST automatically respond to such a stanza on
   behalf of the user by returning a presence stanza of type
   "subscribed" from the bare JID of the user to the bare JID of the
   contact.

      Implementation Note: Support for this functionality is OPTIONAL on
      the part of an XMPP presence server.

###



From k.i.smith@gmail.com  Wed Aug 11 12:56:47 2010
Return-Path: <k.i.smith@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1B0913A68CF for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 12:56:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XH4PcWQrRibY for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 12:56:46 -0700 (PDT)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id 3DBD53A67D1 for <xmpp@ietf.org>; Wed, 11 Aug 2010 12:56:46 -0700 (PDT)
Received: by qwc9 with SMTP id 9so542397qwc.31 for <xmpp@ietf.org>; Wed, 11 Aug 2010 12:57:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=XQ1NmbKOzu7HR/FvIzD+8lmqiXY9k1Jk4GsPIDifwAA=; b=FjwJfPAMLj+ft8Li/5/yDp3zkTvMsDUcKy0JS9o0t4Qo4QjdoaJBzzF95HT4/HfE3I HF7CcvsFx7WVEcfuaCfWswjpJwBLEIZ5xYjBcREJB8m1dR2IfT1GrbclmgZQR0Nvaec0 Jq2F/MVeIJoztqdb9WhuR5hr77bOBKLkXJjDU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=fF6y6+5Mj7mGoNIHFcKsacez+dst1qaugFZplVUNwv4ni7UFKxeAgWhI9zfUfZtVkq qT1rUmz0jIVDRbzm11HHktE/vpYeorAZyKnLMARzRfTrn3Ae37tBgPH/EflnOoOiskck adTYiLsse6yduJIEcBJnR+MMOMPGY/Z6nmg9w=
MIME-Version: 1.0
Received: by 10.229.175.167 with SMTP id ba39mr9904142qcb.181.1281556642064;  Wed, 11 Aug 2010 12:57:22 -0700 (PDT)
Sender: k.i.smith@gmail.com
Received: by 10.229.48.21 with HTTP; Wed, 11 Aug 2010 12:57:21 -0700 (PDT)
In-Reply-To: <26D756CE-7840-4486-81B3-BFCAC48E8A2F@nostrum.com>
References: <4C62D750.5090602@stpeter.im> <26D756CE-7840-4486-81B3-BFCAC48E8A2F@nostrum.com>
Date: Wed, 11 Aug 2010 20:57:21 +0100
X-Google-Sender-Auth: wJj9uYnEOZX-PuJsxLMqAAdz3bw
Message-ID: <AANLkTi=BmDrTps39LQKwQc8HPkkF6sD+DNzAGO2ekJsg@mail.gmail.com>
From: Kevin Smith <kevin@kismith.co.uk>
To: Ben Campbell <ben@nostrum.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: XMPP <xmpp@ietf.org>
Subject: Re: [xmpp] 3921bis planning
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: kevin@kismith.co.uk
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 19:56:47 -0000

On Wed, Aug 11, 2010 at 8:32 PM, Ben Campbell <ben@nostrum.com> wrote:
> On Aug 11, 2010, at 12:01 PM, Peter Saint-Andre wrote:
>
>> I've just posted to the list about two small issues that came up during
>> review of 3921bis and related specifications. My plan is to address
>> those issues today or tomorrow, and also closely check over the diff
>> between -09 and -10:
>>
>> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-10.txt
>>
>> Then I shall submit -11, which I expect will require a second WGLC
>> (although I leave that up to the chairs).
>>
>
> I suspect it highly unlikely that the chairs will decide we don't need another WGLC when the author things we do need one :-)

I suspect that the author just wants to share the pain...
:)

/K

From stpeter@stpeter.im  Wed Aug 11 13:13:13 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 292463A67D1 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 13:13:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.702
X-Spam-Level: 
X-Spam-Status: No, score=-102.702 tagged_above=-999 required=5 tests=[AWL=-0.103, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BhquRxGOc15i for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 13:13:11 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id CD16128C0F6 for <xmpp@ietf.org>; Wed, 11 Aug 2010 13:13:10 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 73C7A40074; Wed, 11 Aug 2010 14:14:53 -0600 (MDT)
Message-ID: <4C630477.90901@stpeter.im>
Date: Wed, 11 Aug 2010 14:13:43 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: kevin@kismith.co.uk
References: <4C62D750.5090602@stpeter.im>	<26D756CE-7840-4486-81B3-BFCAC48E8A2F@nostrum.com> <AANLkTi=BmDrTps39LQKwQc8HPkkF6sD+DNzAGO2ekJsg@mail.gmail.com>
In-Reply-To: <AANLkTi=BmDrTps39LQKwQc8HPkkF6sD+DNzAGO2ekJsg@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: XMPP <xmpp@ietf.org>
Subject: Re: [xmpp] 3921bis planning
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 20:13:13 -0000

On 8/11/10 1:57 PM, Kevin Smith wrote:

> I suspect that the author just wants to share the pain... :)

s/pain/fun/

:P



From florob@babelmonkeys.de  Wed Aug 11 13:54:58 2010
Return-Path: <florob@babelmonkeys.de>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 815F33A68B1 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 13:54:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L8gCXKtBIeaV for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 13:54:57 -0700 (PDT)
Received: from babelmonkeys.de (v64231.topnetworks.de [82.197.159.233]) by core3.amsl.com (Postfix) with ESMTP id 8B62D3A67D1 for <xmpp@ietf.org>; Wed, 11 Aug 2010 13:54:57 -0700 (PDT)
Received: from xdsl-78-34-102-234.netcologne.de ([78.34.102.234] helo=[192.168.234.167]) by v64231 with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <florob@babelmonkeys.de>) id 1OjIKi-0004rH-Td for xmpp@ietf.org; Wed, 11 Aug 2010 22:55:32 +0200
Message-ID: <4C630E7E.6040701@babelmonkeys.de>
Date: Wed, 11 Aug 2010 22:56:30 +0200
From: Florian Zeitz <florob@babelmonkeys.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Lanikai/3.1.2
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im> <4C61B93C.1030702@stpeter.im>
In-Reply-To: <4C61B93C.1030702@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 20:54:58 -0000

On 10.08.2010 22:40, Peter Saint-Andre wrote:
> The diffs are here:
> 
> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3920bis-12.txt
> 
> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-10.txt
> 
> I was working on several tasks at once, so sanity checks would be
> appreciated. :)
> 
> /psa
>
s/1 NEGATIVE RESOURCE/1+ NEGATIVE RESOURCES/ in 3921bis is the only
thing I could spot when I had a quick look (and that was in there before).
However you have replaced some of the "When the to attribute
contains"-type of things with "In this case", which I occasionally found
more confusing than helpful. Most notably in Section 8.3.

Looking good otherwise ;)

--
Florian Zeitz

From stpeter@stpeter.im  Wed Aug 11 14:13:28 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5FF6A3A6879 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:13:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.699
X-Spam-Level: 
X-Spam-Status: No, score=-102.699 tagged_above=-999 required=5 tests=[AWL=-0.100, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BX9ke4rMeyFA for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:13:26 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 985BA3A6872 for <xmpp@ietf.org>; Wed, 11 Aug 2010 14:13:26 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id A8C6440074 for <xmpp@ietf.org>; Wed, 11 Aug 2010 15:15:10 -0600 (MDT)
Message-ID: <4C631299.1020002@stpeter.im>
Date: Wed, 11 Aug 2010 15:14:01 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im>	<4C61B93C.1030702@stpeter.im> <4C630E7E.6040701@babelmonkeys.de>
In-Reply-To: <4C630E7E.6040701@babelmonkeys.de>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 21:13:28 -0000

On 8/11/10 2:56 PM, Florian Zeitz wrote:
> On 10.08.2010 22:40, Peter Saint-Andre wrote:
>> The diffs are here:
>>
>> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3920bis-12.txt
>>
>> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-10.txt
>>
>> I was working on several tasks at once, so sanity checks would be
>> appreciated. :)
>>
>> /psa
>>
> s/1 NEGATIVE RESOURCE/1+ NEGATIVE RESOURCES/ in 3921bis is the only
> thing I could spot when I had a quick look (and that was in there before).

I think this is even more accurate:

1+ NEGATIVE RESOURCES BUT NOT NON-NEGATIVE RESOURCES

> However you have replaced some of the "When the to attribute
> contains"-type of things with "In this case", which I occasionally found
> more confusing than helpful. Most notably in Section 8.3.

I got tired of typing all that text. But I can add it.

> Looking good otherwise ;)

Thanks for the feedback!

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug 11 14:18:29 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D7D033A6879 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:18:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.696
X-Spam-Level: 
X-Spam-Status: No, score=-102.696 tagged_above=-999 required=5 tests=[AWL=-0.097, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gmxbyWnB6Gpz for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:18:29 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 1E4923A683C for <xmpp@ietf.org>; Wed, 11 Aug 2010 14:18:29 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 5A34040074 for <xmpp@ietf.org>; Wed, 11 Aug 2010 15:20:13 -0600 (MDT)
Message-ID: <4C6313C7.6080301@stpeter.im>
Date: Wed, 11 Aug 2010 15:19:03 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im>	<4C61B93C.1030702@stpeter.im>	<4C630E7E.6040701@babelmonkeys.de> <4C631299.1020002@stpeter.im>
In-Reply-To: <4C631299.1020002@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 21:18:29 -0000

On 8/11/10 3:14 PM, Peter Saint-Andre wrote:
> On 8/11/10 2:56 PM, Florian Zeitz wrote:
>> On 10.08.2010 22:40, Peter Saint-Andre wrote:
>>> The diffs are here:
>>>
>>> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3920bis-12.txt
>>>
>>> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-10.txt
>>>
>>> I was working on several tasks at once, so sanity checks would be
>>> appreciated. :)
>>>
>>> /psa
>>>
>> s/1 NEGATIVE RESOURCE/1+ NEGATIVE RESOURCES/ in 3921bis is the only
>> thing I could spot when I had a quick look (and that was in there before).
> 
> I think this is even more accurate:
> 
> 1+ NEGATIVE RESOURCES BUT NOT NON-NEGATIVE RESOURCES

s/NOT/NO/

From stpeter@stpeter.im  Wed Aug 11 14:51:36 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B82C73A680C for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:51:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.677
X-Spam-Level: 
X-Spam-Status: No, score=-102.677 tagged_above=-999 required=5 tests=[AWL=-0.078, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cutOiTaaoWdg for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:51:35 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id C39FE3A67B7 for <xmpp@ietf.org>; Wed, 11 Aug 2010 14:51:35 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 21FDA40074; Wed, 11 Aug 2010 15:53:19 -0600 (MDT)
Message-ID: <4C631B8A.3030509@stpeter.im>
Date: Wed, 11 Aug 2010 15:52:10 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: tpatnoe <tory.patnoe@webex.com>
References: <C8887286.4DE7%tory.patnoe@webex.com>
In-Reply-To: <C8887286.4DE7%tory.patnoe@webex.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: xmpp@ietf.org
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 21:51:36 -0000

On 8/11/10 3:30 PM, tpatnoe wrote:
> Do we need a note/use case that sending a presence of type 'unsubscribed' is
> how a pre-authorization is removed?

Good catch.

> I would also note that it will result in a roster push of ask='subscribed'
> being removed too.

Right. I think we'll need to add some text about that to Section 3.2 or
to this new section. Let me figure out where that belongs...

/psa

From stpeter@stpeter.im  Wed Aug 11 15:50:58 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 820583A63EC for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 15:50:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.675
X-Spam-Level: 
X-Spam-Status: No, score=-102.675 tagged_above=-999 required=5 tests=[AWL=-0.076, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KjVFQ+tzQMY9 for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 15:50:57 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 8DB933A6845 for <xmpp@ietf.org>; Wed, 11 Aug 2010 15:50:57 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id AE0B440074 for <xmpp@ietf.org>; Wed, 11 Aug 2010 16:52:41 -0600 (MDT)
Message-ID: <4C632972.5030503@stpeter.im>
Date: Wed, 11 Aug 2010 16:51:30 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C8887286.4DE7%tory.patnoe@webex.com> <4C631B8A.3030509@stpeter.im>
In-Reply-To: <4C631B8A.3030509@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 22:50:58 -0000

On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
> On 8/11/10 3:30 PM, tpatnoe wrote:
>> Do we need a note/use case that sending a presence of type 'unsubscribed' is
>> how a pre-authorization is removed?
> 
> Good catch.
> 
>> I would also note that it will result in a roster push of ask='subscribed'
>> being removed too.
> 
> Right. I think we'll need to add some text about that to Section 3.2 or
> to this new section. Let me figure out where that belongs...

Hmm, this is messier than I had hoped...

1. Support for subscription pre-approvals complicates server processing
of outbound "unsubscribed" (Section 3.2, Appendix A.2.4), but that's not
too ugly, just a matter of writing more specific text to cover all of
the cases.

2. The really gnarly issue is that now the 'ask' attribute can have two
values: "subscribe" and "subscribed". What happens if the user has a
pending outbound subscription to the contact *and* the user has
pre-approved a subscription request from the contact? Do we follow the
HTML convention of a space-separated list, as shown below?

   US: <iq id='b89c5r7ib574'
           to='romeo@example.net/foo'
           type='set'>
         <query xmlns='jabber:iq:roster'>
           <item ask='subscribe subscribed'
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
                 jid='juliet@example.com'
                 subscription='none'/>
         </query>
       </iq>

That's possible, but ask='subscribe subscribed' does not match the
datatype currently defined in the schema for the 'jabber:iq:roster'
namespace:

         <xs:attribute name='ask' use='optional'>
           <xs:simpleType>
             <xs:restriction base='xs:NCName'>
               <xs:enumeration value='subscribe'/>
               <xs:enumeration value='subscribed'/>
             </xs:restriction>
           </xs:simpleType>
         </xs:attribute>

Furthermore, it seems that NCName is not a valid datatype for an
attribute in XML!

###

3.3.1 Attribute Types

XML attribute types are of three kinds: a string type, a set of
tokenized types, and enumerated types. The string type may take any
literal string as a value; the tokenized types are more constrained. The
validity constraints noted in the grammar are applied after the
attribute value has been normalized as described in 3.3.3
Attribute-Value Normalization.

[54]   	AttType	       ::=  StringType | TokenizedType | EnumeratedType
[55]   	StringType     ::=  'CDATA'
[56]   	TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
                            'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'

###

And it appears that an EnumeratedType needs to use NMTOKEN (although
there are examples from W3 XML Schema of xs:nonNegativeInteger and
xs:token):

###

Validity constraint: Enumeration

Values of this type MUST match one of the Nmtoken tokens in the declaration.

###

We could define the datatype of the 'ask' attribute to be NMTOKENS
(similar to, say, the 'class' attribute in XHTML) and remove the
enumeration. That might be the least-worst solution to the specification
challenge here.

Well, it's either that or remove pre-approvals entirely. :)

/psa

From Tory.Patnoe@webex.com  Wed Aug 11 14:35:12 2010
Return-Path: <Tory.Patnoe@webex.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AE05F28C0CE for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:35:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.532
X-Spam-Level: 
X-Spam-Status: No, score=-104.532 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, RCVD_NUMERIC_HELO=2.067,  USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mkba+0-j9sGC for <xmpp@core3.amsl.com>; Wed, 11 Aug 2010 14:35:10 -0700 (PDT)
Received: from gw2.webex.com (gw2.webex.com [64.68.122.209]) by core3.amsl.com (Postfix) with SMTP id CE49A3A67E3 for <xmpp@ietf.org>; Wed, 11 Aug 2010 14:35:10 -0700 (PDT)
Received: from SRV-EXSC03.webex.local ([192.168.252.197]) by gw2.webex.com with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 11 Aug 2010 14:35:46 -0700
Received: from 66.114.169.7 ([66.114.169.7]) by SRV-EXSC03.webex.local ([192.168.252.200]) via Exchange Front-End Server mailus.webex.com ([66.114.175.11]) with Microsoft Exchange Server HTTP-DAV ; Wed, 11 Aug 2010 21:30:15 +0000
User-Agent: Microsoft-Entourage/12.25.0.100505
Date: Wed, 11 Aug 2010 15:30:14 -0600
From: tpatnoe <tory.patnoe@webex.com>
To: Peter Saint-Andre <stpeter@stpeter.im>, <xmpp@ietf.org>
Message-ID: <C8887286.4DE7%tory.patnoe@webex.com>
Thread-Topic: [xmpp] 3921bis: subscription pre-approvals
Thread-Index: Acs5nGJ5Ko7UaCenYUSBymVewl74/g==
In-Reply-To: <4C62FB34.4000500@stpeter.im>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 11 Aug 2010 21:35:46.0015 (UTC) FILETIME=[285EEEF0:01CB399D]
X-Mailman-Approved-At: Thu, 12 Aug 2010 12:31:31 -0700
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Aug 2010 21:35:12 -0000

Do we need a note/use case that sending a presence of type 'unsubscribed' is
how a pre-authorization is removed?

I would also note that it will result in a roster push of ask='subscribed'
being removed too.

-- Tory

 


On 8/11/10 1:34 PM, "Peter Saint-Andre" <stpeter@stpeter.im> wrote:

> On 8/11/10 10:52 AM, Peter Saint-Andre wrote:
>> During an offlist discussion today, I realized that the concept of
>> subscription pre-approvals is underspecified. Currently the only text
>> about it is hidden away in a note within Appendix A.2.3 of 3921bis.
>> Sometime today or tomorrow I'll propose a paragraph or two for inclusion
>> as a new subsection of Section 3 ("Managing Presence Subscriptions") so
>> that server developers don't need to make so many guesses about how to
>> implement this feature. This text can then be reviewed during the second
>> WGLC.
> 
> Here is proposed text. I've also added links to this section from a few
> places in the specification (Section 3.1.3 on "Server Processing of
> Inbound Subscription Request" and Appendix A.2.3).
> 
> ###
> 
> 3.4.  Pre-Approving a Subscription Request
> 
>    If a user has not received a subscription request from a contact, the
>    user can "pre-approve" such a request so that it will be
>    automatically approved by the user's server.
> 
> 3.4.1.  Client Generation of Subscription Pre-Approval
> 
>    A client generates a subscription pre-approval by sending a presence
>    stanza of type "subscribed" to the contact.
> 
>    UC: <presence id='pg81vx64'
>                  to='juliet@example.com'
>                  type='subscribed'/>
> 
> 3.4.2.  Server Processing of Subscription Pre-Approval
> 
>    Upon receiving the presence stanza of type "subscribed", the user's
>    server MUST proceed as follows.
> 
>    1.  If the contact is already in the user's roster with a state of
>        "Both", "From", or "From + Pending Out", the user's server MUST
>        silently ignore the stanza.
> 
>    2.  If the contact is already in the user's roster with a state of
>        "To + Pending In", "None + Pending In", or "None + Pending
>        Out+In", the user's server MUST handle the stanza as a
>        subscription approval by updating the existing roster item to a
>        state of "Both", "From", or "From + Pending Out" (respectively),
>        pushing the modified roster item to all of the user's interested
>        resources, and routing the presence stanza of type "subscribed"
>        to the contact.
> 
>    3.  If the contact is in the user's roster with a state of "To",
>        "None", or "None + Pending Out", the user's server MUST note the
>        subscription pre-approval by setting the 'ask' flag to a value of
>        "subscribed" and then push the modified roster item to all of the
>        user's interested resources.  However, the user's server MUST NOT
>        route the presence stanza of type "subscribed" to the contact.
> 
>    4.  If the contact is not already in the user's roster, the user's
>        server MUST create a roster item for the contact with a state of
>        "None" and set the 'ask' flag to a value of "subscribed", then
>        push the roster item to all of the user's interested resources.
>        However, the user's server MUST NOT route the presence stanza of
>        type "subscribed" to the contact.
> 
>    When the 'ask' flag is set to "subscribed", the user's server MUST
>    NOT deliver a presence stanza of type "subscribe" from the contact to
>    the user, but instead MUST automatically respond to such a stanza on
>    behalf of the user by returning a presence stanza of type
>    "subscribed" from the bare JID of the user to the bare JID of the
>    contact.
> 
>       Implementation Note: Support for this functionality is OPTIONAL on
>       the part of an XMPP presence server.
> 
> ###
> 
> 
> _______________________________________________
> xmpp mailing list
> xmpp@ietf.org
> https://www.ietf.org/mailman/listinfo/xmpp


From ben@nostrum.com  Thu Aug 12 12:34:01 2010
Return-Path: <ben@nostrum.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 276053A67C3 for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 12:34:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.6
X-Spam-Level: 
X-Spam-Status: No, score=-102.6 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, SPF_PASS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zh8XfJgDUL+A for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 12:34:00 -0700 (PDT)
Received: from nostrum.com (nostrum-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:267::2]) by core3.amsl.com (Postfix) with ESMTP id E0E653A6858 for <xmpp@ietf.org>; Thu, 12 Aug 2010 12:33:56 -0700 (PDT)
Received: from [10.0.1.9] (adsl-68-94-21-88.dsl.rcsntx.swbell.net [68.94.21.88]) (authenticated bits=0) by nostrum.com (8.14.3/8.14.3) with ESMTP id o7CJN6tr075823 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 12 Aug 2010 14:23:08 -0500 (CDT) (envelope-from ben@nostrum.com)
From: Ben Campbell <ben@nostrum.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Thu, 12 Aug 2010 14:23:02 -0500
Message-Id: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>
To: XMPP Group <xmpp@ietf.org>
Mime-Version: 1.0 (Apple Message framework v1081)
X-Mailer: Apple Mail (2.1081)
Received-SPF: pass (nostrum.com: 68.94.21.88 is authenticated by a trusted mechanism)
Cc: Joe Hildebrand <joe.hildebrand@webex.com>
Subject: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 19:34:01 -0000

Hi,

It looks like we are very close to being ready to request publication of =
draft-ietf-xmpp-3920bis. It looks like all the open issues have been =
closed. But before we publish it, we'd like people to make one last =
"proof reading" pass. There's been a number of changes from the two =
WGLCs, and we want to make sure that these have not introduced =
regression errors, cut and paste problems, etc.

Therefore we're declaring a "work group really-last-this-time =
proofreading call". This informal WGRLTTPC ends on 18 August, at =
close-of-business in whatever time zone Peter happens to be at the time.

Thanks!

Ben.=

From Peter.SaintAndre@webex.com  Thu Aug 12 12:34:18 2010
Return-Path: <Peter.SaintAndre@webex.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5AC183A691A for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 12:34:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.351
X-Spam-Level: 
X-Spam-Status: No, score=-106.351 tagged_above=-999 required=5 tests=[AWL=0.248, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1dxEH-pCB6Y5 for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 12:34:17 -0700 (PDT)
Received: from gw1.webex.com (gw1.webex.com [64.68.122.208]) by core3.amsl.com (Postfix) with SMTP id 4C19D3A67E2 for <xmpp@ietf.org>; Thu, 12 Aug 2010 12:34:17 -0700 (PDT)
Received: from SRV-EXSC03.webex.local ([192.168.252.197]) by gw1.webex.com with Microsoft SMTPSVC(6.0.3790.4675);  Thu, 12 Aug 2010 12:34:54 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Thu, 12 Aug 2010 12:34:27 -0700
Message-ID: <952A4B1F81123B479292D4B5FDC00D8506052CD9@SRV-EXSC03.webex.local>
In-Reply-To: <C8887286.4DE7%tory.patnoe@webex.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [xmpp] 3921bis: subscription pre-approvals
Thread-Index: Acs5nGJ5Ko7UaCenYUSBymVewl74/gAuP24Z
From: "Peter Saint Andre" <Peter.SaintAndre@webex.com>
To: "Tory Patnoe" <Tory.Patnoe@webex.com>, <stpeter@stpeter.im>, <xmpp@ietf.org>
X-OriginalArrivalTime: 12 Aug 2010 19:34:54.0268 (UTC) FILETIME=[7067E7C0:01CB3A55]
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 19:34:18 -0000

Yes, I have text about those matters in the spec now.

----- Original Message -----
From: xmpp-bounces@ietf.org <xmpp-bounces@ietf.org>
To: Peter Saint-Andre <stpeter@stpeter.im>; xmpp@ietf.org =
<xmpp@ietf.org>
Sent: Wed Aug 11 14:30:14 2010
Subject: Re: [xmpp] 3921bis: subscription pre-approvals

Do we need a note/use case that sending a presence of type =
'unsubscribed' is
how a pre-authorization is removed?

I would also note that it will result in a roster push of =
ask=3D'subscribed'
being removed too.

-- Tory

=20


On 8/11/10 1:34 PM, "Peter Saint-Andre" <stpeter@stpeter.im> wrote:

> On 8/11/10 10:52 AM, Peter Saint-Andre wrote:
>> During an offlist discussion today, I realized that the concept of
>> subscription pre-approvals is underspecified. Currently the only text
>> about it is hidden away in a note within Appendix A.2.3 of 3921bis.
>> Sometime today or tomorrow I'll propose a paragraph or two for =
inclusion
>> as a new subsection of Section 3 ("Managing Presence Subscriptions") =
so
>> that server developers don't need to make so many guesses about how =
to
>> implement this feature. This text can then be reviewed during the =
second
>> WGLC.
>=20
> Here is proposed text. I've also added links to this section from a =
few
> places in the specification (Section 3.1.3 on "Server Processing of
> Inbound Subscription Request" and Appendix A.2.3).
>=20
> ###
>=20
> 3.4.  Pre-Approving a Subscription Request
>=20
>    If a user has not received a subscription request from a contact, =
the
>    user can "pre-approve" such a request so that it will be
>    automatically approved by the user's server.
>=20
> 3.4.1.  Client Generation of Subscription Pre-Approval
>=20
>    A client generates a subscription pre-approval by sending a =
presence
>    stanza of type "subscribed" to the contact.
>=20
>    UC: <presence id=3D'pg81vx64'
>                  to=3D'juliet@example.com'
>                  type=3D'subscribed'/>
>=20
> 3.4.2.  Server Processing of Subscription Pre-Approval
>=20
>    Upon receiving the presence stanza of type "subscribed", the user's
>    server MUST proceed as follows.
>=20
>    1.  If the contact is already in the user's roster with a state of
>        "Both", "From", or "From + Pending Out", the user's server MUST
>        silently ignore the stanza.
>=20
>    2.  If the contact is already in the user's roster with a state of
>        "To + Pending In", "None + Pending In", or "None + Pending
>        Out+In", the user's server MUST handle the stanza as a
>        subscription approval by updating the existing roster item to a
>        state of "Both", "From", or "From + Pending Out" =
(respectively),
>        pushing the modified roster item to all of the user's =
interested
>        resources, and routing the presence stanza of type "subscribed"
>        to the contact.
>=20
>    3.  If the contact is in the user's roster with a state of "To",
>        "None", or "None + Pending Out", the user's server MUST note =
the
>        subscription pre-approval by setting the 'ask' flag to a value =
of
>        "subscribed" and then push the modified roster item to all of =
the
>        user's interested resources.  However, the user's server MUST =
NOT
>        route the presence stanza of type "subscribed" to the contact.
>=20
>    4.  If the contact is not already in the user's roster, the user's
>        server MUST create a roster item for the contact with a state =
of
>        "None" and set the 'ask' flag to a value of "subscribed", then
>        push the roster item to all of the user's interested resources.
>        However, the user's server MUST NOT route the presence stanza =
of
>        type "subscribed" to the contact.
>=20
>    When the 'ask' flag is set to "subscribed", the user's server MUST
>    NOT deliver a presence stanza of type "subscribe" from the contact =
to
>    the user, but instead MUST automatically respond to such a stanza =
on
>    behalf of the user by returning a presence stanza of type
>    "subscribed" from the bare JID of the user to the bare JID of the
>    contact.
>=20
>       Implementation Note: Support for this functionality is OPTIONAL =
on
>       the part of an XMPP presence server.
>=20
> ###
>=20
>=20
> _______________________________________________
> xmpp mailing list
> xmpp@ietf.org
> https://www.ietf.org/mailman/listinfo/xmpp

_______________________________________________
xmpp mailing list
xmpp@ietf.org
https://www.ietf.org/mailman/listinfo/xmpp

From stpeter@stpeter.im  Thu Aug 12 13:07:07 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 410E03A68CF for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 13:07:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.639
X-Spam-Level: 
X-Spam-Status: No, score=-102.639 tagged_above=-999 required=5 tests=[AWL=-0.040, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KCxWYdOY9Hcj for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 13:07:06 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 489D93A6840 for <xmpp@ietf.org>; Thu, 12 Aug 2010 13:07:06 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id ED26440074; Thu, 12 Aug 2010 14:08:55 -0600 (MDT)
Message-ID: <4C64548D.7050106@stpeter.im>
Date: Thu, 12 Aug 2010 14:07:41 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Ben Campbell <ben@nostrum.com>
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>
In-Reply-To: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: Joe Hildebrand <joe.hildebrand@webex.com>, XMPP Group <xmpp@ietf.org>
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 20:07:07 -0000

On 8/12/10 1:23 PM, Ben Campbell wrote:
> Hi,
> 
> It looks like we are very close to being ready to request publication
> of draft-ietf-xmpp-3920bis. It looks like all the open issues have
> been closed. But before we publish it, we'd like people to make one
> last "proof reading" pass. There's been a number of changes from the
> two WGLCs, and we want to make sure that these have not introduced
> regression errors, cut and paste problems, etc.
> 
> Therefore we're declaring a "work group really-last-this-time
> proofreading call". This informal WGRLTTPC ends on 18 August, at
> close-of-business in whatever time zone Peter happens to be at the
> time.

Thanks, Ben. Last night I reviewed the diffs since -08 and found a few
typos, so I've fixed those in my working copy. I've also updated the
acknowledgements to at least thank those who provided WGLC feedback.
Once the proofreading call is done I'll submit a revised I-D for review
during IETF Last Call.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Thu Aug 12 13:30:20 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B1BD53A69A9 for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 13:30:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.638
X-Spam-Level: 
X-Spam-Status: No, score=-102.638 tagged_above=-999 required=5 tests=[AWL=-0.039, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lkrI92l9DJgW for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 13:30:19 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 54A193A6962 for <xmpp@ietf.org>; Thu, 12 Aug 2010 13:30:19 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 349E740074; Thu, 12 Aug 2010 14:32:08 -0600 (MDT)
Message-ID: <4C6459FE.6070604@stpeter.im>
Date: Thu, 12 Aug 2010 14:30:54 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Peter Saint Andre <Peter.SaintAndre@webex.com>
References: <952A4B1F81123B479292D4B5FDC00D8506052CD9@SRV-EXSC03.webex.local>
In-Reply-To: <952A4B1F81123B479292D4B5FDC00D8506052CD9@SRV-EXSC03.webex.local>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: Tory Patnoe <Tory.Patnoe@webex.com>, xmpp@ietf.org
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 20:30:20 -0000

Weird, Tory's note showed up as a new message on my phone, which is why
I answered it twice. Sorry about the noise. :)

On 8/12/10 1:34 PM, Peter Saint Andre wrote:
> Yes, I have text about those matters in the spec now.
> 
> ----- Original Message -----
> From: xmpp-bounces@ietf.org <xmpp-bounces@ietf.org>
> To: Peter Saint-Andre <stpeter@stpeter.im>; xmpp@ietf.org <xmpp@ietf.org>
> Sent: Wed Aug 11 14:30:14 2010
> Subject: Re: [xmpp] 3921bis: subscription pre-approvals
> 
> Do we need a note/use case that sending a presence of type 'unsubscribed' is
> how a pre-authorization is removed?
> 
> I would also note that it will result in a roster push of ask='subscribed'
> being removed too.
> 
> -- Tory
> 
>  
> 
> 
> On 8/11/10 1:34 PM, "Peter Saint-Andre" <stpeter@stpeter.im> wrote:
> 
>> On 8/11/10 10:52 AM, Peter Saint-Andre wrote:
>>> During an offlist discussion today, I realized that the concept of
>>> subscription pre-approvals is underspecified. Currently the only text
>>> about it is hidden away in a note within Appendix A.2.3 of 3921bis.
>>> Sometime today or tomorrow I'll propose a paragraph or two for inclusion
>>> as a new subsection of Section 3 ("Managing Presence Subscriptions") so
>>> that server developers don't need to make so many guesses about how to
>>> implement this feature. This text can then be reviewed during the second
>>> WGLC.
>>
>> Here is proposed text. I've also added links to this section from a few
>> places in the specification (Section 3.1.3 on "Server Processing of
>> Inbound Subscription Request" and Appendix A.2.3).
>>
>> ###
>>
>> 3.4.  Pre-Approving a Subscription Request
>>
>>    If a user has not received a subscription request from a contact, the
>>    user can "pre-approve" such a request so that it will be
>>    automatically approved by the user's server.
>>
>> 3.4.1.  Client Generation of Subscription Pre-Approval
>>
>>    A client generates a subscription pre-approval by sending a presence
>>    stanza of type "subscribed" to the contact.
>>
>>    UC: <presence id='pg81vx64'
>>                  to='juliet@example.com'
>>                  type='subscribed'/>
>>
>> 3.4.2.  Server Processing of Subscription Pre-Approval
>>
>>    Upon receiving the presence stanza of type "subscribed", the user's
>>    server MUST proceed as follows.
>>
>>    1.  If the contact is already in the user's roster with a state of
>>        "Both", "From", or "From + Pending Out", the user's server MUST
>>        silently ignore the stanza.
>>
>>    2.  If the contact is already in the user's roster with a state of
>>        "To + Pending In", "None + Pending In", or "None + Pending
>>        Out+In", the user's server MUST handle the stanza as a
>>        subscription approval by updating the existing roster item to a
>>        state of "Both", "From", or "From + Pending Out" (respectively),
>>        pushing the modified roster item to all of the user's interested
>>        resources, and routing the presence stanza of type "subscribed"
>>        to the contact.
>>
>>    3.  If the contact is in the user's roster with a state of "To",
>>        "None", or "None + Pending Out", the user's server MUST note the
>>        subscription pre-approval by setting the 'ask' flag to a value of
>>        "subscribed" and then push the modified roster item to all of the
>>        user's interested resources.  However, the user's server MUST NOT
>>        route the presence stanza of type "subscribed" to the contact.
>>
>>    4.  If the contact is not already in the user's roster, the user's
>>        server MUST create a roster item for the contact with a state of
>>        "None" and set the 'ask' flag to a value of "subscribed", then
>>        push the roster item to all of the user's interested resources.
>>        However, the user's server MUST NOT route the presence stanza of
>>        type "subscribed" to the contact.
>>
>>    When the 'ask' flag is set to "subscribed", the user's server MUST
>>    NOT deliver a presence stanza of type "subscribe" from the contact to
>>    the user, but instead MUST automatically respond to such a stanza on
>>    behalf of the user by returning a presence stanza of type
>>    "subscribed" from the bare JID of the user to the bare JID of the
>>    contact.
>>
>>       Implementation Note: Support for this functionality is OPTIONAL on
>>       the part of an XMPP presence server.
>>
>> ###
>>
>>

From stpeter@stpeter.im  Thu Aug 12 15:08:55 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9D9603A6A13 for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 15:08:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.636
X-Spam-Level: 
X-Spam-Status: No, score=-102.636 tagged_above=-999 required=5 tests=[AWL=-0.037, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ja8FwmX1buys for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 15:08:54 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 6B69C3A69CC for <xmpp@ietf.org>; Thu, 12 Aug 2010 15:08:54 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 0999240074 for <xmpp@ietf.org>; Thu, 12 Aug 2010 16:10:44 -0600 (MDT)
Message-ID: <4C647118.10402@stpeter.im>
Date: Thu, 12 Aug 2010 16:09:28 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C8887286.4DE7%tory.patnoe@webex.com> <4C631B8A.3030509@stpeter.im> <4C632972.5030503@stpeter.im>
In-Reply-To: <4C632972.5030503@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 22:08:55 -0000

On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>> On 8/11/10 3:30 PM, tpatnoe wrote:
>>> Do we need a note/use case that sending a presence of type 'unsubscribed' is
>>> how a pre-authorization is removed?
>>
>> Good catch.
>>
>>> I would also note that it will result in a roster push of ask='subscribed'
>>> being removed too.
>>
>> Right. I think we'll need to add some text about that to Section 3.2 or
>> to this new section. Let me figure out where that belongs...
> 
> Hmm, this is messier than I had hoped...
> 
> 1. Support for subscription pre-approvals complicates server processing
> of outbound "unsubscribed" (Section 3.2, Appendix A.2.4), but that's not
> too ugly, just a matter of writing more specific text to cover all of
> the cases.

Done in my working copy.

> 2. The really gnarly issue is that now the 'ask' attribute can have two
> values: "subscribe" and "subscribed". What happens if the user has a
> pending outbound subscription to the contact *and* the user has
> pre-approved a subscription request from the contact? Do we follow the
> HTML convention of a space-separated list, as shown below?
> 
>    US: <iq id='b89c5r7ib574'
>            to='romeo@example.net/foo'
>            type='set'>
>          <query xmlns='jabber:iq:roster'>
>            <item ask='subscribe subscribed'
>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
>                  jid='juliet@example.com'
>                  subscription='none'/>
>          </query>
>        </iq>
> 
> That's possible, but ask='subscribe subscribed' does not match the
> datatype currently defined in the schema for the 'jabber:iq:roster'
> namespace:
> 
>          <xs:attribute name='ask' use='optional'>
>            <xs:simpleType>
>              <xs:restriction base='xs:NCName'>
>                <xs:enumeration value='subscribe'/>
>                <xs:enumeration value='subscribed'/>
>              </xs:restriction>
>            </xs:simpleType>
>          </xs:attribute>
> 
> Furthermore, it seems that NCName is not a valid datatype for an
> attribute in XML!
> 
> ###
> 
> 3.3.1 Attribute Types
> 
> XML attribute types are of three kinds: a string type, a set of
> tokenized types, and enumerated types. The string type may take any
> literal string as a value; the tokenized types are more constrained. The
> validity constraints noted in the grammar are applied after the
> attribute value has been normalized as described in 3.3.3
> Attribute-Value Normalization.
> 
> [54]   	AttType	       ::=  StringType | TokenizedType | EnumeratedType
> [55]   	StringType     ::=  'CDATA'
> [56]   	TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
>                             'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'
> 
> ###
> 
> And it appears that an EnumeratedType needs to use NMTOKEN (although
> there are examples from W3 XML Schema of xs:nonNegativeInteger and
> xs:token):
> 
> ###
> 
> Validity constraint: Enumeration
> 
> Values of this type MUST match one of the Nmtoken tokens in the declaration.
> 
> ###
> 
> We could define the datatype of the 'ask' attribute to be NMTOKENS
> (similar to, say, the 'class' attribute in XHTML) and remove the
> enumeration. That might be the least-worst solution to the specification
> challenge here.

I've made that change in my working copy.

> Well, it's either that or remove pre-approvals entirely. :)

That's still an option if folks raise concerns on this list.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Thu Aug 12 15:17:15 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8590F3A69CC for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 15:17:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.636
X-Spam-Level: 
X-Spam-Status: No, score=-102.636 tagged_above=-999 required=5 tests=[AWL=-0.037, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Eok7uO4xUAC4 for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 15:17:14 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 8A0AA3A67EC for <xmpp@ietf.org>; Thu, 12 Aug 2010 15:17:14 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 4859C40074 for <xmpp@ietf.org>; Thu, 12 Aug 2010 16:19:05 -0600 (MDT)
Message-ID: <4C64730E.3000409@stpeter.im>
Date: Thu, 12 Aug 2010 16:17:50 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4C62D750.5090602@stpeter.im>
In-Reply-To: <4C62D750.5090602@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis planning
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 22:17:15 -0000

On 8/11/10 11:01 AM, Peter Saint-Andre wrote:
> I've just posted to the list about two small issues that came up during
> review of 3921bis and related specifications. My plan is to address
> those issues today or tomorrow, and also closely check over the diff
> between -09 and -10:
> 
> http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-10.txt
> 
> Then I shall submit -11, which I expect will require a second WGLC
> (although I leave that up to the chairs).

I've made the proposed fixes in my working copy. Because I will be
mostly offline tomorrow, I'll submit -11 now for review by the group.
Naturally, all of the changes are merely proposed and will need to be
reviewed and approved by the WG.

Your humble document editor,

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From root@core3.amsl.com  Thu Aug 12 15:30:15 2010
Return-Path: <root@core3.amsl.com>
X-Original-To: xmpp@ietf.org
Delivered-To: xmpp@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id 2FC5E3A6A43; Thu, 12 Aug 2010 15:30:02 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100812223013.2FC5E3A6A43@core3.amsl.com>
Date: Thu, 12 Aug 2010 15:30:03 -0700 (PDT)
Cc: xmpp@ietf.org
Subject: [xmpp] I-D Action:draft-ietf-xmpp-3921bis-11.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 22:30:15 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.


	Title           : Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
	Author(s)       : P. Saint-Andre
	Filename        : draft-ietf-xmpp-3921bis-11.txt
	Pages           : 118
	Date            : 2010-08-12

This document defines extensions to core features of the Extensible
Messaging and Presence Protocol (XMPP) that provide basic instant
messaging (IM) and presence functionality in conformance with RFC
2779.  This document obsoletes RFC 3921.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3921bis-11.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-ietf-xmpp-3921bis-11.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-08-12152241.I-D@ietf.org>


--NextPart--

From stpeter@stpeter.im  Thu Aug 12 15:54:01 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 50CC13A6A24 for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 15:54:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.635
X-Spam-Level: 
X-Spam-Status: No, score=-102.635 tagged_above=-999 required=5 tests=[AWL=-0.036, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cjWhiAtfYFYN for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 15:53:58 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 251B13A68FC for <xmpp@ietf.org>; Thu, 12 Aug 2010 15:53:58 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id DE9D940074 for <xmpp@ietf.org>; Thu, 12 Aug 2010 16:55:48 -0600 (MDT)
Message-ID: <4C647BAA.5070300@stpeter.im>
Date: Thu, 12 Aug 2010 16:54:34 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <20100812223013.2FC5E3A6A43@core3.amsl.com>
In-Reply-To: <20100812223013.2FC5E3A6A43@core3.amsl.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] I-D Action:draft-ietf-xmpp-3921bis-11.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Aug 2010 22:54:01 -0000

The diff is here:

http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-11.txt

On 8/12/10 4:30 PM, Internet-Drafts@ietf.org wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.
> 
> 
> 	Title           : Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
> 	Author(s)       : P. Saint-Andre
> 	Filename        : draft-ietf-xmpp-3921bis-11.txt
> 	Pages           : 118
> 	Date            : 2010-08-12
> 
> This document defines extensions to core features of the Extensible
> Messaging and Presence Protocol (XMPP) that provide basic instant
> messaging (IM) and presence functionality in conformance with RFC
> 2779.  This document obsoletes RFC 3921.
> 
> A URL for this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3921bis-11.txt

From florob@babelmonkeys.de  Thu Aug 12 18:28:51 2010
Return-Path: <florob@babelmonkeys.de>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2FACF3A6A79 for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 18:28:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x1nCuHM+0NCR for <xmpp@core3.amsl.com>; Thu, 12 Aug 2010 18:28:50 -0700 (PDT)
Received: from babelmonkeys.de (v64231.topnetworks.de [82.197.159.233]) by core3.amsl.com (Postfix) with ESMTP id 1BBF53A696C for <xmpp@ietf.org>; Thu, 12 Aug 2010 18:28:49 -0700 (PDT)
Received: from xdsl-84-44-237-117.netcologne.de ([84.44.237.117] helo=[192.168.234.167]) by v64231 with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <florob@babelmonkeys.de>) id 1Ojj5K-0005M6-Bg for xmpp@ietf.org; Fri, 13 Aug 2010 03:29:26 +0200
Message-ID: <4C64A031.2060300@babelmonkeys.de>
Date: Fri, 13 Aug 2010 03:30:25 +0200
From: Florian Zeitz <florob@babelmonkeys.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Lanikai/3.1.2
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C8887286.4DE7%tory.patnoe@webex.com>	<4C631B8A.3030509@stpeter.im> <4C632972.5030503@stpeter.im> <4C647118.10402@stpeter.im>
In-Reply-To: <4C647118.10402@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Aug 2010 01:28:51 -0000

On 13.08.2010 00:09, Peter Saint-Andre wrote:
> On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
>> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>> 2. The really gnarly issue is that now the 'ask' attribute can have two
>> values: "subscribe" and "subscribed". What happens if the user has a
>> pending outbound subscription to the contact *and* the user has
>> pre-approved a subscription request from the contact? Do we follow the
>> HTML convention of a space-separated list, as shown below?
>>
>>    US: <iq id='b89c5r7ib574'
>>            to='romeo@example.net/foo'
>>            type='set'>
>>          <query xmlns='jabber:iq:roster'>
>>            <item ask='subscribe subscribed'
>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>                  jid='juliet@example.com'
>>                  subscription='none'/>
>>          </query>
>>        </iq>
>>
>> That's possible, but ask='subscribe subscribed' does not match the
>> datatype currently defined in the schema for the 'jabber:iq:roster'
>> namespace:
>>
>>          <xs:attribute name='ask' use='optional'>
>>            <xs:simpleType>
>>              <xs:restriction base='xs:NCName'>
>>                <xs:enumeration value='subscribe'/>
>>                <xs:enumeration value='subscribed'/>
>>              </xs:restriction>
>>            </xs:simpleType>
>>          </xs:attribute>
>>
>> Furthermore, it seems that NCName is not a valid datatype for an
>> attribute in XML!
>>
>> ###
>>
>> 3.3.1 Attribute Types
>>
>> XML attribute types are of three kinds: a string type, a set of
>> tokenized types, and enumerated types. The string type may take any
>> literal string as a value; the tokenized types are more constrained. The
>> validity constraints noted in the grammar are applied after the
>> attribute value has been normalized as described in 3.3.3
>> Attribute-Value Normalization.
>>
>> [54]   	AttType	       ::=  StringType | TokenizedType | EnumeratedType
>> [55]   	StringType     ::=  'CDATA'
>> [56]   	TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
>>                             'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'
>>
>> ###
>>
>> And it appears that an EnumeratedType needs to use NMTOKEN (although
>> there are examples from W3 XML Schema of xs:nonNegativeInteger and
>> xs:token):
>>
>> ###
>>
>> Validity constraint: Enumeration
>>
>> Values of this type MUST match one of the Nmtoken tokens in the declaration.
>>
>> ###
>>
>> We could define the datatype of the 'ask' attribute to be NMTOKENS
>> (similar to, say, the 'class' attribute in XHTML) and remove the
>> enumeration. That might be the least-worst solution to the specification
>> challenge here.
> 
> I've made that change in my working copy.
> 
Maybe I'm just overlooking something, but doesn't this break parsing
that current clients are doing? And if so is this enough of an edge
case/unimportant enough that we are willing to accept that?
I tend to say yes to both, but mostly hope I'm just wrong ;)

--
Florian Zeitz

From k.i.smith@gmail.com  Fri Aug 13 04:16:50 2010
Return-Path: <k.i.smith@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B37463A6880 for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 04:16:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dEHu7ajxiPY3 for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 04:16:48 -0700 (PDT)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id 1A58C3A6358 for <xmpp@ietf.org>; Fri, 13 Aug 2010 04:16:48 -0700 (PDT)
Received: by qwc9 with SMTP id 9so2924687qwc.31 for <xmpp@ietf.org>; Fri, 13 Aug 2010 04:17:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :date:x-google-sender-auth:message-id:subject:from:to:content-type; bh=Cimp9aNlvaXO9f227P7ps576dAzg9TFO7zCc1JX9Yys=; b=U23KwV+I90fn9BD+4lLSMtc70ONV7Gu2JFDKhtuSce6JId+GrT4NNWxr+RAvm2G8Mq Yk4HEZXln7/awLHUypJush5PRHKX8atKhGNq5/JvwHbBlVCubuJ4/d7+8B5g+qIm/u0b bnDX30RR88pLFL8c2vAgekTf7fFq7mw1pDGYE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:date:x-google-sender-auth:message-id :subject:from:to:content-type; b=L0S8M4L6IoWBlBjGL/+mcwvvTlZaA4XSjIerFHlMSsR6G1f/ff9svnSrc/yRYaDmJR d4LVx5Geuoq+TuUkkJrTggs22xm3m+7kwjxzXa1HQA4OtC5MoDDWIsJ3PmmoDpdhG88M 1s3Wd82vFLcjrmP/f/uaolftcmAlV6jE3YqC8=
MIME-Version: 1.0
Received: by 10.229.231.4 with SMTP id jo4mr1158175qcb.22.1281698244899; Fri, 13 Aug 2010 04:17:24 -0700 (PDT)
Sender: k.i.smith@gmail.com
Received: by 10.229.48.21 with HTTP; Fri, 13 Aug 2010 04:17:24 -0700 (PDT)
Date: Fri, 13 Aug 2010 12:17:24 +0100
X-Google-Sender-Auth: Qgk2nC9z9Ii3wMXuGvIFEGW2EoE
Message-ID: <AANLkTikVQBm2NM6f+4=nD+wPFE5MTd=EeGT6SRKK82KZ@mail.gmail.com>
From: Kevin Smith <kevin@kismith.co.uk>
To: XMPP Working Group <xmpp@ietf.org>
Content-Type: text/plain; charset=ISO-8859-1
Subject: [xmpp] Reviewing bis8-bis11 changes
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: kevin@kismith.co.uk
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Aug 2010 11:16:50 -0000

I've been reviewing
http://tools.ietf.org/rfcdiff?url1=draft-ietf-xmpp-3921bis-08.txt&url2=draft-ietf-xmpp-3921bis-11.txt
(hoorah for providing an arbitrary query string and it working as
expected)
Comments below. Sorry for any that should have been picked up on
previous review.

* Changes are largely good, thanks Peter.

* " It is possible for a contact to be in a user's roster both with a	
			"Pending Out" sub-state and with a subscription pre-approval.	
			Because the <item/> element cannot have two instances of the 'ask'	
			attribute (one with a value of "subscribe" and one with a value of	
			"subscribed"), the server SHALL indicate such a state by including a	
			single 'ask' attribute with a value of "subscribe subscribed"."

This surprised me a little (I missed this proposal on the list
somehow). This seems like a backwards-incompatible change, and so
worries me.

* " Implementation Note: If the account has no available resources	
			when the inbound subscribed notification is received, a server MAY	
			keep a record of the notification (ideally the complete presence	
			stanza) and then deliver the notification when the account next	
			has an available resource. This behavior provides more complete	
			signalling to the user regarding the reasons for the roster change	
			that occurred while the user was offline."

This isn't a problem, but doesn't actually do much useful, as the
client that logs in can be a different client from the one that logged
out. I guess the first client could pop up a window saying "Hey, they
approved you". I've talked myself out of complaining about this now,
but am leaving the text here so others can avoid the same confusion.

* Pre-approval: I've not opened the thread on this yet. It worries me
somehow, but I can't quite put my finger on it.

* "When the contact's client receives presence from the user, the	
	proceed as follows:		following behavior is suggested:
...
2. If the user is not in the contact's roster but the contact and
the user are actively exchanging message or IQ stanzas, SHOULD
display the presence information in the user interface for that..."

Yes, I know the lead-up says its suggested and doesn't use
caps-keywords, and so that means that the following SHOULD isn't
really a SHOULD, because it's only a SHOULD if you're following the
suggestions - despite this, can we get rid of the SHOULD? I think
simply deleting the word should scan ok.

* " As an optimization, if the subscription type is "both", then the
   server MAY send subsequent presence notifications to a contact only
   if the contact is online according to the user's server.  That is, if
   the user's server never received a positive indication that the
   contact is online in response to the presence probe it sent to the
   contact or if the last presence stanza it received from the contact
   during the user's presence session was of type "unavailable", the
   user's server MAY opt to not send subsequent presence notifications
   from the user to the contact."

As with the other optimisation (not responding to probes) I'm not
comfortable with having this suggested in the spec, given that we know
there are situations in which this will break. As with the other one,
I suggest we say SHOULD send, leaving us a little wriggle-room, and
then write another spec (either RFC or XEP) that lists lossy
presence-based performance enhancements, and discusses the failure
cases associated with them.

* "If the 'to' address is the bare JID, the receiving server
      SHOULD deliver the message to all of the recipient's available
      resources with non-negative presence priority; if the 'to' address
      is a full JID and there is a matching resource, the server MUST
      deliver the message to that resource; otherwise the server MUST
      either silently ignore the message or return an error (see
      Section 8).
"

I think this leaves wriggle room for the server to say "Well, I SHOULD
deliver to all resources, but I'm going to decide to send it to none
of them", where I think it really means "SHOULD deliver ...all
...resources, but MUST deliver to some of them!"

* "The inclusion of the <thread/> element is OPTIONAL for messages of
   type "normal", "headline", and "groupchat", and RECOMMENDED for
   messages of type "chat"."

Do we really want this? Given that we have relatively little
deployment experience of threads being used sensibly, it seems that
leaving it OPTIONAL makes sense - SHOULD send thread is a significant
departure from the current norm.

* " If the domainpart of the address contained in the 'to' attribute of
   an outbound stanza does not match a configured domain of the server
   itself, then the server MUST attempt to route the stanza to the
   remote domain."

Should this be ", subject to local security policies, "?

* "o  If there is more than one resource with a non-negative presence
      priority then the server SHOULD either (a) deliver the message to
      the "most available" resource or resources (according to the
      server's implementation-specific algorithm, e.g., treating the
      resource or resources with the highest presence priority as "most
      available") or (b) deliver the message to all of the non-negative
      resources."

Given the current trends etc etc, I think there may be merit here in
informally recommending that it's delivered to all available
resources. Much opposition to this and I'll step down, though, it's a
whim.

* " For an IQ stanza of type "get" or "set", if the intended recipient	
			does not share presence with the requesting entity either by means	
			of a presence subscription of type "both" or "from" or by means of	
			directed presence, then the server SHOULD NOT deliver the IQ	
			stanza but instead SHOULD return a <service-unavailable/> stanza	
			error to the requesting entity. This policy helps to prevent	
			presence leaks (see Section 11).
		"

Is this new? I think I may have missed this.

* "	If no available resource or connected resource exactly matches...
    For a message stanza of type "normal", "groupchat", or "headline",	
			the server MUST either (a) silently ignore the stanza or (b) return	
			an error stanza to the sender, which SHOULD be <service-	
			unavailable/>."

For normal too? That seems wrong. "normal" messages MUST NOT be
silently ignored, shirley?



Sorry this was long - I was anticipating having fewer comments, or I
would have used several mails to make it easier to track.

/K

From k.i.smith@gmail.com  Fri Aug 13 05:42:37 2010
Return-Path: <k.i.smith@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 334733A696F for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 05:42:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6dqHhMI8WTuo for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 05:42:36 -0700 (PDT)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id 506573A68CC for <xmpp@ietf.org>; Fri, 13 Aug 2010 05:42:36 -0700 (PDT)
Received: by qwc9 with SMTP id 9so3018661qwc.31 for <xmpp@ietf.org>; Fri, 13 Aug 2010 05:43:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=zoSuYTSR9iKDQRztGBUe9dZMBsNMX7Wz5wzVymNk8T0=; b=unNf2YJZQ4tqyUtHxzzWIURPqq12SG5mHL0WN/byapIq9KsqUt9IvQKrt06nVDlG86 XaZlM1bzH73TdAs9foUSKB84x6sx+p5GizTAvnhQpFGaUGbN3ojyTD8FK/TYr8c+spzA t9MGvqBzOLeSwfr6Ay+0sbjXLOqlHyRUQzrKU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=s/PnHun+K+vJPR6+Z2WVobw4VBeuw+nCCLKxU53Mnf7eVXVs9Vmyq+W2zZ7aSivncO oZo1nv6sTp+7et0zWlUKwCptYp3LqbSoSCEXWFBgmcUzaWH/GoIPGzmoBlzIt+cKjPlr CjlBYgvnbEYteYRqma+HuAkAAAeooo5WKKyfU=
MIME-Version: 1.0
Received: by 10.229.60.200 with SMTP id q8mr1151522qch.209.1281703391889; Fri, 13 Aug 2010 05:43:11 -0700 (PDT)
Sender: k.i.smith@gmail.com
Received: by 10.229.48.21 with HTTP; Fri, 13 Aug 2010 05:43:11 -0700 (PDT)
In-Reply-To: <4C6072E1.1060205@stpeter.im>
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im> <4C6072E1.1060205@stpeter.im>
Date: Fri, 13 Aug 2010 13:43:11 +0100
X-Google-Sender-Auth: OVRoA4OPSnzzeefMxBZLZR0vPWM
Message-ID: <AANLkTim0sV+EGbkO+vXw-Y0mdoHx_GKfeh=GU0ysEgNU@mail.gmail.com>
From: Kevin Smith <kevin@kismith.co.uk>
To: Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Cc: xmpp@ietf.org
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: kevin@kismith.co.uk
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Aug 2010 12:42:37 -0000

On Mon, Aug 9, 2010 at 10:28 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
> The updated versions of 3920bis and 3921bis will have some adjusted and
> harmonized text along the lines discussed below. I will submit them in a
> few minutes.

I've finally got to this thread, sorry. I think going down this route
of Silently Ignore/Error to avoid attacks has unfortunately dug us
into two holes. One hole we know about - the tradeoff between giving
useful information to potential attackers vs. defending against the
attack and we probably can't do anything about. The other hole is that
we're now (if we silently ignore) delivering potentially degraded
service to people who already have all the information they'd have
been able to glean from the attack. I'm therefore suggesting (somewhat
hesitantly) that the way out of hole 2 is to further complicate the
rules - by saying that if the sender has presence, you never silently
ignore, but instead always error.

Comments?

/K

From k.i.smith@gmail.com  Fri Aug 13 05:53:18 2010
Return-Path: <k.i.smith@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 062BA3A6817 for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 05:53:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FebhtGeCTxuk for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 05:53:17 -0700 (PDT)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id DDD433A65A6 for <xmpp@ietf.org>; Fri, 13 Aug 2010 05:53:16 -0700 (PDT)
Received: by qwc9 with SMTP id 9so3030259qwc.31 for <xmpp@ietf.org>; Fri, 13 Aug 2010 05:53:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=2x9D6mShFZistKEfcw8z49SAEW+Y2Ayp9uhPPaUPpbU=; b=Mq9Ez4nX86E1izx6v9qDEukHtk4CYYsofH4MWJBw7oDUy+tA0NdoC1WwdSNjG0aJnT luB7504m8HnJ0uwTDZprXlrsqupRKATPzdYg57sgktp7m0X21Ti2Rz1Vk2rdAUpbJOh4 5R+kfvsZ8X3s2mlFgvUVqGf8eYuDToa4bfPY8=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=rqI/hVrwjRhi+t3jWdy+6N1NcQhKv9XGV0DvL54wfKt+0O3+EOyWbLJcKVcdA1sCUh tWKEHFGpd8cJihg6ser9B/NR7uzEAdCFVHgsTe3PW4O7OhY84dYNEPJxSudywD06/AXL 26sKVjJ4EVisF6ksI0/JPtEwfz4pvsMwXPfmk=
MIME-Version: 1.0
Received: by 10.229.237.129 with SMTP id ko1mr1248452qcb.4.1281704033263; Fri, 13 Aug 2010 05:53:53 -0700 (PDT)
Sender: k.i.smith@gmail.com
Received: by 10.229.48.21 with HTTP; Fri, 13 Aug 2010 05:53:53 -0700 (PDT)
In-Reply-To: <4C64A031.2060300@babelmonkeys.de>
References: <C8887286.4DE7%tory.patnoe@webex.com> <4C631B8A.3030509@stpeter.im> <4C632972.5030503@stpeter.im> <4C647118.10402@stpeter.im> <4C64A031.2060300@babelmonkeys.de>
Date: Fri, 13 Aug 2010 13:53:53 +0100
X-Google-Sender-Auth: MzECbwnPOK87vbD5Abh7-hHxNyM
Message-ID: <AANLkTi=jAMCfURQLvH05ecA-h_vQC1ZZdzABjgwVbnJR@mail.gmail.com>
From: Kevin Smith <kevin@kismith.co.uk>
To: Florian Zeitz <florob@babelmonkeys.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: xmpp@ietf.org
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: kevin@kismith.co.uk
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Aug 2010 12:53:18 -0000

On Fri, Aug 13, 2010 at 2:30 AM, Florian Zeitz <florob@babelmonkeys.de> wro=
te:
> On 13.08.2010 00:09, Peter Saint-Andre wrote:
>> On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
>>> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>>> 2. The really gnarly issue is that now the 'ask' attribute can have two
>>> values: "subscribe" and "subscribed". What happens if the user has a
>>> pending outbound subscription to the contact *and* the user has
>>> pre-approved a subscription request from the contact? Do we follow the
>>> HTML convention of a space-separated list, as shown below?
>>>
>>> =A0 =A0US: <iq id=3D'b89c5r7ib574'
>>> =A0 =A0 =A0 =A0 =A0 =A0to=3D'romeo@example.net/foo'
>>> =A0 =A0 =A0 =A0 =A0 =A0type=3D'set'>
>>> =A0 =A0 =A0 =A0 =A0<query xmlns=3D'jabber:iq:roster'>
>>> =A0 =A0 =A0 =A0 =A0 =A0<item ask=3D'subscribe subscribed'
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0jid=3D'juliet@example.com'
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0subscription=3D'none'/>
>>> =A0 =A0 =A0 =A0 =A0</query>
>>> =A0 =A0 =A0 =A0</iq>
>>>
>>> That's possible, but ask=3D'subscribe subscribed' does not match the
>>> datatype currently defined in the schema for the 'jabber:iq:roster'
>>> namespace:
>>>
>>> =A0 =A0 =A0 =A0 =A0<xs:attribute name=3D'ask' use=3D'optional'>
>>> =A0 =A0 =A0 =A0 =A0 =A0<xs:simpleType>
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0<xs:restriction base=3D'xs:NCName'>
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<xs:enumeration value=3D'subscribe'/>
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0<xs:enumeration value=3D'subscribed'/>
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0</xs:restriction>
>>> =A0 =A0 =A0 =A0 =A0 =A0</xs:simpleType>
>>> =A0 =A0 =A0 =A0 =A0</xs:attribute>
>>>
>>> Furthermore, it seems that NCName is not a valid datatype for an
>>> attribute in XML!
>>>
>>> ###
>>>
>>> 3.3.1 Attribute Types
>>>
>>> XML attribute types are of three kinds: a string type, a set of
>>> tokenized types, and enumerated types. The string type may take any
>>> literal string as a value; the tokenized types are more constrained. Th=
e
>>> validity constraints noted in the grammar are applied after the
>>> attribute value has been normalized as described in 3.3.3
>>> Attribute-Value Normalization.
>>>
>>> [54] =A0 =A0 =A0 =A0 AttType =A0 =A0 =A0 =A0::=3D =A0StringType | Token=
izedType | EnumeratedType
>>> [55] =A0 =A0 =A0 =A0 StringType =A0 =A0 ::=3D =A0'CDATA'
>>> [56] =A0 =A0 =A0 =A0 TokenizedType =A0::=3D =A0'ID' | 'IDREF' | 'IDREFS=
' | 'ENTITY' |
>>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'ENTITIES' | 'N=
MTOKEN' | 'NMTOKENS'
>>>
>>> ###
>>>
>>> And it appears that an EnumeratedType needs to use NMTOKEN (although
>>> there are examples from W3 XML Schema of xs:nonNegativeInteger and
>>> xs:token):
>>>
>>> ###
>>>
>>> Validity constraint: Enumeration
>>>
>>> Values of this type MUST match one of the Nmtoken tokens in the declara=
tion.
>>>
>>> ###
>>>
>>> We could define the datatype of the 'ask' attribute to be NMTOKENS
>>> (similar to, say, the 'class' attribute in XHTML) and remove the
>>> enumeration. That might be the least-worst solution to the specificatio=
n
>>> challenge here.
>>
>> I've made that change in my working copy.
>>
> Maybe I'm just overlooking something, but doesn't this break parsing
> that current clients are doing? And if so is this enough of an edge
> case/unimportant enough that we are willing to accept that?
> I tend to say yes to both, but mostly hope I'm just wrong ;)

Ah, ok, so the point was raised here, thanks Florian for getting there
long before me :)

So, yes, this could be breaking the parsing of clients against 3921,
which I *think* means we need to bump up to XMPP-1.1 (or 2.0 or
whatever) for bis if we make the change in this way. I'm opposed to
increasing the version number at the moment.

/K

From k.i.smith@gmail.com  Fri Aug 13 06:15:09 2010
Return-Path: <k.i.smith@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id ACD963A686C for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 06:15:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RNtlmJ1qNk7W for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 06:15:08 -0700 (PDT)
Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by core3.amsl.com (Postfix) with ESMTP id 5CB513A6403 for <xmpp@ietf.org>; Fri, 13 Aug 2010 06:15:06 -0700 (PDT)
Received: by qwc9 with SMTP id 9so3053448qwc.31 for <xmpp@ietf.org>; Fri, 13 Aug 2010 06:15:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=q8+orE8S8Cq1MZgAfQpyPOCket/0D6fhGCZ8R6Q0ucg=; b=xPVWasHljCu3Kt7qv/ebcPU1xXCCqLY9bJcy9lFWL6EVc2d6uJJoys/w7GRGI0KdMP eNla1xS4YUAZ4uA8hQ9YibDnqwW4fwE6Qa0HdaZoxMhr4g0gz2Nz5KZ7xQlOXA5Np9CI Tv7y2jBu15duYeackLuN8HHSdDt027GTbvuRM=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=u/03EAfnZHXl70YFwWh262+mvSZlLX2VvlLaHjIZY+pO6iZ9P583nKcckSmShDcQND QPAq7AJJOOskJfTy0Ft4flOCU0fwyP5ryDfqEP5RLUMjLb713/632pasqStbjDdZuMa5 8RY+ll75/9k4COYRLCdVD2PbU/L8JiNgqjeO0=
MIME-Version: 1.0
Received: by 10.229.251.16 with SMTP id mq16mr460342qcb.118.1281705343015; Fri, 13 Aug 2010 06:15:43 -0700 (PDT)
Sender: k.i.smith@gmail.com
Received: by 10.229.48.21 with HTTP; Fri, 13 Aug 2010 06:15:42 -0700 (PDT)
In-Reply-To: <AANLkTikUErdC7=CP4TEqWS+HiX51iXK+Ok62P=0imjEV@mail.gmail.com>
References: <AANLkTin5Oo7RI3XYohlgpIOUMlmTq4gY1xXQmd_9mWt0@mail.gmail.com> <AANLkTimjCKBzr2Ex9MtN9_OW-BcLQ6+-5MDK0MS3rpX1@mail.gmail.com> <4C4719D4.6020702@stpeter.im> <AANLkTikrNbUYcs3JCsP6obuMIhSRuL3385g3y2EPDqhm@mail.gmail.com> <4C4AB995.8010506@stpeter.im> <AANLkTikqBZMSXB9od8M4gewKjLi77U05T9qxJ3ipkn9-@mail.gmail.com> <AANLkTikUErdC7=CP4TEqWS+HiX51iXK+Ok62P=0imjEV@mail.gmail.com>
Date: Fri, 13 Aug 2010 14:15:42 +0100
X-Google-Sender-Auth: -tEI7u-9f9pMBSt806wtUksB92I
Message-ID: <AANLkTi=xWdUKV-e0BF5LxCBubu--1oBAOw67x_g-a5aa@mail.gmail.com>
From: Kevin Smith <kevin@kismith.co.uk>
To: Jonas Lindberg <jonasl@google.com>
Content-Type: text/plain; charset=ISO-8859-1
Cc: XMPP Working Group <xmpp@ietf.org>
Subject: Re: [xmpp] 3921bis - not responding to probes.
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: kevin@kismith.co.uk
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Aug 2010 13:15:09 -0000

So, I finally got around to replying to this...

On Wed, Jul 28, 2010 at 6:08 PM, Kevin Smith <kevin@kismith.co.uk> wrote:
> On Mon, Jul 26, 2010 at 9:20 AM, Jonas Lindberg <jonasl@google.com> wrote:
>> On Sat, Jul 24, 2010 at 11:59 AM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>> [Typed while in transit, delivery will be delayed.]
>>>
>>> On 7/21/10 10:33 AM, Kevin Smith wrote:
>>>> On Wed, Jul 21, 2010 at 5:01 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>>>> On 7/21/10 9:05 AM, Jonas Lindberg wrote:
>>>>>> I disagree per previous discussion on this subject. This is an extremely
>>>>>> useful optimization for large scale services.
>>>>>
>>>>> Yes, we had discussion about this some months ago and my sense of the
>>>>> list was SHOULD, not MUST. However, we might want to explain more fully
>>>>> why a service would not respond to probes.
>>>>
>>>> Ok - do we know how much this saves us, compared to the other
>>>> optimisation (not requesting presence when we already know it) that's
>>>> pretty much excluded by doing this? Given that you've already got the
>>>> s2s open by the point that you don't reply, you've already received a
>>>> probe, and already processed the probe, it doesn't seem to me that not
>>>> sending the reply if it's for an offline user gains much. Does anyone
>>>> have any metrics?
>>>
>>> I don't have metrics, but perhaps Jonas does.
>>
>> Responding to presence probes for unavailable users would add an extra
>> ~15% presence traffic in our use case, which is pretty significant.
>> The percentage to be much larger if one also accounts for the "other
>> optimization". (Disclaimer: this number is based on a quick back of
>> the envelope calculation, so I reserve the right to have made
>> errors..)
>>
>> Perhaps more interesting than that number is considering the cost of
>> processing initial presence for users with large contact lists. Take
>> the scenario where a user with a 1000 subscribed friends logs in. Say
>> 20% of these friends are connected and present. With the optimization,
>> servers responding to the probes need to process 200 probes to online
>> friends and send responses. The other 800 probes can be dropped as
>> soon as the receiver is identified as offline. But without the
>> optimization, 400% more probes need to be responded to, which in
>> addition to the cost of sending a response also may mean having to
>> load (or keep) policy and roster data for each of these offline users
>> in memory, to run business logic figuring out what the response should
>> look like (unavailable/unsubscribed) etc.
>
> Thanks. I'm digesting.


Right, so it's clear that it's important for at least Google. Given
this, I changed my stance to that of my suggestion from the meeting,
that bis stays saying you SHOULD reply to probes, and doesn't mention
the optimisation, and that we then write a spec (probably XEP) that
proposes the optimisation, and discusses the implications of it - as
it has knock-on-effects for correctness of state out in the wild.

/K

From k.i.smith@gmail.com  Fri Aug 13 06:34:38 2010
Return-Path: <k.i.smith@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 05D4E3A6781 for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 06:34:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id awiyqdtfh4b5 for <xmpp@core3.amsl.com>; Fri, 13 Aug 2010 06:34:37 -0700 (PDT)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by core3.amsl.com (Postfix) with ESMTP id 13BA93A68CC for <xmpp@ietf.org>; Fri, 13 Aug 2010 06:34:36 -0700 (PDT)
Received: by qyk32 with SMTP id 32so830915qyk.10 for <xmpp@ietf.org>; Fri, 13 Aug 2010 06:35:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=xKiBo5E1z/rp5AtlNjYbnsOlp+ecead4Zy/Bhx8OEWE=; b=vkmmegpHOkgBA1IQM7EQRxCGZKWl5AKpvyu5v94hupeE95WwWSeqq1FvT6TIo9/q7n /KO7rHkOuIUkLIx2dMagzfA5gnM0ibQhJzNy6NBmHPzmSUsPguS96a2nLeUCFnuE/nYl UJTR6GIRXmlJNpbbk849gmV3fhRfG2g5Emu3s=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=YGj0dwyaUZpcdDqRkcF9Nz7lH6XEBXE2XbllDrGQlOp9i+HJibZ2cKWzGC1vpFNHMc szVnpRAWiIEhYqiw3eMUl7RZEYpwJnnbDyMVYhqBOfWMUPs3CYpzHmR/wEtyUkF6dV04 TLdn31WXMUrbGz4ePaQ1b6WY1Nahb1TkuK7S4=
MIME-Version: 1.0
Received: by 10.224.36.207 with SMTP id u15mr984712qad.332.1281706509163; Fri, 13 Aug 2010 06:35:09 -0700 (PDT)
Sender: k.i.smith@gmail.com
Received: by 10.229.48.21 with HTTP; Fri, 13 Aug 2010 06:35:09 -0700 (PDT)
In-Reply-To: <4C4ACE13.9080909@stpeter.im>
References: <AANLkTimge5_bAWnWJl7IfoQ8LJmblcnbwhZoFjQTDqde@mail.gmail.com> <4C4ACE13.9080909@stpeter.im>
Date: Fri, 13 Aug 2010 14:35:09 +0100
X-Google-Sender-Auth: Kpn0MzPKd5Zc3ij9DohfTc1kY4U
Message-ID: <AANLkTimR-mFnjMXkzHLVtM_jMsghFK_AQRF3muYYu9sQ@mail.gmail.com>
From: Kevin Smith <kevin@kismith.co.uk>
To: Peter Saint-Andre <stpeter@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: xmpp@ietf.org
Subject: Re: [xmpp] 3921bis - OPTIONAL threads.
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: kevin@kismith.co.uk
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Aug 2010 13:34:38 -0000

On Sat, Jul 24, 2010 at 12:27 PM, Peter Saint-Andre <stpeter@stpeter.im> wr=
ote:
> On 7/21/10 9:22 AM, Kevin Smith wrote:
>> In 5.2.5, we say that threads are OPTIONAL. Earlier (5.1), we say
>> they're a SHOULD in the context of chats. Should we make reference to
>> 5.1's SHOULD in 5.2.5's OPTIONAL?
>
> I've provisionally modified Section 5.1 to state:
>
> =A0 The inclusion of the <thread/> element is OPTIONAL for messages of
> =A0 type "normal", "headline", and "groupchat", and RECOMMENDED for
> =A0 messages of type "chat".

Yes, sorry, I've been inconsistent.

I think what should happen here is that it's OPTIONAL everywhere, or
that it's optional everywhere with an informal recommendation to do
it. Saying that all chats SHOULD have it is too far removed from the
reality today.

/K

From k.i.smith@gmail.com  Sat Aug 14 04:59:05 2010
Return-Path: <k.i.smith@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 851C83A6934 for <xmpp@core3.amsl.com>; Sat, 14 Aug 2010 04:59:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level: 
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fQfBmW0f3N0M for <xmpp@core3.amsl.com>; Sat, 14 Aug 2010 04:59:04 -0700 (PDT)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by core3.amsl.com (Postfix) with ESMTP id A26FA3A6880 for <xmpp@ietf.org>; Sat, 14 Aug 2010 04:59:04 -0700 (PDT)
Received: by qyk1 with SMTP id 1so759613qyk.10 for <xmpp@ietf.org>; Sat, 14 Aug 2010 04:59:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=v0s14hfijwyBuoyb1cUl/zKvoPlp8/N6Zb43lBXZHdY=; b=eRky2X2lPzEgJrFA8KmTx0uBKdNP9WhFzIfKlkyTHjmvhGY2J/cOQfWXKs8Adrp12m FYFYfeTxBaO42SVYbmO7pj8TdX6HBu7LXZruHw4Ji6hf8ILpKpkLe6R6IWCDnvF2znav 9bYHZulfX7c/xCafp5/PNbxFoeqkDXL4jWrAQ=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=nFu4Y1gF4+5yP7NLveJJ2yHOxaNkTL6mEa7HRYEFVFYVD5jQFs26FQDhXM+1xiq/jR W7c4kRlCOZwthKYA+dbiwFR9goZQmOvPkYiDq/qEtdZPndeS4wqaicDtvnKIPZXYygZC mUoFiyZlSm1VJCBg7Q25j7B/a06ysskhYHBSg=
MIME-Version: 1.0
Received: by 10.229.236.213 with SMTP id kl21mr2084501qcb.120.1281787181005; Sat, 14 Aug 2010 04:59:41 -0700 (PDT)
Sender: k.i.smith@gmail.com
Received: by 10.229.48.21 with HTTP; Sat, 14 Aug 2010 04:59:40 -0700 (PDT)
In-Reply-To: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>
Date: Sat, 14 Aug 2010 12:59:40 +0100
X-Google-Sender-Auth: yVg5UdOp1rC1-VK10NniEHNE1-M
Message-ID: <AANLkTimxARQXu48Z19L6p2RGLKCarA3o5nH+OPHPkxvb@mail.gmail.com>
From: Kevin Smith <kevin@kismith.co.uk>
To: Ben Campbell <ben@nostrum.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Cc: Joe Hildebrand <joe.hildebrand@webex.com>, XMPP Group <xmpp@ietf.org>
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: kevin@kismith.co.uk
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Aug 2010 11:59:05 -0000

On Thu, Aug 12, 2010 at 8:23 PM, Ben Campbell <ben@nostrum.com> wrote:
> It looks like we are very close to being ready to request publication of =
draft-ietf-xmpp-3920bis. It looks like all the open issues have been closed=
. But before we publish it, we'd like people to make one last "proof readin=
g" pass. There's been a number of changes from the two WGLCs, and we want t=
o make sure that these have not introduced regression errors, cut and paste=
 problems, etc.
>
> Therefore we're declaring a "work group really-last-this-time proofreadin=
g call". This informal WGRLTTPC ends on 18 August, at close-of-business in =
whatever time zone Peter happens to be at the time.

Sorry that I've not reviewed the diffs for 3920bis yet. I'm finding it
difficult to find time for both 3921 and 3920 at once - I'll try and
get another pass in before WGRLTTPC ends.

/K

From fippo@mail.symlynx.com  Sat Aug 14 11:57:55 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DD8D53A67F3 for <xmpp@core3.amsl.com>; Sat, 14 Aug 2010 11:57:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Wi+a2eNOD5J for <xmpp@core3.amsl.com>; Sat, 14 Aug 2010 11:57:54 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id 234DF3A67EE for <xmpp@ietf.org>; Sat, 14 Aug 2010 11:57:52 -0700 (PDT)
Received: from [192.168.178.24] (p548BDCED.dip.t-dialin.net [84.139.220.237]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7EIwA3L014042 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Sat, 14 Aug 2010 20:58:12 +0200
Message-ID: <4C66E74B.5040204@mail.symlynx.com>
Date: Sat, 14 Aug 2010 20:58:19 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP Working Group <xmpp@ietf.org>
References: <4C5CBCCD.5020206@stpeter.im>
In-Reply-To: <4C5CBCCD.5020206@stpeter.im>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Fwd: I-D Action:draft-saintandre-tls-server-id-check-09.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Aug 2010 18:57:56 -0000

Peter Saint-Andre wrote:
> FYI. Feedback and reviews are still needed on this spec, which is
> referenced from Section 13.7 of 3920bis. Thanks!


That draft seems ready to go, but would be alot more credible if 
jabber.org would practice what is preached in section 4.6.3.2.

But I am remarking that since 2007 to no avail.

From stpeter@stpeter.im  Mon Aug 16 12:56:42 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 332BF3A6A8B for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 12:56:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.63
X-Spam-Level: 
X-Spam-Status: No, score=-102.63 tagged_above=-999 required=5 tests=[AWL=-0.031, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id r7kqmH8XPTfm for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 12:56:41 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id DAB1C3A6A86 for <xmpp@ietf.org>; Mon, 16 Aug 2010 12:56:40 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 14A2C40074; Mon, 16 Aug 2010 13:58:50 -0600 (MDT)
Message-ID: <4C69981B.9020903@stpeter.im>
Date: Mon, 16 Aug 2010 13:57:15 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: kevin@kismith.co.uk
References: <AANLkTin5Oo7RI3XYohlgpIOUMlmTq4gY1xXQmd_9mWt0@mail.gmail.com>	<AANLkTimjCKBzr2Ex9MtN9_OW-BcLQ6+-5MDK0MS3rpX1@mail.gmail.com>	<4C4719D4.6020702@stpeter.im>	<AANLkTikrNbUYcs3JCsP6obuMIhSRuL3385g3y2EPDqhm@mail.gmail.com>	<4C4AB995.8010506@stpeter.im>	<AANLkTikqBZMSXB9od8M4gewKjLi77U05T9qxJ3ipkn9-@mail.gmail.com>	<AANLkTikUErdC7=CP4TEqWS+HiX51iXK+Ok62P=0imjEV@mail.gmail.com> <AANLkTi=xWdUKV-e0BF5LxCBubu--1oBAOw67x_g-a5aa@mail.gmail.com>
In-Reply-To: <AANLkTi=xWdUKV-e0BF5LxCBubu--1oBAOw67x_g-a5aa@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: XMPP Working Group <xmpp@ietf.org>
Subject: Re: [xmpp] 3921bis - not responding to probes.
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:56:42 -0000

On 8/13/10 7:15 AM, Kevin Smith wrote:
> So, I finally got around to replying to this...
> 
> On Wed, Jul 28, 2010 at 6:08 PM, Kevin Smith <kevin@kismith.co.uk> wrote:
>> On Mon, Jul 26, 2010 at 9:20 AM, Jonas Lindberg <jonasl@google.com> wrote:
>>> On Sat, Jul 24, 2010 at 11:59 AM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>>> [Typed while in transit, delivery will be delayed.]
>>>>
>>>> On 7/21/10 10:33 AM, Kevin Smith wrote:
>>>>> On Wed, Jul 21, 2010 at 5:01 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>>>>> On 7/21/10 9:05 AM, Jonas Lindberg wrote:
>>>>>>> I disagree per previous discussion on this subject. This is an extremely
>>>>>>> useful optimization for large scale services.
>>>>>>
>>>>>> Yes, we had discussion about this some months ago and my sense of the
>>>>>> list was SHOULD, not MUST. However, we might want to explain more fully
>>>>>> why a service would not respond to probes.
>>>>>
>>>>> Ok - do we know how much this saves us, compared to the other
>>>>> optimisation (not requesting presence when we already know it) that's
>>>>> pretty much excluded by doing this? Given that you've already got the
>>>>> s2s open by the point that you don't reply, you've already received a
>>>>> probe, and already processed the probe, it doesn't seem to me that not
>>>>> sending the reply if it's for an offline user gains much. Does anyone
>>>>> have any metrics?
>>>>
>>>> I don't have metrics, but perhaps Jonas does.
>>>
>>> Responding to presence probes for unavailable users would add an extra
>>> ~15% presence traffic in our use case, which is pretty significant.
>>> The percentage to be much larger if one also accounts for the "other
>>> optimization". (Disclaimer: this number is based on a quick back of
>>> the envelope calculation, so I reserve the right to have made
>>> errors..)
>>>
>>> Perhaps more interesting than that number is considering the cost of
>>> processing initial presence for users with large contact lists. Take
>>> the scenario where a user with a 1000 subscribed friends logs in. Say
>>> 20% of these friends are connected and present. With the optimization,
>>> servers responding to the probes need to process 200 probes to online
>>> friends and send responses. The other 800 probes can be dropped as
>>> soon as the receiver is identified as offline. But without the
>>> optimization, 400% more probes need to be responded to, which in
>>> addition to the cost of sending a response also may mean having to
>>> load (or keep) policy and roster data for each of these offline users
>>> in memory, to run business logic figuring out what the response should
>>> look like (unavailable/unsubscribed) etc.
>>
>> Thanks. I'm digesting.
> 
> 
> Right, so it's clear that it's important for at least Google. Given
> this, I changed my stance to that of my suggestion from the meeting,
> that bis stays saying you SHOULD reply to probes, and doesn't mention
> the optimisation, 

I think that's what we have in -11 now, but if we are going to change
MUST to SHOULD then I think we want to do that here, too:

   1.  If the contact account does not exist or the user is in the
       contact's roster with a subscription state other than "From",
       "From + Pending Out", or "Both" (as defined under Appendix A) and
       the contact has not sent directed presence to the user (as
       defined under Section 4.6), then the contact's server MUST return
       a presence stanza of type "unsubscribed" in response to the
       presence probe....

That is, change this:

   MUST return a presence stanza of type "unsubscribed"

to:

   SHOULD return a presence stanza of type "unsubscribed"

> and that we then write a spec (probably XEP) that
> proposes the optimisation, and discusses the implications of it - as
> it has knock-on-effects for correctness of state out in the wild.

Feel free. :)

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug 16 12:59:23 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A30F03A6A9A for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 12:59:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.63
X-Spam-Level: 
X-Spam-Status: No, score=-102.63 tagged_above=-999 required=5 tests=[AWL=-0.031, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H954NCwkfyFP for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 12:59:22 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id D30CF3A6A98 for <xmpp@ietf.org>; Mon, 16 Aug 2010 12:59:22 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 5ADA240074; Mon, 16 Aug 2010 14:01:33 -0600 (MDT)
Message-ID: <4C6998BD.8090500@stpeter.im>
Date: Mon, 16 Aug 2010 13:59:57 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: kevin@kismith.co.uk
References: <AANLkTimge5_bAWnWJl7IfoQ8LJmblcnbwhZoFjQTDqde@mail.gmail.com>	<4C4ACE13.9080909@stpeter.im> <AANLkTimR-mFnjMXkzHLVtM_jMsghFK_AQRF3muYYu9sQ@mail.gmail.com>
In-Reply-To: <AANLkTimR-mFnjMXkzHLVtM_jMsghFK_AQRF3muYYu9sQ@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: xmpp@ietf.org
Subject: Re: [xmpp] 3921bis - OPTIONAL threads.
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 19:59:23 -0000

On 8/13/10 7:35 AM, Kevin Smith wrote:
> On Sat, Jul 24, 2010 at 12:27 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>> On 7/21/10 9:22 AM, Kevin Smith wrote:
>>> In 5.2.5, we say that threads are OPTIONAL. Earlier (5.1), we say
>>> they're a SHOULD in the context of chats. Should we make reference to
>>> 5.1's SHOULD in 5.2.5's OPTIONAL?
>>
>> I've provisionally modified Section 5.1 to state:
>>
>>   The inclusion of the <thread/> element is OPTIONAL for messages of
>>   type "normal", "headline", and "groupchat", and RECOMMENDED for
>>   messages of type "chat".
> 
> Yes, sorry, I've been inconsistent.
> 
> I think what should happen here is that it's OPTIONAL everywhere, or
> that it's optional everywhere with an informal recommendation to do
> it. Saying that all chats SHOULD have it is too far removed from the
> reality today.

You're right. Changed in my working copy.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug 16 13:02:47 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6BC603A6A7A for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 13:02:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.629
X-Spam-Level: 
X-Spam-Status: No, score=-102.629 tagged_above=-999 required=5 tests=[AWL=-0.030, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PRQ8RHkz6EWC for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 13:02:45 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id C91C83A6A49 for <xmpp@ietf.org>; Mon, 16 Aug 2010 13:02:45 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 6A5B640074 for <xmpp@ietf.org>; Mon, 16 Aug 2010 14:04:56 -0600 (MDT)
Message-ID: <4C699988.30504@stpeter.im>
Date: Mon, 16 Aug 2010 14:03:20 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4C5CBCCD.5020206@stpeter.im> <4C66E74B.5040204@mail.symlynx.com>
In-Reply-To: <4C66E74B.5040204@mail.symlynx.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Fwd: I-D	Action:draft-saintandre-tls-server-id-check-09.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 20:02:47 -0000

On 8/14/10 12:58 PM, Philipp Hancke wrote:
> Peter Saint-Andre wrote:
>> FYI. Feedback and reviews are still needed on this spec, which is
>> referenced from Section 13.7 of 3920bis. Thanks!
> 
> 
> That draft seems ready to go, but would be alot more credible if
> jabber.org would practice what is preached in section 4.6.3.2.
> 
> But I am remarking that since 2007 to no avail.

You mean this in draft-saintandre-tls-server-id-check?

   4.6.3.2. Automated Client

   If the client is an automated application that is not directly
   controlled by a natural person, then it SHOULD terminate the
   connection with a bad certificate error and log the error to an
   appropriate audit log.  An automated application MAY provide a
   configuration setting that disables this check, but MUST enable the
   check by default.

I don't see how that applies to a server...

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug 16 13:11:23 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 69C023A6A7A for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 13:11:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.629
X-Spam-Level: 
X-Spam-Status: No, score=-102.629 tagged_above=-999 required=5 tests=[AWL=-0.030, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uPVHRY7ahrpH for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 13:11:21 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id C27FF3A6A81 for <xmpp@ietf.org>; Mon, 16 Aug 2010 13:11:21 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 553DD40074; Mon, 16 Aug 2010 14:13:32 -0600 (MDT)
Message-ID: <4C699B8B.6070200@stpeter.im>
Date: Mon, 16 Aug 2010 14:11:55 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: kevin@kismith.co.uk
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im> <AANLkTim0sV+EGbkO+vXw-Y0mdoHx_GKfeh=GU0ysEgNU@mail.gmail.com>
In-Reply-To: <AANLkTim0sV+EGbkO+vXw-Y0mdoHx_GKfeh=GU0ysEgNU@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: xmpp@ietf.org
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 20:11:23 -0000

On 8/13/10 6:43 AM, Kevin Smith wrote:
> On Mon, Aug 9, 2010 at 10:28 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>> The updated versions of 3920bis and 3921bis will have some adjusted and
>> harmonized text along the lines discussed below. I will submit them in a
>> few minutes.
> 
> I've finally got to this thread, sorry. I think going down this route
> of Silently Ignore/Error to avoid attacks has unfortunately dug us
> into two holes. One hole we know about - the tradeoff between giving
> useful information to potential attackers vs. defending against the
> attack and we probably can't do anything about. 

Do you mean we can't do anything to fend off the attack, or that we dug
this hole so long ago that we can't go back at this late date?

> The other hole is that
> we're now (if we silently ignore) delivering potentially degraded
> service to people who already have all the information they'd have
> been able to glean from the attack. 

Good point.

> I'm therefore suggesting (somewhat
> hesitantly) that the way out of hole 2 is to further complicate the
> rules - by saying that if the sender has presence, you never silently
> ignore, but instead always error.

Put another way: there is no presence leak if I have already authorized
you to see my presence (or have sent you directed presence).

Let me look at the text to see how we can incorporate this approach...

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug 16 14:07:15 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1E2013A6AB4 for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:07:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.629
X-Spam-Level: 
X-Spam-Status: No, score=-102.629 tagged_above=-999 required=5 tests=[AWL=-0.030, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UGqyb6z35vXQ for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:07:13 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id CBCDE3A6AA8 for <xmpp@ietf.org>; Mon, 16 Aug 2010 14:07:13 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 3F54040074 for <xmpp@ietf.org>; Mon, 16 Aug 2010 15:09:24 -0600 (MDT)
Message-ID: <4C69A8A4.9010608@stpeter.im>
Date: Mon, 16 Aug 2010 15:07:48 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im>	<AANLkTim0sV+EGbkO+vXw-Y0mdoHx_GKfeh=GU0ysEgNU@mail.gmail.com> <4C699B8B.6070200@stpeter.im>
In-Reply-To: <4C699B8B.6070200@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 21:07:15 -0000

On 8/16/10 2:11 PM, Peter Saint-Andre wrote:
> On 8/13/10 6:43 AM, Kevin Smith wrote:
>> On Mon, Aug 9, 2010 at 10:28 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>> The updated versions of 3920bis and 3921bis will have some adjusted and
>>> harmonized text along the lines discussed below. I will submit them in a
>>> few minutes.
>>
>> I've finally got to this thread, sorry. I think going down this route
>> of Silently Ignore/Error to avoid attacks has unfortunately dug us
>> into two holes. One hole we know about - the tradeoff between giving
>> useful information to potential attackers vs. defending against the
>> attack and we probably can't do anything about. 
> 
> Do you mean we can't do anything to fend off the attack, or that we dug
> this hole so long ago that we can't go back at this late date?
> 
>> The other hole is that
>> we're now (if we silently ignore) delivering potentially degraded
>> service to people who already have all the information they'd have
>> been able to glean from the attack. 
> 
> Good point.
> 
>> I'm therefore suggesting (somewhat
>> hesitantly) that the way out of hole 2 is to further complicate the
>> rules - by saying that if the sender has presence, you never silently
>> ignore, but instead always error.
> 
> Put another way: there is no presence leak if I have already authorized
> you to see my presence (or have sent you directed presence).
> 
> Let me look at the text to see how we can incorporate this approach...

Here's a counterpoint:

While it's nice to return helpful errors to those who already know (or
legitimately could know) the information that would be leaked to an
attacker, we might also need to look at the broader picture so that the
server's behavior is consistent.  Consider: if an attacker has one
contact at a server, then it could see that the server behaves one way
when it sends a message to that known contact (returning a helpful
error) and another way when it sends a message to an unknown entity
(silently ignoring the message). This is something that an especially
security-conscious deployment might want to factor into its server-wide
policies.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From florob@babelmonkeys.de  Mon Aug 16 14:16:33 2010
Return-Path: <florob@babelmonkeys.de>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0EE593A6AC3 for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:16:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8sZ8U22knVnT for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:16:32 -0700 (PDT)
Received: from babelmonkeys.de (v64231.topnetworks.de [82.197.159.233]) by core3.amsl.com (Postfix) with ESMTP id 17CC73A6ABE for <xmpp@ietf.org>; Mon, 16 Aug 2010 14:16:31 -0700 (PDT)
Received: from xdsl-87-79-175-170.netcologne.de ([87.79.175.170] helo=[192.168.234.167]) by babelmonkeys.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <florob@babelmonkeys.de>) id 1Ol73L-0007tT-6Y for xmpp@ietf.org; Mon, 16 Aug 2010 23:17:07 +0200
Message-ID: <4C69AB13.40101@babelmonkeys.de>
Date: Mon, 16 Aug 2010 23:18:11 +0200
From: Florian Zeitz <florob@babelmonkeys.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Lanikai/3.1.2
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im>	<AANLkTim0sV+EGbkO+vXw-Y0mdoHx_GKfeh=GU0ysEgNU@mail.gmail.com>	<4C699B8B.6070200@stpeter.im> <4C69A8A4.9010608@stpeter.im>
In-Reply-To: <4C69A8A4.9010608@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 21:16:33 -0000

On 16.08.2010 23:07, Peter Saint-Andre wrote:
> On 8/16/10 2:11 PM, Peter Saint-Andre wrote:
>> On 8/13/10 6:43 AM, Kevin Smith wrote:
>>> On Mon, Aug 9, 2010 at 10:28 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>>> The updated versions of 3920bis and 3921bis will have some adjusted and
>>>> harmonized text along the lines discussed below. I will submit them in a
>>>> few minutes.
>>>
>>> I've finally got to this thread, sorry. I think going down this route
>>> of Silently Ignore/Error to avoid attacks has unfortunately dug us
>>> into two holes. One hole we know about - the tradeoff between giving
>>> useful information to potential attackers vs. defending against the
>>> attack and we probably can't do anything about. 
>>
>> Do you mean we can't do anything to fend off the attack, or that we dug
>> this hole so long ago that we can't go back at this late date?
>>
>>> The other hole is that
>>> we're now (if we silently ignore) delivering potentially degraded
>>> service to people who already have all the information they'd have
>>> been able to glean from the attack. 
>>
>> Good point.
>>
>>> I'm therefore suggesting (somewhat
>>> hesitantly) that the way out of hole 2 is to further complicate the
>>> rules - by saying that if the sender has presence, you never silently
>>> ignore, but instead always error.
>>
>> Put another way: there is no presence leak if I have already authorized
>> you to see my presence (or have sent you directed presence).
>>
>> Let me look at the text to see how we can incorporate this approach...
> 
> Here's a counterpoint:
> 
> While it's nice to return helpful errors to those who already know (or
> legitimately could know) the information that would be leaked to an
> attacker, we might also need to look at the broader picture so that the
> server's behavior is consistent.  Consider: if an attacker has one
> contact at a server, then it could see that the server behaves one way
> when it sends a message to that known contact (returning a helpful
> error) and another way when it sends a message to an unknown entity
> (silently ignoring the message). This is something that an especially
> security-conscious deployment might want to factor into its server-wide
> policies.
> 
Question: What information can an attacker derive from that?
AFAICT only that the server acts differently depending on whether he's
subscribed or not. That doesn't tell him if the message sent to someone
he's not subscribed to and he didn't get a reply for was a) delivered b)
stored in offline storage or c) ignored because the user doesn't exist.

--
Florian Zeitz

From stpeter@stpeter.im  Mon Aug 16 14:42:23 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E8EB73A681E for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:42:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.628
X-Spam-Level: 
X-Spam-Status: No, score=-102.628 tagged_above=-999 required=5 tests=[AWL=-0.029, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id icBqCL6Kw+6m for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:42:22 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id BD1B93A6765 for <xmpp@ietf.org>; Mon, 16 Aug 2010 14:42:22 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 7583F40074 for <xmpp@ietf.org>; Mon, 16 Aug 2010 15:44:33 -0600 (MDT)
Message-ID: <4C69B0E1.7040601@stpeter.im>
Date: Mon, 16 Aug 2010 15:42:57 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im>	<AANLkTim0sV+EGbkO+vXw-Y0mdoHx_GKfeh=GU0ysEgNU@mail.gmail.com>	<4C699B8B.6070200@stpeter.im>	<4C69A8A4.9010608@stpeter.im> <4C69AB13.40101@babelmonkeys.de>
In-Reply-To: <4C69AB13.40101@babelmonkeys.de>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 21:42:24 -0000

On 8/16/10 3:18 PM, Florian Zeitz wrote:
> On 16.08.2010 23:07, Peter Saint-Andre wrote:
>> On 8/16/10 2:11 PM, Peter Saint-Andre wrote:
>>> On 8/13/10 6:43 AM, Kevin Smith wrote:
>>>> On Mon, Aug 9, 2010 at 10:28 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>>>> The updated versions of 3920bis and 3921bis will have some adjusted and
>>>>> harmonized text along the lines discussed below. I will submit them in a
>>>>> few minutes.
>>>>
>>>> I've finally got to this thread, sorry. I think going down this route
>>>> of Silently Ignore/Error to avoid attacks has unfortunately dug us
>>>> into two holes. One hole we know about - the tradeoff between giving
>>>> useful information to potential attackers vs. defending against the
>>>> attack and we probably can't do anything about. 
>>>
>>> Do you mean we can't do anything to fend off the attack, or that we dug
>>> this hole so long ago that we can't go back at this late date?
>>>
>>>> The other hole is that
>>>> we're now (if we silently ignore) delivering potentially degraded
>>>> service to people who already have all the information they'd have
>>>> been able to glean from the attack. 
>>>
>>> Good point.
>>>
>>>> I'm therefore suggesting (somewhat
>>>> hesitantly) that the way out of hole 2 is to further complicate the
>>>> rules - by saying that if the sender has presence, you never silently
>>>> ignore, but instead always error.
>>>
>>> Put another way: there is no presence leak if I have already authorized
>>> you to see my presence (or have sent you directed presence).
>>>
>>> Let me look at the text to see how we can incorporate this approach...
>>
>> Here's a counterpoint:
>>
>> While it's nice to return helpful errors to those who already know (or
>> legitimately could know) the information that would be leaked to an
>> attacker, we might also need to look at the broader picture so that the
>> server's behavior is consistent.  Consider: if an attacker has one
>> contact at a server, then it could see that the server behaves one way
>> when it sends a message to that known contact (returning a helpful
>> error) and another way when it sends a message to an unknown entity
>> (silently ignoring the message). This is something that an especially
>> security-conscious deployment might want to factor into its server-wide
>> policies.
>>
> Question: What information can an attacker derive from that?
> AFAICT only that the server acts differently depending on whether he's
> subscribed or not. That doesn't tell him if the message sent to someone
> he's not subscribed to and he didn't get a reply for was a) delivered b)
> stored in offline storage or c) ignored because the user doesn't exist.

Hmm, I think you're right. I was getting overly paranoid...

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug 16 14:47:56 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A10633A6820 for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:47:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.628
X-Spam-Level: 
X-Spam-Status: No, score=-102.628 tagged_above=-999 required=5 tests=[AWL=-0.029, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0ZQ+q5czrS7u for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 14:47:55 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 76BC43A6765 for <xmpp@ietf.org>; Mon, 16 Aug 2010 14:47:55 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 3162940074 for <xmpp@ietf.org>; Mon, 16 Aug 2010 15:50:06 -0600 (MDT)
Message-ID: <4C69B22E.1040901@stpeter.im>
Date: Mon, 16 Aug 2010 15:48:30 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <50473.145.20.139.12.1280593528.squirrel@stpeter.im>	<4C6072E1.1060205@stpeter.im>	<AANLkTim0sV+EGbkO+vXw-Y0mdoHx_GKfeh=GU0ysEgNU@mail.gmail.com> <4C699B8B.6070200@stpeter.im>
In-Reply-To: <4C699B8B.6070200@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] a dissertation on message delivery
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 21:47:56 -0000

On 8/16/10 2:11 PM, Peter Saint-Andre wrote:
> On 8/13/10 6:43 AM, Kevin Smith wrote:
>> On Mon, Aug 9, 2010 at 10:28 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>> The updated versions of 3920bis and 3921bis will have some adjusted and
>>> harmonized text along the lines discussed below. I will submit them in a
>>> few minutes.
>>
>> I've finally got to this thread, sorry. I think going down this route
>> of Silently Ignore/Error to avoid attacks has unfortunately dug us
>> into two holes. One hole we know about - the tradeoff between giving
>> useful information to potential attackers vs. defending against the
>> attack and we probably can't do anything about. 
> 
> Do you mean we can't do anything to fend off the attack, or that we dug
> this hole so long ago that we can't go back at this late date?
> 
>> The other hole is that
>> we're now (if we silently ignore) delivering potentially degraded
>> service to people who already have all the information they'd have
>> been able to glean from the attack. 
> 
> Good point.
> 
>> I'm therefore suggesting (somewhat
>> hesitantly) that the way out of hole 2 is to further complicate the
>> rules - by saying that if the sender has presence, you never silently
>> ignore, but instead always error.
> 
> Put another way: there is no presence leak if I have already authorized
> you to see my presence (or have sent you directed presence).
> 
> Let me look at the text to see how we can incorporate this approach...

I suggest that we make the following adjustments.

First, in 3920bis we add the last paragraph of the following section
(everything else remains the same).

###

10.2.  General Considerations

   At high level, there are three primary considerations at play in
   server processing of XML stanzas, which sometimes are at odds but
   need to be managed in a consistent way:

   1.  It is good to deliver a stanza to the intended recipient if
       possible.

   2.  If a stanza cannot be delivered, it is helpful to inform the
       sender.

   3.  It is bad to facilitate directory harvesting attacks
       (Section 13.11) and presence leaks (Section 13.10.2).

   With regarding to possible delivery-related attacks, the following
   points need to be kept in mind:

   1.  From the perspective of an attacker, there is little if any
       effective difference between the server's (i) delivering the
       stanza or storing it offline for later delivery (see [XMPP-IM])
       and (ii) silently ignoring it (because an error is not returned
       immediately in any of those cases); therefore, in scenarios where
       a server delivers a stanza or places the stanza into offline
       storage for later delivery, it needs to silently ignore the
       stanza if that account does not exist.

   2.  How a server processes stanzas sent to the bare JID
       <localpart@domainpart> has implications for directory harvesting.

   3.  How a server processes stanzas sent to a full JID has
       implications for presence leaks.  However, the attack is less
       direct here (because the attacker needs to try many different
       resources in an attempt to find the one resource that matches) so
       it is of somewhat lesser concern.

   Naturally, presence is not leaked if the entity to which a user's
   server returns an error already knows the user's presence or is
   authorized to do so (e.g., by means of a presence subscription or
   directed presence), and a server does not enable a directory
   harvesting attack if it returns an error to an entity that already
   knows if a user exists (e.g., because the entity is in the user's
   contact list); these matters are discussed more fully in [XMPP-IM].

###

Second, I suggest that we add the following section to 3921bis.

###

8.1.  General Considerations

   [XMPP-CORE] discusses general considerations for stanza delivery, in
   particular the tradeoffs between (i) providing an acceptable level of
   service regarding stanza delivery and (ii) preventing directory
   harvesting attacks and presence leaks.  However, the concept of a
   directory harvesting attack does not apply if a contact is known to
   and trusted by a user (because the contact is in the user's roster as
   described under Section 2).  Similarly, the concept of a presence
   leak does not apply if a contact is authorized to know a user's
   presence (by means of a presence subscription as described under
   Section 3) or if the user has voluntarily sent presence to an entity
   (by means of directed presence as described under Section 4.6).
   Therefore, in cases where the following sections guard against
   directory harvesting attacks and presence leaks by providing an
   alternative of (a) silently ignoring a stanza or (b) returning an
   error, a server SHOULD return an error if the originating entity is
   in the user's roster (when the error would reveal whether the user's
   account exists) or is authorized to receive presence from the user or
   has received directed presence from the user (when the error would
   reveal the presence of a user's resource).

###

/psa


From stpeter@stpeter.im  Mon Aug 16 15:21:46 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id BBDDB3A6860 for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 15:21:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.611
X-Spam-Level: 
X-Spam-Status: No, score=-102.611 tagged_above=-999 required=5 tests=[AWL=-0.012, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Azy9PLKFvbVG for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 15:21:45 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 67B1B3A6849 for <xmpp@ietf.org>; Mon, 16 Aug 2010 15:21:45 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id A821540074; Mon, 16 Aug 2010 16:23:55 -0600 (MDT)
Message-ID: <4C69BA1B.2020602@stpeter.im>
Date: Mon, 16 Aug 2010 16:22:19 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: kevin@kismith.co.uk
References: <C8887286.4DE7%tory.patnoe@webex.com> <4C631B8A.3030509@stpeter.im>	<4C632972.5030503@stpeter.im> <4C647118.10402@stpeter.im>	<4C64A031.2060300@babelmonkeys.de> <AANLkTi=jAMCfURQLvH05ecA-h_vQC1ZZdzABjgwVbnJR@mail.gmail.com>
In-Reply-To: <AANLkTi=jAMCfURQLvH05ecA-h_vQC1ZZdzABjgwVbnJR@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: xmpp@ietf.org
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 22:21:46 -0000

On 8/13/10 6:53 AM, Kevin Smith wrote:
> On Fri, Aug 13, 2010 at 2:30 AM, Florian Zeitz <florob@babelmonkeys.de> wrote:
>> On 13.08.2010 00:09, Peter Saint-Andre wrote:
>>> On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
>>>> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>>>> 2. The really gnarly issue is that now the 'ask' attribute can have two
>>>> values: "subscribe" and "subscribed". What happens if the user has a
>>>> pending outbound subscription to the contact *and* the user has
>>>> pre-approved a subscription request from the contact? Do we follow the
>>>> HTML convention of a space-separated list, as shown below?
>>>>
>>>>    US: <iq id='b89c5r7ib574'
>>>>            to='romeo@example.net/foo'
>>>>            type='set'>
>>>>          <query xmlns='jabber:iq:roster'>
>>>>            <item ask='subscribe subscribed'
>>>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>                  jid='juliet@example.com'
>>>>                  subscription='none'/>
>>>>          </query>
>>>>        </iq>
>>>>
>>>> That's possible, but ask='subscribe subscribed' does not match the
>>>> datatype currently defined in the schema for the 'jabber:iq:roster'
>>>> namespace:
>>>>
>>>>          <xs:attribute name='ask' use='optional'>
>>>>            <xs:simpleType>
>>>>              <xs:restriction base='xs:NCName'>
>>>>                <xs:enumeration value='subscribe'/>
>>>>                <xs:enumeration value='subscribed'/>
>>>>              </xs:restriction>
>>>>            </xs:simpleType>
>>>>          </xs:attribute>
>>>>
>>>> Furthermore, it seems that NCName is not a valid datatype for an
>>>> attribute in XML!
>>>>
>>>> ###
>>>>
>>>> 3.3.1 Attribute Types
>>>>
>>>> XML attribute types are of three kinds: a string type, a set of
>>>> tokenized types, and enumerated types. The string type may take any
>>>> literal string as a value; the tokenized types are more constrained. The
>>>> validity constraints noted in the grammar are applied after the
>>>> attribute value has been normalized as described in 3.3.3
>>>> Attribute-Value Normalization.
>>>>
>>>> [54]         AttType        ::=  StringType | TokenizedType | EnumeratedType
>>>> [55]         StringType     ::=  'CDATA'
>>>> [56]         TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
>>>>                             'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'
>>>>
>>>> ###
>>>>
>>>> And it appears that an EnumeratedType needs to use NMTOKEN (although
>>>> there are examples from W3 XML Schema of xs:nonNegativeInteger and
>>>> xs:token):
>>>>
>>>> ###
>>>>
>>>> Validity constraint: Enumeration
>>>>
>>>> Values of this type MUST match one of the Nmtoken tokens in the declaration.
>>>>
>>>> ###
>>>>
>>>> We could define the datatype of the 'ask' attribute to be NMTOKENS
>>>> (similar to, say, the 'class' attribute in XHTML) and remove the
>>>> enumeration. That might be the least-worst solution to the specification
>>>> challenge here.
>>>
>>> I've made that change in my working copy.
>>>
>> Maybe I'm just overlooking something, but doesn't this break parsing
>> that current clients are doing? And if so is this enough of an edge
>> case/unimportant enough that we are willing to accept that?
>> I tend to say yes to both, but mostly hope I'm just wrong ;)
> 
> Ah, ok, so the point was raised here, thanks Florian for getting there
> long before me :)
> 
> So, yes, this could be breaking the parsing of clients against 3921,
> which I *think* means we need to bump up to XMPP-1.1 (or 2.0 or
> whatever) for bis if we make the change in this way. I'm opposed to
> increasing the version number at the moment.

By "parsing", do you folks mean "validation"?

In 3921, the only defined value was ask='subscribe', as we can see in
Appendix B.5:

         <xs:attribute name='ask' use='optional'>
           <xs:simpleType>
             <xs:restriction base='xs:NCName'>
               <xs:enumeration value='subscribe'/>
             </xs:restriction>
           </xs:simpleType>
         </xs:attribute>

If in 3921bis we define an additional value ask='subscribed', does that
break existing clients? If so, why? It seems to me that a client would
simply ignore a value of 'subscribed' if it did not understand that
value. I ask because we've had 'subscribed' in 3921bis since -00 on June
1, 2009 (in fact since draft-saintandre-rfc3921bis-04 on October 29, 2007):

         <xs:attribute name='ask' use='optional'>
           <xs:simpleType>
             <xs:restriction base='xs:NCName'>
               <xs:enumeration value='subscribe'/>
               <xs:enumeration value='subscribed'/>
             </xs:restriction>
           </xs:simpleType>
         </xs:attribute>

So, now that we've discovered the possibility of needing to communicate
both values simultaneously, we need to change the datatype from NCName
to NMTOKENS and thus allow at least the following three values:

   ask='subscribe' (3921-safe)
   ask='subscribed' (in 3921bis since -00, see above)
   ask='subscribe subscribed' (new)

What apsect of XML parsing breaks now that didn't break in 3921bis-00?
Please choose:

1. Values not defined in 3921 ("subscribed" was OK, it seems, but
"subscribe subscribed" breaks things)

or:

2. Datatype checking (NCName => NMTOKENS)

If you say that #1 breaks parsing then we've had a problem for almost 3
years, but it went undetected. If you say that #2 breaks parsing then
you are essentially claiming that clients are doing datatype validation
and I'd be curious to hear which clients are doing that.

Furthermore, if we claim that a new value for an attribute breaks
backward-compatibility then we can either:

1. Rip out subscription pre-approvals

2. Add a stream feature that enables the server to indicate support

The second approach would be fine with me, and is consistent with how we
handled roster versioning. And just as with roster versioning, I
disagree that this would require a version change from XMPP 1.0 to XMPP
1.1, especially because the change is to an XMPP extension (iq:roster)
and not to core streaming semantics. If we'd had namespace versioning
since 1999 we might change from roster1 to roster2 at this point, but
that's water under the bridge. Handling this via stream features is the
best we can do, I think.

In any case this is not a hill for me to die on -- we added subscription
pre-approvals for feature-parity with other presence technologies (in
particular SIP) and I think it's nice-to-have, but it's not nearly as
important as roster versioning, which saves a lot of bandwidth in common
scenarios.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug 16 15:57:26 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 25B183A681D for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 15:57:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.611
X-Spam-Level: 
X-Spam-Status: No, score=-102.611 tagged_above=-999 required=5 tests=[AWL=-0.012, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gRSJj0H33jbk for <xmpp@core3.amsl.com>; Mon, 16 Aug 2010 15:57:24 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 55A153A67EE for <xmpp@ietf.org>; Mon, 16 Aug 2010 15:57:24 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 3E7B140074 for <xmpp@ietf.org>; Mon, 16 Aug 2010 16:59:35 -0600 (MDT)
Message-ID: <4C69C276.6040100@stpeter.im>
Date: Mon, 16 Aug 2010 16:57:58 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <AANLkTikVQBm2NM6f+4=nD+wPFE5MTd=EeGT6SRKK82KZ@mail.gmail.com>
In-Reply-To: <AANLkTikVQBm2NM6f+4=nD+wPFE5MTd=EeGT6SRKK82KZ@mail.gmail.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Reviewing bis8-bis11 changes
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2010 22:57:26 -0000

On 8/13/10 5:17 AM, Kevin Smith wrote:
> I've been reviewing
> http://tools.ietf.org/rfcdiff?url1=draft-ietf-xmpp-3921bis-08.txt&url2=draft-ietf-xmpp-3921bis-11.txt
> (hoorah for providing an arbitrary query string and it working as
> expected)
> Comments below. Sorry for any that should have been picked up on
> previous review.
> 
> * Changes are largely good, thanks Peter.
> 
> * " It is possible for a contact to be in a user's roster both with a	
> 			"Pending Out" sub-state and with a subscription pre-approval.	
> 			Because the <item/> element cannot have two instances of the 'ask'	
> 			attribute (one with a value of "subscribe" and one with a value of	
> 			"subscribed"), the server SHALL indicate such a state by including a	
> 			single 'ask' attribute with a value of "subscribe subscribed"."
> 
> This surprised me a little (I missed this proposal on the list
> somehow). This seems like a backwards-incompatible change, and so
> worries me.

See other thread (it's all related to subscription pre-approval).

> * " Implementation Note: If the account has no available resources	
> 			when the inbound subscribed notification is received, a server MAY	
> 			keep a record of the notification (ideally the complete presence	
> 			stanza) and then deliver the notification when the account next	
> 			has an available resource. This behavior provides more complete	
> 			signalling to the user regarding the reasons for the roster change	
> 			that occurred while the user was offline."
> 
> This isn't a problem, but doesn't actually do much useful, as the
> client that logs in can be a different client from the one that logged
> out. 

Sure.

> I guess the first client could pop up a window saying "Hey, they
> approved you". 

Correct. The client doesn't need to grovel through the roster and diff
the new version against what it had cached, instead it can depend on the
"subscribed" coming from the server.

> I've talked myself out of complaining about this now,
> but am leaving the text here so others can avoid the same confusion.

It's not all that special, really, but it provides more helpful
information to the client.

> * Pre-approval: I've not opened the thread on this yet. It worries me
> somehow, but I can't quite put my finger on it.

See other thread.

> * "When the contact's client receives presence from the user, the	
> 	proceed as follows:		following behavior is suggested:
> ...
> 2. If the user is not in the contact's roster but the contact and
> the user are actively exchanging message or IQ stanzas, SHOULD
> display the presence information in the user interface for that..."
> 
> Yes, I know the lead-up says its suggested and doesn't use
> caps-keywords, and so that means that the following SHOULD isn't
> really a SHOULD, because it's only a SHOULD if you're following the
> suggestions - despite this, can we get rid of the SHOULD? I think
> simply deleting the word should scan ok.

That "SHOULD" was mistakenly not deleted along with the others. Fixed.

> * " As an optimization, if the subscription type is "both", then the
>    server MAY send subsequent presence notifications to a contact only
>    if the contact is online according to the user's server.  That is, if
>    the user's server never received a positive indication that the
>    contact is online in response to the presence probe it sent to the
>    contact or if the last presence stanza it received from the contact
>    during the user's presence session was of type "unavailable", the
>    user's server MAY opt to not send subsequent presence notifications
>    from the user to the contact."
> 
> As with the other optimisation (not responding to probes) I'm not
> comfortable with having this suggested in the spec, given that we know
> there are situations in which this will break. As with the other one,
> I suggest we say SHOULD send, leaving us a little wriggle-room, and
> then write another spec (either RFC or XEP) that lists lossy
> presence-based performance enhancements, and discusses the failure
> cases associated with them.

I think this is more appropriate as an interoperability note:

      Interoperability Note: If the subscription type is "both", some
      existing server implementations send subsequent presence
      notifications to a contact only if the contact is online according
      to the user's server (that is, if the user's server never received
      a positive indication that the contact is online in response to
      the presence probe it sent to the contact, the user's server does
      not send subsequent presence notifications from the user to the
      contact).  This behavior is perceived to save bandwidth, since
      most presence subscriptions are bidirectional and many contacts
      will not be online at any given time.

I agree that it would be appropriate to define such "optimizations"
(including their measured benefits and likely costs) in separate
specifications.

> * "If the 'to' address is the bare JID, the receiving server
>       SHOULD deliver the message to all of the recipient's available
>       resources with non-negative presence priority; if the 'to' address
>       is a full JID and there is a matching resource, the server MUST
>       deliver the message to that resource; otherwise the server MUST
>       either silently ignore the message or return an error (see
>       Section 8).
> "
> 
> I think this leaves wriggle room for the server to say "Well, I SHOULD
> deliver to all resources, but I'm going to decide to send it to none
> of them", where I think it really means "SHOULD deliver ...all
> ...resources, but MUST deliver to some of them!"

Good catch, I hadn't seen that wiggle room. This is better:

      ... SHOULD deliver the message to all of the recipient's available
      resources with non-negative presence priority and MUST deliver the
      message to at least one of those resources...

> * "The inclusion of the <thread/> element is OPTIONAL for messages of
>    type "normal", "headline", and "groupchat", and RECOMMENDED for
>    messages of type "chat"."
> 
> Do we really want this? Given that we have relatively little
> deployment experience of threads being used sensibly, it seems that
> leaving it OPTIONAL makes sense - SHOULD send thread is a significant
> departure from the current norm.

Fixed per other list thread.

> * " If the domainpart of the address contained in the 'to' attribute of
>    an outbound stanza does not match a configured domain of the server
>    itself, then the server MUST attempt to route the stanza to the
>    remote domain."
> 
> Should this be ", subject to local security policies, "?

Yes, it should. Fixed.

> * "o  If there is more than one resource with a non-negative presence
>       priority then the server SHOULD either (a) deliver the message to
>       the "most available" resource or resources (according to the
>       server's implementation-specific algorithm, e.g., treating the
>       resource or resources with the highest presence priority as "most
>       available") or (b) deliver the message to all of the non-negative
>       resources."
> 
> Given the current trends etc etc, I think there may be merit here in
> informally recommending that it's delivered to all available
> resources. Much opposition to this and I'll step down, though, it's a
> whim.

All available resources, even those with negative presence priority?
That would indeed be novel.

> * " For an IQ stanza of type "get" or "set", if the intended recipient	
> 			does not share presence with the requesting entity either by means	
> 			of a presence subscription of type "both" or "from" or by means of	
> 			directed presence, then the server SHOULD NOT deliver the IQ	
> 			stanza but instead SHOULD return a <service-unavailable/> stanza	
> 			error to the requesting entity. This policy helps to prevent	
> 			presence leaks (see Section 11).
> 		"
> 
> Is this new? I think I may have missed this.

I think you're the one who proposed that. :)

Or perhaps it was Justin Karneges...

> * "	If no available resource or connected resource exactly matches...
>     For a message stanza of type "normal", "groupchat", or "headline",	
> 			the server MUST either (a) silently ignore the stanza or (b) return	
> 			an error stanza to the sender, which SHOULD be <service-	
> 			unavailable/>."
> 
> For normal too? That seems wrong. "normal" messages MUST NOT be
> silently ignored, shirley?

Good question. I think we need some discussion about that one. In part
this gets back to the presence leak threat. What would you suggest for
handling of a normal message sent to a full JID with a non-existent
resource? I don't think it's right to say the server MUST return an
error (presence leak!). We could say that if the sender is authorized to
know the presence of the intended recipient then MUST return an error,
otherwise silently ignore. But some might argue that the right thing is
delivering the message to the most available resource or to all
non-negative resources, i.e., treating it as if it had been addressed to
the bare JID. Perhaps we need to start a separate thread about this
issue so that it doesn't get lost here...

> Sorry this was long - I was anticipating having fewer comments, or I
> would have used several mails to make it easier to track.

No worries, feedback is appreciated in whatever form!

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From florob@babelmonkeys.de  Tue Aug 17 03:03:50 2010
Return-Path: <florob@babelmonkeys.de>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 663CC3A6919 for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 03:03:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hT09k8XZlN2j for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 03:03:49 -0700 (PDT)
Received: from babelmonkeys.de (v64231.topnetworks.de [82.197.159.233]) by core3.amsl.com (Postfix) with ESMTP id 1089D3A6877 for <xmpp@ietf.org>; Tue, 17 Aug 2010 03:03:47 -0700 (PDT)
Received: from xdsl-78-34-99-131.netcologne.de ([78.34.99.131] helo=[192.168.234.167]) by babelmonkeys.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <florob@babelmonkeys.de>) id 1OlJ1q-0006Cg-Di for xmpp@ietf.org; Tue, 17 Aug 2010 12:04:22 +0200
Message-ID: <4C6A5EE4.9030504@babelmonkeys.de>
Date: Tue, 17 Aug 2010 12:05:24 +0200
From: Florian Zeitz <florob@babelmonkeys.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Lanikai/3.1.2
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C8887286.4DE7%tory.patnoe@webex.com> <4C631B8A.3030509@stpeter.im>	<4C632972.5030503@stpeter.im> <4C647118.10402@stpeter.im>	<4C64A031.2060300@babelmonkeys.de> <AANLkTi=jAMCfURQLvH05ecA-h_vQC1ZZdzABjgwVbnJR@mail.gmail.com> <4C69BA1B.2020602@stpeter.im>
In-Reply-To: <4C69BA1B.2020602@stpeter.im>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 10:03:50 -0000

On 17.08.2010 00:22, Peter Saint-Andre wrote:
> On 8/13/10 6:53 AM, Kevin Smith wrote:
>> On Fri, Aug 13, 2010 at 2:30 AM, Florian Zeitz <florob@babelmonkeys.de> wrote:
>>> On 13.08.2010 00:09, Peter Saint-Andre wrote:
>>>> On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
>>>>> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>>>>> 2. The really gnarly issue is that now the 'ask' attribute can have two
>>>>> values: "subscribe" and "subscribed". What happens if the user has a
>>>>> pending outbound subscription to the contact *and* the user has
>>>>> pre-approved a subscription request from the contact? Do we follow the
>>>>> HTML convention of a space-separated list, as shown below?
>>>>>
>>>>>    US: <iq id='b89c5r7ib574'
>>>>>            to='romeo@example.net/foo'
>>>>>            type='set'>
>>>>>          <query xmlns='jabber:iq:roster'>
>>>>>            <item ask='subscribe subscribed'
>>>>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>                  jid='juliet@example.com'
>>>>>                  subscription='none'/>
>>>>>          </query>
>>>>>        </iq>
>>>>>
>>>>> That's possible, but ask='subscribe subscribed' does not match the
>>>>> datatype currently defined in the schema for the 'jabber:iq:roster'
>>>>> namespace:
>>>>>
>>>>>          <xs:attribute name='ask' use='optional'>
>>>>>            <xs:simpleType>
>>>>>              <xs:restriction base='xs:NCName'>
>>>>>                <xs:enumeration value='subscribe'/>
>>>>>                <xs:enumeration value='subscribed'/>
>>>>>              </xs:restriction>
>>>>>            </xs:simpleType>
>>>>>          </xs:attribute>
>>>>>
>>>>> Furthermore, it seems that NCName is not a valid datatype for an
>>>>> attribute in XML!
>>>>>
>>>>> ###
>>>>>
>>>>> 3.3.1 Attribute Types
>>>>>
>>>>> XML attribute types are of three kinds: a string type, a set of
>>>>> tokenized types, and enumerated types. The string type may take any
>>>>> literal string as a value; the tokenized types are more constrained. The
>>>>> validity constraints noted in the grammar are applied after the
>>>>> attribute value has been normalized as described in 3.3.3
>>>>> Attribute-Value Normalization.
>>>>>
>>>>> [54]         AttType        ::=  StringType | TokenizedType | EnumeratedType
>>>>> [55]         StringType     ::=  'CDATA'
>>>>> [56]         TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
>>>>>                             'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'
>>>>>
>>>>> ###
>>>>>
>>>>> And it appears that an EnumeratedType needs to use NMTOKEN (although
>>>>> there are examples from W3 XML Schema of xs:nonNegativeInteger and
>>>>> xs:token):
>>>>>
>>>>> ###
>>>>>
>>>>> Validity constraint: Enumeration
>>>>>
>>>>> Values of this type MUST match one of the Nmtoken tokens in the declaration.
>>>>>
>>>>> ###
>>>>>
>>>>> We could define the datatype of the 'ask' attribute to be NMTOKENS
>>>>> (similar to, say, the 'class' attribute in XHTML) and remove the
>>>>> enumeration. That might be the least-worst solution to the specification
>>>>> challenge here.
>>>>
>>>> I've made that change in my working copy.
>>>>
>>> Maybe I'm just overlooking something, but doesn't this break parsing
>>> that current clients are doing? And if so is this enough of an edge
>>> case/unimportant enough that we are willing to accept that?
>>> I tend to say yes to both, but mostly hope I'm just wrong ;)
>>
>> Ah, ok, so the point was raised here, thanks Florian for getting there
>> long before me :)
>>
>> So, yes, this could be breaking the parsing of clients against 3921,
>> which I *think* means we need to bump up to XMPP-1.1 (or 2.0 or
>> whatever) for bis if we make the change in this way. I'm opposed to
>> increasing the version number at the moment.
> 
> By "parsing", do you folks mean "validation"?
> 
> In 3921, the only defined value was ask='subscribe', as we can see in
> Appendix B.5:
> 
>          <xs:attribute name='ask' use='optional'>
>            <xs:simpleType>
>              <xs:restriction base='xs:NCName'>
>                <xs:enumeration value='subscribe'/>
>              </xs:restriction>
>            </xs:simpleType>
>          </xs:attribute>
> 
> If in 3921bis we define an additional value ask='subscribed', does that
> break existing clients? If so, why? It seems to me that a client would
> simply ignore a value of 'subscribed' if it did not understand that
> value. I ask because we've had 'subscribed' in 3921bis since -00 on June
> 1, 2009 (in fact since draft-saintandre-rfc3921bis-04 on October 29, 2007):
> 
>          <xs:attribute name='ask' use='optional'>
>            <xs:simpleType>
>              <xs:restriction base='xs:NCName'>
>                <xs:enumeration value='subscribe'/>
>                <xs:enumeration value='subscribed'/>
>              </xs:restriction>
>            </xs:simpleType>
>          </xs:attribute>
> 
> So, now that we've discovered the possibility of needing to communicate
> both values simultaneously, we need to change the datatype from NCName
> to NMTOKENS and thus allow at least the following three values:
> 
>    ask='subscribe' (3921-safe)
>    ask='subscribed' (in 3921bis since -00, see above)
>    ask='subscribe subscribed' (new)
> 
> What apsect of XML parsing breaks now that didn't break in 3921bis-00?
> Please choose:
> 
> 1. Values not defined in 3921 ("subscribed" was OK, it seems, but
> "subscribe subscribed" breaks things)
> 
> or:
> 
> 2. Datatype checking (NCName => NMTOKENS)
> 
> If you say that #1 breaks parsing then we've had a problem for almost 3
> years, but it went undetected. If you say that #2 breaks parsing then
> you are essentially claiming that clients are doing datatype validation
> and I'd be curious to hear which clients are doing that.
> 
I think we (at least me) are indeed claiming #1 breaks parsing. And yes
that has probably been a problem with "subscribed" since forever (My
personal excuse is that, as mentioned before, I have never read 3921).
I'd be surprised if datatype validation was happening too.

> Furthermore, if we claim that a new value for an attribute breaks
> backward-compatibility then we can either:
> 
> 1. Rip out subscription pre-approvals
> 
> 2. Add a stream feature that enables the server to indicate support
> 
> The second approach would be fine with me, and is consistent with how we
> handled roster versioning. And just as with roster versioning, I
> disagree that this would require a version change from XMPP 1.0 to XMPP
> 1.1, especially because the change is to an XMPP extension (iq:roster)
> and not to core streaming semantics. If we'd had namespace versioning
> since 1999 we might change from roster1 to roster2 at this point, but
> that's water under the bridge. Handling this via stream features is the
> best we can do, I think.
> 
> In any case this is not a hill for me to die on -- we added subscription
> pre-approvals for feature-parity with other presence technologies (in
> particular SIP) and I think it's nice-to-have, but it's not nearly as
> important as roster versioning, which saves a lot of bandwidth in common
> scenarios.
> 
2nded. I think introducing a stream feature seems like a quite balanced
way to do this.

--
Florian Zeitz

From fippo@mail.symlynx.com  Tue Aug 17 07:39:17 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6A1203A697B for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 07:39:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HHQypOSrwxtV for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 07:39:16 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id 1D79A3A6953 for <xmpp@ietf.org>; Tue, 17 Aug 2010 07:39:15 -0700 (PDT)
Received: from [192.168.178.24] (p548BFD15.dip.t-dialin.net [84.139.253.21]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7HEdOK4018721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Tue, 17 Aug 2010 16:39:25 +0200
Message-ID: <4C6A9F2D.5090400@mail.symlynx.com>
Date: Tue, 17 Aug 2010 16:39:41 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>
In-Reply-To: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 14:39:17 -0000

Ben Campbell wrote:
> It looks like we are very close to being ready to request publication of draft-ietf-xmpp-3920bis. It looks like all the open issues have been closed. But before we publish it, we'd like people to make one last "proof reading" pass. There's been a number of changes from the two WGLCs, and we want to make sure that these have not introduced regression errors, cut and paste problems, etc.
>
> Therefore we're declaring a "work group really-last-this-time proofreading call". This informal WGRLTTPC ends on 18 August, at close-of-business in whatever time zone Peter happens to be at the time.

I simply re-read the whole thing again. Mostly minor issues, but there 
is a serious inconsistency about the inclusion of the authorization 
identity between XEP 0178 section 6.2.8...

XEP 0178 (s2s step 10) says that "Server1 SHOULD include an 
authorization identity [...]"
whereas section 6.2.8. tells us not to include or accept an 
authorization identity on s2s streams:
"MUST NOT attempt to negotiate an authorization identity" and
"MUST NOT accept an authorization identity".
Is there a strong to forbid the inclusion? If so, there needs to be a 
backward compability note, because servers do include one currently.


Other issues (labelled T for typos, E for minor editoral nitpicks):
1.3.
T: most deployed serverS
E: s/older dialback/dialback/

4.2.6.
E: s/older dialback/dialback/

4.6.1.:
"MUST set the value to one of its own hostnames"
A minor clarification: MUST set the value to the domain part of the 
'from' attribute of the stanza that caused the stream to be established 
- not just any of its own hostnames.

4.6.3.:
Is the id security critical for any other purpose than in dialback and 
legacy authentication? If not, it might be good to add a reference to 
that context in the security note.

4.7.4.:
s2s streams SHOULD declare for the 'jabber:server:dialback' namespace in 
the stream header for backward compability reasons. Strange things may 
happen otherwise, at least back in 2006. I have not seen that 
recommendation elsewhere, but we can put it into XEP 220, too.

4.8.1.4.:
E: The order of the bullets seems to be back to front. I would expect 
stream errors first, followed by explaining the difference to stanza 
errors since the section header is about stream errors.

4.8.3.14.:
this is no longer supposed to happen for dialback, so the text about 
that should be a backward compability note.

4.8.3.15.: 
 
This is supposed to be used as (not, see below) described in 13.7.2.3? 
It is also mentioned in the section about (avoiding) TLS renegotiation.

5.3.3.3.:
T: #2 'from' is used without single quotes here.

6.2.4.:
The example inside the parenthesis contains a criticial requirement.
What about changing that to:
If during prior TLS negotiation the initiating entity presented a
certificate that is acceptable to the receiving entity for purposes
of strong identity verification in accordance with local service
policies (e.g. because said certificate is unexpired, unrevoked and is
anchored to a root trusted by the receiving entity)
and the receiving entity expects that the initiating entity will be able 
to authenticate and authorize as the identity provided in the 
certificate [or in the streams 'from' attribute???], then ...

This mimicks the behaviour described in XEP 0178. However, there is a 
security consideration associated with that.
The receiving entity has to make a guess about the identity that the 
initiating entity will attempt to authorize as during the next step, 
i.e. it seeks a match for the stream 'from' attribute in the presented 
identifiers similar to what is described in TLS-CERTS section 4.3 before 
offering EXTERNAL. No problem so far.
Now the XEP 0178 strategy is not to offer EXTERNAL if there is no match.
This means that dialback will be used as a fallback, which hides the 
problem of a wrong certificate.

8.1.1.2.:
the domainpart of the JID in the 'to' attribute must have been 
previously negotiated, similar to 8.1.2.2.

9.1.:
T: mechanism as <juliet@im.example.com"

13.7.2.3.:
What does "MUST perform a full re-authentication of the stream" mean? 
Given the <reset/> stream error i thought that the appropriate action is 
to terminate the stream.


Really-the-last-time?

philipp

From stpeter@stpeter.im  Tue Aug 17 13:30:24 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4CA753A68C4 for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 13:30:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.611
X-Spam-Level: 
X-Spam-Status: No, score=-102.611 tagged_above=-999 required=5 tests=[AWL=-0.012, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F8ztxyBPnGGO for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 13:30:17 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 738A53A69F9 for <xmpp@ietf.org>; Tue, 17 Aug 2010 13:30:14 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id A4FF940074 for <xmpp@ietf.org>; Tue, 17 Aug 2010 14:32:23 -0600 (MDT)
Message-ID: <4C6AF172.50102@stpeter.im>
Date: Tue, 17 Aug 2010 14:30:42 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] Fwd: New Non-WG Mailing List: keyassure -- Key Assurance With DNSSEC
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 20:30:24 -0000

Perhaps of interest here (since somewhat related to domain name
assertions)...

-------- Original Message --------
Subject: New Non-WG Mailing List: keyassure -- Key Assurance With DNSSEC
Date: Tue, 17 Aug 2010 11:36:02 -0700 (PDT)
From: IETF Secretariat <ietf-secretariat@ietf.org>
To: IETF Announcement list <ietf-announce@ietf.org>
CC: ondrej.sury@nic.cz, keyassure@ietf.org

A new IETF non-working group email list has been created.

List address: keyassure@ietf.org
Archive:
http://www.ietf.org/mail-archive/web/keyassure/current/maillist.html
To subscribe: https://www.ietf.org/mailman/listinfo/keyassure

Description: This list is for discussion relating to using
DNSSEC-protected DNS queries to get greater assurance for keys and
certificates that are passed in existing IETF protocols. The main idea is
that a relying party can get additional information about a domain name to
eliminate the need for using a certificate in a protocol, to eliminate the
need for sending certificates in the protocol if they are optional, and/or
to assure that the certificate given in a protocol is associated with the
domain name used by the application. In all three cases, the
application associates the key or key fingerprint securely retrieved from
the DNS with the domain name that was used in the DNS query.

For additional information, please contact the list administrators.

_______________________________________________
IETF-Announce mailing list
IETF-Announce@ietf.org
https://www.ietf.org/mailman/listinfo/ietf-announce

From stpeter@stpeter.im  Tue Aug 17 14:14:44 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B90B23A684B for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 14:14:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.611
X-Spam-Level: 
X-Spam-Status: No, score=-102.611 tagged_above=-999 required=5 tests=[AWL=-0.012, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8kGQ5OfMNJZY for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 14:14:34 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id F3B7B3A6817 for <xmpp@ietf.org>; Tue, 17 Aug 2010 14:14:33 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 8325E40074 for <xmpp@ietf.org>; Tue, 17 Aug 2010 15:16:49 -0600 (MDT)
Message-ID: <4C6AFBDC.8060501@stpeter.im>
Date: Tue, 17 Aug 2010 15:15:08 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C8887286.4DE7%tory.patnoe@webex.com>	<4C631B8A.3030509@stpeter.im>	<4C632972.5030503@stpeter.im>	<4C647118.10402@stpeter.im>	<4C64A031.2060300@babelmonkeys.de>	<AANLkTi=jAMCfURQLvH05ecA-h_vQC1ZZdzABjgwVbnJR@mail.gmail.com>	<4C69BA1B.2020602@stpeter.im> <4C6A5EE4.9030504@babelmonkeys.de>
In-Reply-To: <4C6A5EE4.9030504@babelmonkeys.de>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 21:14:44 -0000

On 8/17/10 4:05 AM, Florian Zeitz wrote:
> On 17.08.2010 00:22, Peter Saint-Andre wrote:
>> On 8/13/10 6:53 AM, Kevin Smith wrote:
>>> On Fri, Aug 13, 2010 at 2:30 AM, Florian Zeitz <florob@babelmonkeys.de> wrote:
>>>> On 13.08.2010 00:09, Peter Saint-Andre wrote:
>>>>> On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
>>>>>> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>>>>>> 2. The really gnarly issue is that now the 'ask' attribute can have two
>>>>>> values: "subscribe" and "subscribed". What happens if the user has a
>>>>>> pending outbound subscription to the contact *and* the user has
>>>>>> pre-approved a subscription request from the contact? Do we follow the
>>>>>> HTML convention of a space-separated list, as shown below?
>>>>>>
>>>>>>    US: <iq id='b89c5r7ib574'
>>>>>>            to='romeo@example.net/foo'
>>>>>>            type='set'>
>>>>>>          <query xmlns='jabber:iq:roster'>
>>>>>>            <item ask='subscribe subscribed'
>>>>>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>                  jid='juliet@example.com'
>>>>>>                  subscription='none'/>
>>>>>>          </query>
>>>>>>        </iq>
>>>>>>
>>>>>> That's possible, but ask='subscribe subscribed' does not match the
>>>>>> datatype currently defined in the schema for the 'jabber:iq:roster'
>>>>>> namespace:
>>>>>>
>>>>>>          <xs:attribute name='ask' use='optional'>
>>>>>>            <xs:simpleType>
>>>>>>              <xs:restriction base='xs:NCName'>
>>>>>>                <xs:enumeration value='subscribe'/>
>>>>>>                <xs:enumeration value='subscribed'/>
>>>>>>              </xs:restriction>
>>>>>>            </xs:simpleType>
>>>>>>          </xs:attribute>
>>>>>>
>>>>>> Furthermore, it seems that NCName is not a valid datatype for an
>>>>>> attribute in XML!
>>>>>>
>>>>>> ###
>>>>>>
>>>>>> 3.3.1 Attribute Types
>>>>>>
>>>>>> XML attribute types are of three kinds: a string type, a set of
>>>>>> tokenized types, and enumerated types. The string type may take any
>>>>>> literal string as a value; the tokenized types are more constrained. The
>>>>>> validity constraints noted in the grammar are applied after the
>>>>>> attribute value has been normalized as described in 3.3.3
>>>>>> Attribute-Value Normalization.
>>>>>>
>>>>>> [54]         AttType        ::=  StringType | TokenizedType | EnumeratedType
>>>>>> [55]         StringType     ::=  'CDATA'
>>>>>> [56]         TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
>>>>>>                             'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'
>>>>>>
>>>>>> ###
>>>>>>
>>>>>> And it appears that an EnumeratedType needs to use NMTOKEN (although
>>>>>> there are examples from W3 XML Schema of xs:nonNegativeInteger and
>>>>>> xs:token):
>>>>>>
>>>>>> ###
>>>>>>
>>>>>> Validity constraint: Enumeration
>>>>>>
>>>>>> Values of this type MUST match one of the Nmtoken tokens in the declaration.
>>>>>>
>>>>>> ###
>>>>>>
>>>>>> We could define the datatype of the 'ask' attribute to be NMTOKENS
>>>>>> (similar to, say, the 'class' attribute in XHTML) and remove the
>>>>>> enumeration. That might be the least-worst solution to the specification
>>>>>> challenge here.
>>>>>
>>>>> I've made that change in my working copy.
>>>>>
>>>> Maybe I'm just overlooking something, but doesn't this break parsing
>>>> that current clients are doing? And if so is this enough of an edge
>>>> case/unimportant enough that we are willing to accept that?
>>>> I tend to say yes to both, but mostly hope I'm just wrong ;)
>>>
>>> Ah, ok, so the point was raised here, thanks Florian for getting there
>>> long before me :)
>>>
>>> So, yes, this could be breaking the parsing of clients against 3921,
>>> which I *think* means we need to bump up to XMPP-1.1 (or 2.0 or
>>> whatever) for bis if we make the change in this way. I'm opposed to
>>> increasing the version number at the moment.
>>
>> By "parsing", do you folks mean "validation"?
>>
>> In 3921, the only defined value was ask='subscribe', as we can see in
>> Appendix B.5:
>>
>>          <xs:attribute name='ask' use='optional'>
>>            <xs:simpleType>
>>              <xs:restriction base='xs:NCName'>
>>                <xs:enumeration value='subscribe'/>
>>              </xs:restriction>
>>            </xs:simpleType>
>>          </xs:attribute>
>>
>> If in 3921bis we define an additional value ask='subscribed', does that
>> break existing clients? If so, why? It seems to me that a client would
>> simply ignore a value of 'subscribed' if it did not understand that
>> value. I ask because we've had 'subscribed' in 3921bis since -00 on June
>> 1, 2009 (in fact since draft-saintandre-rfc3921bis-04 on October 29, 2007):
>>
>>          <xs:attribute name='ask' use='optional'>
>>            <xs:simpleType>
>>              <xs:restriction base='xs:NCName'>
>>                <xs:enumeration value='subscribe'/>
>>                <xs:enumeration value='subscribed'/>
>>              </xs:restriction>
>>            </xs:simpleType>
>>          </xs:attribute>
>>
>> So, now that we've discovered the possibility of needing to communicate
>> both values simultaneously, we need to change the datatype from NCName
>> to NMTOKENS and thus allow at least the following three values:
>>
>>    ask='subscribe' (3921-safe)
>>    ask='subscribed' (in 3921bis since -00, see above)
>>    ask='subscribe subscribed' (new)
>>
>> What apsect of XML parsing breaks now that didn't break in 3921bis-00?
>> Please choose:
>>
>> 1. Values not defined in 3921 ("subscribed" was OK, it seems, but
>> "subscribe subscribed" breaks things)
>>
>> or:
>>
>> 2. Datatype checking (NCName => NMTOKENS)
>>
>> If you say that #1 breaks parsing then we've had a problem for almost 3
>> years, but it went undetected. If you say that #2 breaks parsing then
>> you are essentially claiming that clients are doing datatype validation
>> and I'd be curious to hear which clients are doing that.
>>
> I think we (at least me) are indeed claiming #1 breaks parsing. And yes
> that has probably been a problem with "subscribed" since forever (My
> personal excuse is that, as mentioned before, I have never read 3921).
> I'd be surprised if datatype validation was happening too.
> 
>> Furthermore, if we claim that a new value for an attribute breaks
>> backward-compatibility then we can either:
>>
>> 1. Rip out subscription pre-approvals
>>
>> 2. Add a stream feature that enables the server to indicate support
>>
>> The second approach would be fine with me, and is consistent with how we
>> handled roster versioning. And just as with roster versioning, I
>> disagree that this would require a version change from XMPP 1.0 to XMPP
>> 1.1, especially because the change is to an XMPP extension (iq:roster)
>> and not to core streaming semantics. If we'd had namespace versioning
>> since 1999 we might change from roster1 to roster2 at this point, but
>> that's water under the bridge. Handling this via stream features is the
>> best we can do, I think.
>>
>> In any case this is not a hill for me to die on -- we added subscription
>> pre-approvals for feature-parity with other presence technologies (in
>> particular SIP) and I think it's nice-to-have, but it's not nearly as
>> important as roster versioning, which saves a lot of bandwidth in common
>> scenarios.
>>
> 2nded. I think introducing a stream feature seems like a quite balanced
> way to do this.

That's the best I can think of. If no one has other suggestions, I'll
write some text for this approach and post it to the list in the next 24
hours or so. I think it will be quite similar to the text for roster
versioning.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From ben@nostrum.com  Tue Aug 17 14:52:29 2010
Return-Path: <ben@nostrum.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 94A013A6869 for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 14:52:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.6
X-Spam-Level: 
X-Spam-Status: No, score=-102.6 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, SPF_PASS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jhT53AyZ5M3J for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 14:52:28 -0700 (PDT)
Received: from nostrum.com (nostrum-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:267::2]) by core3.amsl.com (Postfix) with ESMTP id 3F28C3A6838 for <xmpp@ietf.org>; Tue, 17 Aug 2010 14:52:28 -0700 (PDT)
Received: from [10.0.1.9] (adsl-68-94-31-92.dsl.rcsntx.swbell.net [68.94.31.92]) (authenticated bits=0) by nostrum.com (8.14.3/8.14.3) with ESMTP id o7HLr21I061805 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for <xmpp@ietf.org>; Tue, 17 Aug 2010 16:53:03 -0500 (CDT) (envelope-from ben@nostrum.com)
From: Ben Campbell <ben@nostrum.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Tue, 17 Aug 2010 16:52:57 -0500
Message-Id: <99CFBC27-9255-4575-96EC-A7C7DAC6D6DA@nostrum.com>
To: XMPP Group <xmpp@ietf.org>
Mime-Version: 1.0 (Apple Message framework v1081)
X-Mailer: Apple Mail (2.1081)
Received-SPF: pass (nostrum.com: 68.94.31.92 is authenticated by a trusted mechanism)
Subject: [xmpp] Followup Review of 3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 21:52:29 -0000

[as individual]

Here's the result of a quick re-review on 3920bis-12. I blazed through =
this as quickly as I could for a 183 page doc, so there were plenty of =
opportunities to miss things. Hopefully we will make up for that with =
the "many eyes" effect.

Thanks!

Ben.


Substantive Comments:

-- 4.8.3.18

Does see-other-hosts have security implications? In particular, does it =
matter if the server has been authenticated prior to its sending of =
this? I assume that an originator that chose to follow the redirect =
would authenticate the new server against the JID in the see-other-host =
element, right?=20

Also, is name resolution for a JID received in a see-other-host element =
any different than the name resolution for the original server? If not, =
then why not just reference that section, rather than restate a subset =
of it?=20

-- Appendix E

This seems to conflict with the trust boilerplate at the beginning of =
the document. In particular, the standard legal provisions have =
restrictions that are not reflected here.


Editorial and Nit comments:

-- section 1.3, implementation note, "...most deployed server will use =
the older server dialback protocol to provide weak identity verification =
instead of using SASL..."

I suggest "... most deployed servers use ... instead of SASL ..."  Both =
fixing a singular/plural mismatch on "server", and hopefully avoiding =
future looking statements implying implementations will continue to do =
this in the future.

-- section 1.4:

IDNits is confused by the 2119 boilerplate. Is there any reason not to =
use the standard 2119 boilerplate language? I realize this says the same =
thing, but we might at least avoid repeated "IDNit complaint" feedback =
during IETF last call.

-- Figures in general

Any chance of getting figure numbers and captions? I realize it would be =
a pain, but it's helpful for people using the document to be able to =
refer to a figure by number. (I'm okay if we don't want to bother.)

-- 4.2.5, last paragraph, "However, if it does attempt..."

Extraneous "However,", since this sentence does not in any way conflict =
with the prior one.

-- 4.8.3.18

Does see-other-hosts have security implications? In particular, does it =
matter if the server has been authenticated prior to its sending of =
this? I assume that an originator that chose to follow the redirect =
would authenticate the new server against the JID in the see-other-host =
element, right?=20

Also, is name resolution for a JID received in a see-other-host element =
any different than the name resolution for the original server? If not, =
then why not just reference that section, rather than restate a subset =
of it?=20

-- 10

Why the all-caps for ROUTE, DELIVER, and HANDLE? They are neither =
acronyms or 2119 normative terms.

-- 15

Have the conformance requirements been kept up to date through all the =
recent revisions?=

From stpeter@stpeter.im  Tue Aug 17 15:24:12 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 477813A681B for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 15:24:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.611
X-Spam-Level: 
X-Spam-Status: No, score=-101.611 tagged_above=-999 required=5 tests=[AWL=-1.012, BAYES_00=-2.599, SARE_RAND_1=2, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I2shVmRvSRgl for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 15:24:10 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id C4D073A67F3 for <xmpp@ietf.org>; Tue, 17 Aug 2010 15:24:10 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 1D87E40074 for <xmpp@ietf.org>; Tue, 17 Aug 2010 16:26:26 -0600 (MDT)
Message-ID: <4C6B0C2B.4060205@stpeter.im>
Date: Tue, 17 Aug 2010 16:24:43 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com> <4C6A9F2D.5090400@mail.symlynx.com>
In-Reply-To: <4C6A9F2D.5090400@mail.symlynx.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 22:24:12 -0000

On 8/17/10 8:39 AM, Philipp Hancke wrote:
> Ben Campbell wrote:
>> It looks like we are very close to being ready to request publication
>> of draft-ietf-xmpp-3920bis. It looks like all the open issues have
>> been closed. But before we publish it, we'd like people to make one
>> last "proof reading" pass. There's been a number of changes from the
>> two WGLCs, and we want to make sure that these have not introduced
>> regression errors, cut and paste problems, etc.
>>
>> Therefore we're declaring a "work group really-last-this-time
>> proofreading call". This informal WGRLTTPC ends on 18 August, at
>> close-of-business in whatever time zone Peter happens to be at the time.
> 
> I simply re-read the whole thing again. 

Thanks for the extra review.

> Mostly minor issues, but there
> is a serious inconsistency about the inclusion of the authorization
> identity between XEP 0178 section 6.2.8...
> 
> XEP 0178 (s2s step 10) says that "Server1 SHOULD include an
> authorization identity [...]"
> whereas section 6.2.8. tells us not to include or accept an
> authorization identity on s2s streams:
> "MUST NOT attempt to negotiate an authorization identity" and
> "MUST NOT accept an authorization identity".
> Is there a strong to forbid the inclusion? If so, there needs to be a
> backward compability note, because servers do include one currently.

On the plane to Maastricht recently I took the time to read XEP-0178
again and it needs to be significantly revised, in part to bring it into
line with 3920bis. I'll post about that to standards@xmpp.org in the
near future.

> Other issues (labelled T for typos, E for minor editoral nitpicks):
> 1.3.
> T: most deployed serverS
> E: s/older dialback/dialback/
> 
> 4.2.6.
> E: s/older dialback/dialback/

Fixed. I've also changed "server dialback" and mere "dialback" to
"Server Dialback" in all instances.

> 4.6.1.:
> "MUST set the value to one of its own hostnames"
> A minor clarification: MUST set the value to the domain part of the
> 'from' attribute of the stanza that caused the stream to be established
> - not just any of its own hostnames.

That's a good fix, thanks.

> 4.6.3.:
> Is the id security critical for any other purpose than in dialback and
> legacy authentication? If not, it might be good to add a reference to
> that context in the security note.

As far as I know, the stream ID is security-critical only if it is
re-used during authentication, and I don't know of any SASL-based
authentication mechanisms that re-use it, so I think this note is
effectively limited to Server Dialback and jabber:iq:auth. However, I
suppose some future SASL mechanism might make use of the stream ID, too.
I've changed it to:

      Security Note: The stream ID MUST be both unpredictable and non-
      repeating because it can be security-critical when re-used by an
      authentication mechanisms, as is the case for Server Dialback
      [XEP-0220] and the "XMPP 0.9" authentication mechanism used before
      RFC 3920 defined the use of SASL in XMPP; for recommendations
      regarding randomness for security purposes, see [RANDOM].

> 4.7.4.:

Do you mean 4.7.3?

> s2s streams SHOULD declare for the 'jabber:server:dialback' namespace in
> the stream header for backward compability reasons. Strange things may
> happen otherwise, at least back in 2006. I have not seen that
> recommendation elsewhere, but we can put it into XEP 220, too.

I don't think it's the place of 3920bis to say that servers SHOULD
declare the 'jabber:server:dialback' namespace. That "SHOULD" belongs in
XEP-0220.

However, we might want to add an interoperability note to 4.7.3 ("Other
Namespaces"), such as:

      Interoperability Note: For historical reasons, some server
      implementations expect a declaration of the 'jabber:server:
      dialback' namespace on server-to-server streams; for details, see
      [XEP-0220].

> 4.8.1.4.:
> E: The order of the bullets seems to be back to front. I would expect
> stream errors first, followed by explaining the difference to stanza
> errors since the section header is about stream errors.

Sure, that makes sense.

> 4.8.3.14.:
> this is no longer supposed to happen for dialback, so the text about
> that should be a backward compability note.

I think that belongs in XEP-0220.

> 4.8.3.15.:
> This is supposed to be used as (not, see below) described in 13.7.2.3?
> It is also mentioned in the section about (avoiding) TLS renegotiation.

I've added cross-references to those sections:

###

4.8.3.15.  reset

   The server is closing the stream because it has new (typically
   security-critical) features to offer, because the keys or
   certificates used to establish a secure context for the stream have
   expired or have been revoked during the life of the stream
   (Section 13.7.2.3), because the TLS sequence number has wrapped
   (Section 5.2.5), etc.

###

> 5.3.3.3.:
> T: #2 'from' is used without single quotes here.

Fixed.

> 6.2.4.:
> The example inside the parenthesis contains a criticial requirement.
> What about changing that to:
> If during prior TLS negotiation the initiating entity presented a
> certificate that is acceptable to the receiving entity for purposes
> of strong identity verification in accordance with local service
> policies (e.g. because said certificate is unexpired, unrevoked and is
> anchored to a root trusted by the receiving entity)
> and the receiving entity expects that the initiating entity will be able
> to authenticate and authorize as the identity provided in the
> certificate [or in the streams 'from' attribute???], then ...

The existing sentence is horribly long. I suggest the following rewrite,
incorporating your suggestion (but taking it one step farther):

###

6.2.4.  Mechanism Offers

   If the receiving entity considers TLS negotiation (Section 5) to be
   mandatory before authentication via a particular SASL mechanism will
   be acceptable, the receiving entity MUST NOT advertise that mechanism
   in its list of available SASL mechanisms before TLS negotiation has
   been completed.

   The receiving entity MUST offer the SASL EXTERNAL mechanism if both
   of the following conditions hold:

   1.  During TLS negotiation the initiating entity presented a
       certificate that is acceptable to the receiving entity for
       purposes of strong identity verification in accordance with local
       service policies (e.g., because said certificate is unexpired, is
       unrevoked, and is anchored to a root trusted by the receiving
       entity).

   2.  The domain presented in or derived from the information in the
       certificate matches domainpart of the JID provided in the 'from'
       attribute of the initial stream header.

   However, the receiving entity MAY offer the SASL EXTERNAL mechanism
   under other circumstances, as well.

   When the receiving entity offers the SASL EXTERNAL mechanism, it
   SHOULD prefer that mechanism so that the parties have the potential
   to negotiate mutual authentication.

   Section 13.8 specifies SASL mechanisms that MUST be supported;
   naturally, other SASL mechanisms MAY be supported as well.

      Informational Note: Best practices for the use of SASL in the
      context of XMPP are described in [XEP-0175] for the ANONYMOUS
      mechanism and in [XEP-0178] for the EXTERNAL mechanism.

###

> This mimicks the behaviour described in XEP 0178. However, there is a
> security consideration associated with that.
> The receiving entity has to make a guess about the identity that the
> initiating entity will attempt to authorize as during the next step,
> i.e. it seeks a match for the stream 'from' attribute in the presented
> identifiers similar to what is described in TLS-CERTS section 4.3 before
> offering EXTERNAL. No problem so far.
> Now the XEP 0178 strategy is not to offer EXTERNAL if there is no match.
> This means that dialback will be used as a fallback, which hides the
> problem of a wrong certificate.

TLS + Dialback is underspecified, but I don't think it's the task of
3920bis to specify it more fully; instead I think that XEP-0220 needs to
be updated to cover that case.

And see previous note about "authorization" in SASL EXTERNAL. I don't
think that concept applies to s2s streams.

> 8.1.1.2.:
> the domainpart of the JID in the 'to' attribute must have been
> previously negotiated, similar to 8.1.2.2.

Good catch.

> 9.1.:
> T: mechanism as <juliet@im.example.com"

Fixed. I found another instance in 13.7.1.4.

> 13.7.2.3.:
> What does "MUST perform a full re-authentication of the stream" mean?
> Given the <reset/> stream error i thought that the appropriate action is
> to terminate the stream.

You are correct. I think this is clearer (a few text tweaks in the
bullet points and a rewritten paragraph after those):

###

13.7.2.3.  Checking of Certificates in Long-Lived Streams

   Because XMPP uses long-lived XML streams, it is possible that a
   certificate presented during stream negotiation might expire or be
   revoked while the stream is still live (this is especially relevant
   in the context of server-to-server streams).  Therefore, each party
   to a long-lived stream SHOULD:

   1.  Cache the expiration date of the certificate presented by the
       other party and any certificates on which that certificate
       depends (such as a root or intermediate certificate for a
       certification authority), and close the stream when any such
       certificate expires, with a stream error of <reset/>
       (Section 4.8.3.15).

   2.  Periodically query the Online Certificate Status Protocol [OCSP]
       responder listed in the Authority Information Access (AIA)
       extension of the certificate presented by the other party and any
       certificates on which that certificate depends (such as a root or
       intermediate certificate for a certification authority), and
       close the stream if any such certificate has been revoked, with a
       stream error of <reset/> (Section 4.8.3.15).

   After the stream is closed, the initiating entity from the closed
   stream will need to re-connect and the receiving entity will need to
   authenticate the initiating entity based on whatever certificate it
   presents during negotiation of the new stream.

###

> Really-the-last-time?

I hope so. :) Thanks again.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Tue Aug 17 16:06:29 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 162193A6817 for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 16:06:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.601
X-Spam-Level: 
X-Spam-Status: No, score=-102.601 tagged_above=-999 required=5 tests=[AWL=-0.002, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id clWUqHouUyxM for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 16:06:27 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id C4DF43A67C3 for <xmpp@ietf.org>; Tue, 17 Aug 2010 16:06:27 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id D0CA640074 for <xmpp@ietf.org>; Tue, 17 Aug 2010 17:08:43 -0600 (MDT)
Message-ID: <4C6B1616.9060707@stpeter.im>
Date: Tue, 17 Aug 2010 17:07:02 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <99CFBC27-9255-4575-96EC-A7C7DAC6D6DA@nostrum.com>
In-Reply-To: <99CFBC27-9255-4575-96EC-A7C7DAC6D6DA@nostrum.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Followup Review of 3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 23:06:29 -0000

On 8/17/10 3:52 PM, Ben Campbell wrote:
> [as individual]
> 
> Here's the result of a quick re-review on 3920bis-12. I blazed
> through this as quickly as I could for a 183 page doc, so there were
> plenty of opportunities to miss things. Hopefully we will make up for
> that with the "many eyes" effect.
> 
> Thanks!

No, thank you! :)

> Substantive Comments:
> 
> -- 4.8.3.18
> 
> Does see-other-hosts have security implications? In particular, does
> it matter if the server has been authenticated prior to its sending
> of this? I assume that an originator that chose to follow the
> redirect would authenticate the new server against the JID in the
> see-other-host element, right?
> 
> Also, is name resolution for a JID received in a see-other-host
> element any different than the name resolution for the original
> server? If not, then why not just reference that section, rather than
> restate a subset of it?

Those are very good points. I suggest changing the text as follows:

   4.8.3.18.  see-other-host

   The server will not provide service to the initiating entity but is
   redirecting traffic to another host; the XML character data of the
   <see-other-host/> element returned by the server MUST specify the
   alternate hostname or IP address at which to connect, which MUST be a
   valid domainpart or a domainpart plus port number (separated by the
   ':' character in the form "domainpart:port").  If the domainpart is
   the same as the source domain, target domain, or resolved IP address
   to which the initiating entity originally connected (differing only
   by the port number), then the initiating entity SHOULD simply attempt
   to reconnect at that address.  Otherwise, the initiating entity MUST
   resolve the hostname specified in the <see-other-host/> element as
   described under Section 3.2.

Where "source domain" and "target domain" are as defined in
draft-saintandre-tls-server-id-check (I've added a paragraph about that
to the Terminology section).

> -- Appendix E
> 
> This seems to conflict with the trust boilerplate at the beginning of
> the document. In particular, the standard legal provisions have
> restrictions that are not reflected here.

Other RFCs have been published with this text, including several
authored by Simon Josefsson. I'll check with him and others regarding
the interactions between this text and the trust boilerplate.

> Editorial and Nit comments:
> 
> -- section 1.3, implementation note, "...most deployed server will
> use the older server dialback protocol to provide weak identity
> verification instead of using SASL..."
> 
> I suggest "... most deployed servers use ... instead of SASL ..."
> Both fixing a singular/plural mismatch on "server", and hopefully
> avoiding future looking statements implying implementations will
> continue to do this in the future.

Fixed.

> -- section 1.4:
> 
> IDNits is confused by the 2119 boilerplate. Is there any reason not
> to use the standard 2119 boilerplate language? I realize this says
> the same thing, but we might at least avoid repeated "IDNit
> complaint" feedback during IETF last call.

I think it doesn't like [KEYWORDS] instead of [RFC2119]. That raises a
general point about human-friendly references like [TLS] vs. RFC-number
references such as [RFC5246]. Do folks have a preference? At one time,
the IESG preferred the human-friendly references, but I've had some
feedback that protocol geeks prefer the RFC-number references.

> -- Figures in general
> 
> Any chance of getting figure numbers and captions? I realize it would
> be a pain, but it's helpful for people using the document to be able
> to refer to a figure by number. (I'm okay if we don't want to
> bother.)

I can do that. It's not *that* painful, and it is more reader-friendly.

> -- 4.2.5, last paragraph, "However, if it does attempt..."
> 
> Extraneous "However,", since this sentence does not in any way
> conflict with the prior one.

How about "Even if the initiating entity does attempt to do so..."

> -- 4.8.3.18
> 
> Does see-other-hosts have security implications? In particular, does
> it matter if the server has been authenticated prior to its sending
> of this? I assume that an originator that chose to follow the
> redirect would authenticate the new server against the JID in the
> see-other-host element, right?
> 
> Also, is name resolution for a JID received in a see-other-host
> element any different than the name resolution for the original
> server? If not, then why not just reference that section, rather than
> restate a subset of it?

Dup? See above.

> -- 10
> 
> Why the all-caps for ROUTE, DELIVER, and HANDLE? They are neither
> acronyms or 2119 normative terms.

Some terms are in all-caps when they are first defined, but I think
you're right that this is confusing. If you find other instances, please
let me know and I'll lower-case them.

> -- 15
> 
> Have the conformance requirements been kept up to date through all
> the recent revisions? 

As far as I know, yes. I don't think the recent revisions have had
conformance implications, but I'll double-check.

Thanks!

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Tue Aug 17 16:19:07 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2213C3A6820 for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 16:19:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.601
X-Spam-Level: 
X-Spam-Status: No, score=-102.601 tagged_above=-999 required=5 tests=[AWL=-0.002, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sS1s1DGjxzlu for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 16:19:04 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id A118A3A635F for <xmpp@ietf.org>; Tue, 17 Aug 2010 16:19:03 -0700 (PDT)
Received: from dhcp-64-101-72-121.cisco.com (dhcp-64-101-72-121.cisco.com [64.101.72.121]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id B6C4540074 for <xmpp@ietf.org>; Tue, 17 Aug 2010 17:21:19 -0600 (MDT)
Message-ID: <4C6B1909.6080306@stpeter.im>
Date: Tue, 17 Aug 2010 17:19:37 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <99CFBC27-9255-4575-96EC-A7C7DAC6D6DA@nostrum.com> <4C6B1616.9060707@stpeter.im>
In-Reply-To: <4C6B1616.9060707@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Followup Review of 3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Aug 2010 23:19:07 -0000

On 8/17/10 5:07 PM, Peter Saint-Andre wrote:
> On 8/17/10 3:52 PM, Ben Campbell wrote:
>
>> Why the all-caps for ROUTE, DELIVER, and HANDLE? They are neither
>> acronyms or 2119 normative terms.
> 
> Some terms are in all-caps when they are first defined, but I think
> you're right that this is confusing. If you find other instances, please
> let me know and I'll lower-case them.

Never mind, I found them all -- they were the terms formerly in the
index (which I removed several versions ago).

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Tue Aug 17 21:05:42 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 12DEB3A6876 for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 21:05:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.489
X-Spam-Level: 
X-Spam-Status: No, score=-102.489 tagged_above=-999 required=5 tests=[AWL=0.110, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qw-p0E7Od9uU for <xmpp@core3.amsl.com>; Tue, 17 Aug 2010 21:05:40 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 6F2B73A6884 for <xmpp@ietf.org>; Tue, 17 Aug 2010 21:05:40 -0700 (PDT)
Received: from squire.local (dsl-140-248.dynamic-dsl.frii.net [216.17.140.248]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id D3DF740074 for <xmpp@ietf.org>; Tue, 17 Aug 2010 22:07:56 -0600 (MDT)
Message-ID: <4C6B5C2D.7040102@stpeter.im>
Date: Tue, 17 Aug 2010 22:06:05 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C8887286.4DE7%tory.patnoe@webex.com>	<4C631B8A.3030509@stpeter.im>	<4C632972.5030503@stpeter.im>	<4C647118.10402@stpeter.im>	<4C64A031.2060300@babelmonkeys.de>	<AANLkTi=jAMCfURQLvH05ecA-h_vQC1ZZdzABjgwVbnJR@mail.gmail.com>	<4C69BA1B.2020602@stpeter.im>	<4C6A5EE4.9030504@babelmonkeys.de> <4C6AFBDC.8060501@stpeter.im>
In-Reply-To: <4C6AFBDC.8060501@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 04:05:42 -0000

On 8/17/10 3:15 PM, Peter Saint-Andre wrote:
> On 8/17/10 4:05 AM, Florian Zeitz wrote:
>> On 17.08.2010 00:22, Peter Saint-Andre wrote:
>>> On 8/13/10 6:53 AM, Kevin Smith wrote:
>>>> On Fri, Aug 13, 2010 at 2:30 AM, Florian Zeitz <florob@babelmonkeys.de> wrote:
>>>>> On 13.08.2010 00:09, Peter Saint-Andre wrote:
>>>>>> On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
>>>>>>> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>>>>>>> 2. The really gnarly issue is that now the 'ask' attribute can have two
>>>>>>> values: "subscribe" and "subscribed". What happens if the user has a
>>>>>>> pending outbound subscription to the contact *and* the user has
>>>>>>> pre-approved a subscription request from the contact? Do we follow the
>>>>>>> HTML convention of a space-separated list, as shown below?
>>>>>>>
>>>>>>>    US: <iq id='b89c5r7ib574'
>>>>>>>            to='romeo@example.net/foo'
>>>>>>>            type='set'>
>>>>>>>          <query xmlns='jabber:iq:roster'>
>>>>>>>            <item ask='subscribe subscribed'
>>>>>>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>>                  jid='juliet@example.com'
>>>>>>>                  subscription='none'/>
>>>>>>>          </query>
>>>>>>>        </iq>
>>>>>>>
>>>>>>> That's possible, but ask='subscribe subscribed' does not match the
>>>>>>> datatype currently defined in the schema for the 'jabber:iq:roster'
>>>>>>> namespace:
>>>>>>>
>>>>>>>          <xs:attribute name='ask' use='optional'>
>>>>>>>            <xs:simpleType>
>>>>>>>              <xs:restriction base='xs:NCName'>
>>>>>>>                <xs:enumeration value='subscribe'/>
>>>>>>>                <xs:enumeration value='subscribed'/>
>>>>>>>              </xs:restriction>
>>>>>>>            </xs:simpleType>
>>>>>>>          </xs:attribute>
>>>>>>>
>>>>>>> Furthermore, it seems that NCName is not a valid datatype for an
>>>>>>> attribute in XML!
>>>>>>>
>>>>>>> ###
>>>>>>>
>>>>>>> 3.3.1 Attribute Types
>>>>>>>
>>>>>>> XML attribute types are of three kinds: a string type, a set of
>>>>>>> tokenized types, and enumerated types. The string type may take any
>>>>>>> literal string as a value; the tokenized types are more constrained. The
>>>>>>> validity constraints noted in the grammar are applied after the
>>>>>>> attribute value has been normalized as described in 3.3.3
>>>>>>> Attribute-Value Normalization.
>>>>>>>
>>>>>>> [54]         AttType        ::=  StringType | TokenizedType | EnumeratedType
>>>>>>> [55]         StringType     ::=  'CDATA'
>>>>>>> [56]         TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
>>>>>>>                             'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'
>>>>>>>
>>>>>>> ###
>>>>>>>
>>>>>>> And it appears that an EnumeratedType needs to use NMTOKEN (although
>>>>>>> there are examples from W3 XML Schema of xs:nonNegativeInteger and
>>>>>>> xs:token):
>>>>>>>
>>>>>>> ###
>>>>>>>
>>>>>>> Validity constraint: Enumeration
>>>>>>>
>>>>>>> Values of this type MUST match one of the Nmtoken tokens in the declaration.
>>>>>>>
>>>>>>> ###
>>>>>>>
>>>>>>> We could define the datatype of the 'ask' attribute to be NMTOKENS
>>>>>>> (similar to, say, the 'class' attribute in XHTML) and remove the
>>>>>>> enumeration. That might be the least-worst solution to the specification
>>>>>>> challenge here.
>>>>>>
>>>>>> I've made that change in my working copy.
>>>>>>
>>>>> Maybe I'm just overlooking something, but doesn't this break parsing
>>>>> that current clients are doing? And if so is this enough of an edge
>>>>> case/unimportant enough that we are willing to accept that?
>>>>> I tend to say yes to both, but mostly hope I'm just wrong ;)
>>>>
>>>> Ah, ok, so the point was raised here, thanks Florian for getting there
>>>> long before me :)
>>>>
>>>> So, yes, this could be breaking the parsing of clients against 3921,
>>>> which I *think* means we need to bump up to XMPP-1.1 (or 2.0 or
>>>> whatever) for bis if we make the change in this way. I'm opposed to
>>>> increasing the version number at the moment.
>>>
>>> By "parsing", do you folks mean "validation"?
>>>
>>> In 3921, the only defined value was ask='subscribe', as we can see in
>>> Appendix B.5:
>>>
>>>          <xs:attribute name='ask' use='optional'>
>>>            <xs:simpleType>
>>>              <xs:restriction base='xs:NCName'>
>>>                <xs:enumeration value='subscribe'/>
>>>              </xs:restriction>
>>>            </xs:simpleType>
>>>          </xs:attribute>
>>>
>>> If in 3921bis we define an additional value ask='subscribed', does that
>>> break existing clients? If so, why? It seems to me that a client would
>>> simply ignore a value of 'subscribed' if it did not understand that
>>> value. I ask because we've had 'subscribed' in 3921bis since -00 on June
>>> 1, 2009 (in fact since draft-saintandre-rfc3921bis-04 on October 29, 2007):
>>>
>>>          <xs:attribute name='ask' use='optional'>
>>>            <xs:simpleType>
>>>              <xs:restriction base='xs:NCName'>
>>>                <xs:enumeration value='subscribe'/>
>>>                <xs:enumeration value='subscribed'/>
>>>              </xs:restriction>
>>>            </xs:simpleType>
>>>          </xs:attribute>
>>>
>>> So, now that we've discovered the possibility of needing to communicate
>>> both values simultaneously, we need to change the datatype from NCName
>>> to NMTOKENS and thus allow at least the following three values:
>>>
>>>    ask='subscribe' (3921-safe)
>>>    ask='subscribed' (in 3921bis since -00, see above)
>>>    ask='subscribe subscribed' (new)
>>>
>>> What apsect of XML parsing breaks now that didn't break in 3921bis-00?
>>> Please choose:
>>>
>>> 1. Values not defined in 3921 ("subscribed" was OK, it seems, but
>>> "subscribe subscribed" breaks things)
>>>
>>> or:
>>>
>>> 2. Datatype checking (NCName => NMTOKENS)
>>>
>>> If you say that #1 breaks parsing then we've had a problem for almost 3
>>> years, but it went undetected. If you say that #2 breaks parsing then
>>> you are essentially claiming that clients are doing datatype validation
>>> and I'd be curious to hear which clients are doing that.
>>>
>> I think we (at least me) are indeed claiming #1 breaks parsing. And yes
>> that has probably been a problem with "subscribed" since forever (My
>> personal excuse is that, as mentioned before, I have never read 3921).
>> I'd be surprised if datatype validation was happening too.
>>
>>> Furthermore, if we claim that a new value for an attribute breaks
>>> backward-compatibility then we can either:
>>>
>>> 1. Rip out subscription pre-approvals
>>>
>>> 2. Add a stream feature that enables the server to indicate support
>>>
>>> The second approach would be fine with me, and is consistent with how we
>>> handled roster versioning. And just as with roster versioning, I
>>> disagree that this would require a version change from XMPP 1.0 to XMPP
>>> 1.1, especially because the change is to an XMPP extension (iq:roster)
>>> and not to core streaming semantics. If we'd had namespace versioning
>>> since 1999 we might change from roster1 to roster2 at this point, but
>>> that's water under the bridge. Handling this via stream features is the
>>> best we can do, I think.
>>>
>>> In any case this is not a hill for me to die on -- we added subscription
>>> pre-approvals for feature-parity with other presence technologies (in
>>> particular SIP) and I think it's nice-to-have, but it's not nearly as
>>> important as roster versioning, which saves a lot of bandwidth in common
>>> scenarios.
>>>
>> 2nded. I think introducing a stream feature seems like a quite balanced
>> way to do this.
> 
> That's the best I can think of. If no one has other suggestions, I'll
> write some text for this approach and post it to the list in the next 24
> hours or so. I think it will be quite similar to the text for roster
> versioning.

I propose the following.

###

3.4.  Pre-Approving a Subscription Request

   If a user has not received a subscription request from a contact, the
   user can "pre-approve" such a request so that it will be
   automatically approved by the user's server.

   Support for subscription pre-approvals is OPTIONAL on the part of
   clients and servers.  If a server supports subscription pre-
   approvals, then it MUST advertise the following stream feature during
   stream negotiation.

   <sub xmlns='urn:xmpp:features:pre-approval'/>

   The subscription pre-approval stream feature is merely informative
   and therefore is never mandatory.

3.4.1.  Client Generation of Subscription Pre-Approval

   If the server to which a client connects has advertised support for
   subscription pre-approvals, the client MAY generate a subscription
   pre-approval by sending a presence stanza of type "subscribed" to the
   contact.

   UC: <presence id='pg81vx64'
                 to='juliet@example.com'
                 type='subscribed'/>

   If the server does not advertise support for subscription pre-
   approvals, the client MUST NOT attempt to pre-approve subscription
   requests from potential or actual contacts.

###

/psa



From fippo@mail.symlynx.com  Wed Aug 18 03:03:36 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CA7103A6927 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 03:03:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2yL5TFd0Jifj for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 03:03:35 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id 085D73A68E1 for <xmpp@ietf.org>; Wed, 18 Aug 2010 03:03:34 -0700 (PDT)
Received: from [192.168.178.24] (p548BFE9E.dip.t-dialin.net [84.139.254.158]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7IA44fd031276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Wed, 18 Aug 2010 12:04:06 +0200
Message-ID: <4C6BB011.1050300@mail.symlynx.com>
Date: Wed, 18 Aug 2010 12:04:01 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com> <4C6B0C2B.4060205@stpeter.im>
In-Reply-To: <4C6B0C2B.4060205@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 10:03:36 -0000

Peter Saint-Andre wrote:
[...]
>> Mostly minor issues, but there
>> is a serious inconsistency about the inclusion of the authorization
>> identity between XEP 0178 section 6.2.8...
>>
>> XEP 0178 (s2s step 10) says that "Server1 SHOULD include an
>> authorization identity [...]"
>> whereas section 6.2.8. tells us not to include or accept an
>> authorization identity on s2s streams:
>> "MUST NOT attempt to negotiate an authorization identity" and
>> "MUST NOT accept an authorization identity".
>> Is there a strong to forbid the inclusion? If so, there needs to be a
>> backward compability note, because servers do include one currently.
>
> On the plane to Maastricht recently I took the time to read XEP-0178
> again and it needs to be significantly revised, in part to bring it into
> line with 3920bis. I'll post about that to standards@xmpp.org in the
> near future.

XEP 0178 will certainly benefit that (especially the improved 
terminology in TLS-CERTS).
However, you can not change this issue there, since servers currently 
send and expect an authorization id.

Afaics, it was Matthias who wanted an authorization id:
http://mail.jabber.org/pipermail/standards/2006-September/012344.html
The argument is not compelling imo, but I think we're stuck with 
including one now, even if it meaningless.

>> Other issues (labelled T for typos, E for minor editoral nitpicks):

[...]
+9 (or +1 on the 9 issues)

>> 6.2.4.:
>> The example inside the parenthesis contains a criticial requirement.
>> What about changing that to:
>> If during prior TLS negotiation the initiating entity presented a
>> certificate that is acceptable to the receiving entity for purposes
>> of strong identity verification in accordance with local service
>> policies (e.g. because said certificate is unexpired, unrevoked and is
>> anchored to a root trusted by the receiving entity)
>> and the receiving entity expects that the initiating entity will be able
>> to authenticate and authorize as the identity provided in the
>> certificate [or in the streams 'from' attribute???], then ...
>
> The existing sentence is horribly long. I suggest the following rewrite,
> incorporating your suggestion (but taking it one step farther):
>
> ###
>
> 6.2.4.  Mechanism Offers
>
>     If the receiving entity considers TLS negotiation (Section 5) to be
>     mandatory before authentication via a particular SASL mechanism will
>     be acceptable, the receiving entity MUST NOT advertise that mechanism
>     in its list of available SASL mechanisms before TLS negotiation has
>     been completed.
>
>     The receiving entity MUST offer the SASL EXTERNAL mechanism if both
>     of the following conditions hold:

s/MUST/SHOULD/ please. When you attempt to do DWD, you avoid offering 
EXTERNAL at that point.

>     1.  During TLS negotiation the initiating entity presented a
>         certificate that is acceptable to the receiving entity for
>         purposes of strong identity verification in accordance with local
>         service policies (e.g., because said certificate is unexpired, is
>         unrevoked, and is anchored to a root trusted by the receiving
>         entity).
>
>     2.  The domain presented in or derived from the information in the
>         certificate matches domainpart of the JID provided in the 'from'
>         attribute of the initial stream header.

Not quite. Unfortunately, this needs to cover c2s and s2s, which 
complicates things.

What you do in any case is to seek a match for the JID provided in the 
'from' attribute in the list of presented identifiers.

For s2s, this process is the one described in the server-id-check draft 
with roles reversed, i.e. the receiving entity checks the server 
certificate provided by the initiating entity. Do you have a section (or 
short note) there that covers mutual authentication in server-to-server 
communication?

>     However, the receiving entity MAY offer the SASL EXTERNAL mechanism
>     under other circumstances, as well.

If the receiving entity can not offer the EXTERNAL mechanism but 
requires high security (i.e. there are no mechanisms left and it can not 
offer dialback), it should terminate the stream (<policy-violation/>?). 
Unless that is already covered elsewhere.

>     When the receiving entity offers the SASL EXTERNAL mechanism, it
>     SHOULD prefer that mechanism so that the parties have the potential
>     to negotiate mutual authentication.

I think that should be (s/it/initiating entity/):
When the receiving entity offers the SASL EXTERNAL mechanism, the 
initiating entity SHOULD prefer ...

>     Section 13.8 specifies SASL mechanisms that MUST be supported;
>     naturally, other SASL mechanisms MAY be supported as well.
>
>        Informational Note: Best practices for the use of SASL in the
>        context of XMPP are described in [XEP-0175] for the ANONYMOUS
>        mechanism and in [XEP-0178] for the EXTERNAL mechanism.
>
> ###

+1

>> This mimicks the behaviour described in XEP 0178. However, there is a
>> security consideration associated with that.
>> The receiving entity has to make a guess about the identity that the
>> initiating entity will attempt to authorize as during the next step,
>> i.e. it seeks a match for the stream 'from' attribute in the presented
>> identifiers similar to what is described in TLS-CERTS section 4.3 before
>> offering EXTERNAL. No problem so far.
>> Now the XEP 0178 strategy is not to offer EXTERNAL if there is no match.
>> This means that dialback will be used as a fallback, which hides the
>> problem of a wrong certificate.
>
> TLS + Dialback is underspecified, but I don't think it's the task of
> 3920bis to specify it more fully; instead I think that XEP-0220 needs to
> be updated to cover that case.

Dave promised to write something about that.

> And see previous note about "authorization" in SASL EXTERNAL. I don't
> think that concept applies to s2s streams.

[...]
+4

>> Really-the-last-time?
>
> I hope so. :) Thanks again.

Oh, we could go on for years :-)

philipp

From stpeter@stpeter.im  Wed Aug 18 08:02:44 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 080803A68A7 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:02:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.671
X-Spam-Level: 
X-Spam-Status: No, score=-102.671 tagged_above=-999 required=5 tests=[AWL=-0.072, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OmNvoxdxRoGn for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:02:37 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id A2F503A6891 for <xmpp@ietf.org>; Wed, 18 Aug 2010 08:02:37 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id B5AB240074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 09:04:56 -0600 (MDT)
Message-ID: <4C6BF62F.20303@stpeter.im>
Date: Wed, 18 Aug 2010 09:03:11 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im> <4C6BB011.1050300@mail.symlynx.com>
In-Reply-To: <4C6BB011.1050300@mail.symlynx.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 15:02:44 -0000

On 8/18/10 4:04 AM, Philipp Hancke wrote:
> Peter Saint-Andre wrote:
> [...]
>>> Mostly minor issues, but there
>>> is a serious inconsistency about the inclusion of the authorization
>>> identity between XEP 0178 section 6.2.8...
>>>
>>> XEP 0178 (s2s step 10) says that "Server1 SHOULD include an
>>> authorization identity [...]"
>>> whereas section 6.2.8. tells us not to include or accept an
>>> authorization identity on s2s streams:
>>> "MUST NOT attempt to negotiate an authorization identity" and
>>> "MUST NOT accept an authorization identity".
>>> Is there a strong to forbid the inclusion? If so, there needs to be a
>>> backward compability note, because servers do include one currently.
>>
>> On the plane to Maastricht recently I took the time to read XEP-0178
>> again and it needs to be significantly revised, in part to bring it into
>> line with 3920bis. I'll post about that to standards@xmpp.org in the
>> near future.
> 
> XEP 0178 will certainly benefit that (especially the improved
> terminology in TLS-CERTS).
> However, you can not change this issue there, since servers currently
> send and expect an authorization id.
> 
> Afaics, it was Matthias who wanted an authorization id:
> http://mail.jabber.org/pipermail/standards/2006-September/012344.html
> The argument is not compelling imo, but I think we're stuck with
> including one now, even if it meaningless.

IMHO that's not a good argument. This is our chance to delete or
deprecate things that are unused or meaningless, like the session
establishment command in RFC 3921. Now is the time to delete
authorization identities for s2s if they are meaningless (and I think
they are).

However, maybe we need an implementation note to the effect that some
existing implementations support and send authorization identities in
s2s authentication, but I think it is appropriate for us to actively
deprecate that behavior for the reasons already discussed on this list.

>>> Other issues (labelled T for typos, E for minor editoral nitpicks):
> 
> [...]
> +9 (or +1 on the 9 issues)
> 
>>> 6.2.4.:
>>> The example inside the parenthesis contains a criticial requirement.
>>> What about changing that to:
>>> If during prior TLS negotiation the initiating entity presented a
>>> certificate that is acceptable to the receiving entity for purposes
>>> of strong identity verification in accordance with local service
>>> policies (e.g. because said certificate is unexpired, unrevoked and is
>>> anchored to a root trusted by the receiving entity)
>>> and the receiving entity expects that the initiating entity will be able
>>> to authenticate and authorize as the identity provided in the
>>> certificate [or in the streams 'from' attribute???], then ...
>>
>> The existing sentence is horribly long. I suggest the following rewrite,
>> incorporating your suggestion (but taking it one step farther):
>>
>> ###
>>
>> 6.2.4.  Mechanism Offers
>>
>>     If the receiving entity considers TLS negotiation (Section 5) to be
>>     mandatory before authentication via a particular SASL mechanism will
>>     be acceptable, the receiving entity MUST NOT advertise that mechanism
>>     in its list of available SASL mechanisms before TLS negotiation has
>>     been completed.
>>
>>     The receiving entity MUST offer the SASL EXTERNAL mechanism if both
>>     of the following conditions hold:
> 
> s/MUST/SHOULD/ please. When you attempt to do DWD, you avoid offering
> EXTERNAL at that point.

Agreed, SHOULD is better here.

>>     1.  During TLS negotiation the initiating entity presented a
>>         certificate that is acceptable to the receiving entity for
>>         purposes of strong identity verification in accordance with local
>>         service policies (e.g., because said certificate is unexpired, is
>>         unrevoked, and is anchored to a root trusted by the receiving
>>         entity).
>>
>>     2.  The domain presented in or derived from the information in the
>>         certificate matches domainpart of the JID provided in the 'from'
>>         attribute of the initial stream header.
> 
> Not quite. Unfortunately, this needs to cover c2s and s2s, which
> complicates things.

Yes, I was thinking of s2s when I wrote the second condition.

> What you do in any case is to seek a match for the JID provided in the
> 'from' attribute in the list of presented identifiers.
> 
> For s2s, this process is the one described in the server-id-check draft
> with roles reversed, i.e. the receiving entity checks the server
> certificate provided by the initiating entity. 

I think the following text is much more complete:

   2.  The receiving entity expects that the initiating entity will be
       able to authenticate and authorize as the identity provided in
       the certificate; in the case of a server-to-server stream, the
       receiving entity might have such an expectation because a DNS
       domain name presented in the initiating entity's certificate
       matches the domain referenced in the 'from' attribute of the
       initial stream header, where the matching rules of [TLS-CERTS]
       apply; in the case of a client-to-server stream, the receiving
       entity might have such an expectation because the bare JID
       presented in the initiating entity's certificate matches a user
       account that is registered with the server or because other
       information contained in the initiating entity's certificate
       matches that of an entity that has permission to use the server
       for access to an XMPP network.

> Do you have a section (or
> short note) there that covers mutual authentication in server-to-server
> communication?

Not yet, because we've pretty much punted on mutual authentication
pending further implementation experience and discussion.

>>     However, the receiving entity MAY offer the SASL EXTERNAL mechanism
>>     under other circumstances, as well.
> 
> If the receiving entity can not offer the EXTERNAL mechanism but
> requires high security (i.e. there are no mechanisms left and it can not
> offer dialback), it should terminate the stream (<policy-violation/>?).

Hmm, I don't think that's right. My reading of RFC 3365 indicates that
"strong security" means authentication, confidentiality, and integrity.
There might be ways to enforce all three of those without the use of
SASL EXTERNAL. Are you thinking here only of s2s streams? Even there, a
SASL mechanism other than EXTERNAL might enable strong security (e.g.,
TLS with pre-shared keys or secure remote password).

> Unless that is already covered elsewhere.

It is not, because we've never had a detailed discussion about the
meaning of "strong security" -- and I don't know that we want to have
such a discussion now, because it might delay the publication of 3920bis
by several years. ;-)

>>     When the receiving entity offers the SASL EXTERNAL mechanism, it
>>     SHOULD prefer that mechanism so that the parties have the potential
>>     to negotiate mutual authentication.
> 
> I think that should be (s/it/initiating entity/):
> When the receiving entity offers the SASL EXTERNAL mechanism, the
> initiating entity SHOULD prefer ...

I think we mean that *both* entities should prefer EXTERNAL (i.e., the
receiving entity lists EXTERNAL first among the offered mechanisms and
the initiating entity tries EXTERNAL first). Thus I suggest this text:

   When the receiving entity offers the SASL EXTERNAL mechanism, the
   receiving entity SHOULD list the EXTERNAL mechanism first among its
   offered SASL mechanisms and the initiating entity SHOULD attempt SASL
   negotiation using the EXTERNAL mechanism first (this preference will
   tend to increase the likelihood that the parties can negotiate mutual
   authentication).

>>     Section 13.8 specifies SASL mechanisms that MUST be supported;
>>     naturally, other SASL mechanisms MAY be supported as well.
>>
>>        Informational Note: Best practices for the use of SASL in the
>>        context of XMPP are described in [XEP-0175] for the ANONYMOUS
>>        mechanism and in [XEP-0178] for the EXTERNAL mechanism.
>>
>> ###
> 
> +1
> 
>>> This mimicks the behaviour described in XEP 0178. However, there is a
>>> security consideration associated with that.
>>> The receiving entity has to make a guess about the identity that the
>>> initiating entity will attempt to authorize as during the next step,
>>> i.e. it seeks a match for the stream 'from' attribute in the presented
>>> identifiers similar to what is described in TLS-CERTS section 4.3 before
>>> offering EXTERNAL. No problem so far.
>>> Now the XEP 0178 strategy is not to offer EXTERNAL if there is no match.
>>> This means that dialback will be used as a fallback, which hides the
>>> problem of a wrong certificate.
>>
>> TLS + Dialback is underspecified, but I don't think it's the task of
>> 3920bis to specify it more fully; instead I think that XEP-0220 needs to
>> be updated to cover that case.
> 
> Dave promised to write something about that.

Super. It doesn't belong in 3920bis, though, so he's got time.

>> And see previous note about "authorization" in SASL EXTERNAL. I don't
>> think that concept applies to s2s streams.
> 
> [...]
> +4
> 
>>> Really-the-last-time?
>>
>> I hope so. :) Thanks again.
> 
> Oh, we could go on for years :-)

We already have. :)

BTW we'll have another opportunity to fix things if we decide to advance
from Proposed Standard to Draft Standard, so this is not your last
chance to ever make comments. However, I think that any future diffs
would be fairly small given all the work that's gone into 3920bis.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From Tory.Patnoe@webex.com  Wed Aug 18 08:16:10 2010
Return-Path: <Tory.Patnoe@webex.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9D6383A696F for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:16:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.532
X-Spam-Level: 
X-Spam-Status: No, score=-104.532 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, RCVD_NUMERIC_HELO=2.067,  USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Rb7VScN+W0Hs for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:16:09 -0700 (PDT)
Received: from gw1.webex.com (gw1.webex.com [64.68.122.208]) by core3.amsl.com (Postfix) with SMTP id 2E1BC3A6848 for <xmpp@ietf.org>; Wed, 18 Aug 2010 08:16:09 -0700 (PDT)
Received: from SRV-EXSC03.webex.local ([192.168.252.197]) by gw1.webex.com with Microsoft SMTPSVC(6.0.3790.4675);  Wed, 18 Aug 2010 08:16:44 -0700
Received: from 66.114.169.7 ([66.114.169.7]) by SRV-EXSC03.webex.local ([192.168.252.200]) via Exchange Front-End Server mailus.webex.com ([66.114.175.11]) with Microsoft Exchange Server HTTP-DAV ; Wed, 18 Aug 2010 15:15:59 +0000
User-Agent: Microsoft-Entourage/12.26.0.100708
Date: Wed, 18 Aug 2010 09:16:15 -0600
From: tpatnoe <tory.patnoe@webex.com>
To: Peter Saint-Andre <stpeter@stpeter.im>, <xmpp@ietf.org>
Message-ID: <C891555F.5073%tory.patnoe@webex.com>
Thread-Topic: [xmpp] 3921bis: subscription pre-approvals
Thread-Index: Acs+6Eyu2wYHvi/J6Ua8XDxGKULFcQ==
In-Reply-To: <4C6B5C2D.7040102@stpeter.im>
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
X-OriginalArrivalTime: 18 Aug 2010 15:16:44.0453 (UTC) FILETIME=[5E3C3550:01CB3EE8]
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 15:16:10 -0000

On 8/17/10 10:06 PM, "Peter Saint-Andre" <stpeter@stpeter.im> wrote:

> On 8/17/10 3:15 PM, Peter Saint-Andre wrote:
>> On 8/17/10 4:05 AM, Florian Zeitz wrote:
>>> On 17.08.2010 00:22, Peter Saint-Andre wrote:
>>>> On 8/13/10 6:53 AM, Kevin Smith wrote:
>>>>> On Fri, Aug 13, 2010 at 2:30 AM, Florian Zeitz <florob@babelmonkeys.de>
>>>>> wrote:
>>>>>> On 13.08.2010 00:09, Peter Saint-Andre wrote:
>>>>>>> On 8/11/10 4:51 PM, Peter Saint-Andre wrote:
>>>>>>>> On 8/11/10 3:52 PM, Peter Saint-Andre wrote:
>>>>>>>> 2. The really gnarly issue is that now the 'ask' attribute can have two
>>>>>>>> values: "subscribe" and "subscribed". What happens if the user has a
>>>>>>>> pending outbound subscription to the contact *and* the user has
>>>>>>>> pre-approved a subscription request from the contact? Do we follow the
>>>>>>>> HTML convention of a space-separated list, as shown below?
>>>>>>>> 
>>>>>>>>    US: <iq id='b89c5r7ib574'
>>>>>>>>            to='romeo@example.net/foo'
>>>>>>>>            type='set'>
>>>>>>>>          <query xmlns='jabber:iq:roster'>
>>>>>>>>            <item ask='subscribe subscribed'
>>>>>>>>                  ^^^^^^^^^^^^^^^^^^^^^^^^^^
>>>>>>>>                  jid='juliet@example.com'
>>>>>>>>                  subscription='none'/>
>>>>>>>>          </query>
>>>>>>>>        </iq>
>>>>>>>> 
>>>>>>>> That's possible, but ask='subscribe subscribed' does not match the
>>>>>>>> datatype currently defined in the schema for the 'jabber:iq:roster'
>>>>>>>> namespace:
>>>>>>>> 
>>>>>>>>          <xs:attribute name='ask' use='optional'>
>>>>>>>>            <xs:simpleType>
>>>>>>>>              <xs:restriction base='xs:NCName'>
>>>>>>>>                <xs:enumeration value='subscribe'/>
>>>>>>>>                <xs:enumeration value='subscribed'/>
>>>>>>>>              </xs:restriction>
>>>>>>>>            </xs:simpleType>
>>>>>>>>          </xs:attribute>
>>>>>>>> 
>>>>>>>> Furthermore, it seems that NCName is not a valid datatype for an
>>>>>>>> attribute in XML!
>>>>>>>> 
>>>>>>>> ###
>>>>>>>> 
>>>>>>>> 3.3.1 Attribute Types
>>>>>>>> 
>>>>>>>> XML attribute types are of three kinds: a string type, a set of
>>>>>>>> tokenized types, and enumerated types. The string type may take any
>>>>>>>> literal string as a value; the tokenized types are more constrained.
>>>>>>>> The
>>>>>>>> validity constraints noted in the grammar are applied after the
>>>>>>>> attribute value has been normalized as described in 3.3.3
>>>>>>>> Attribute-Value Normalization.
>>>>>>>> 
>>>>>>>> [54]         AttType        ::=  StringType | TokenizedType |
>>>>>>>> EnumeratedType
>>>>>>>> [55]         StringType     ::=  'CDATA'
>>>>>>>> [56]         TokenizedType  ::=  'ID' | 'IDREF' | 'IDREFS' | 'ENTITY' |
>>>>>>>>                             'ENTITIES' | 'NMTOKEN' | 'NMTOKENS'
>>>>>>>> 
>>>>>>>> ###
>>>>>>>> 
>>>>>>>> And it appears that an EnumeratedType needs to use NMTOKEN (although
>>>>>>>> there are examples from W3 XML Schema of xs:nonNegativeInteger and
>>>>>>>> xs:token):
>>>>>>>> 
>>>>>>>> ###
>>>>>>>> 
>>>>>>>> Validity constraint: Enumeration
>>>>>>>> 
>>>>>>>> Values of this type MUST match one of the Nmtoken tokens in the
>>>>>>>> declaration.
>>>>>>>> 
>>>>>>>> ###
>>>>>>>> 
>>>>>>>> We could define the datatype of the 'ask' attribute to be NMTOKENS
>>>>>>>> (similar to, say, the 'class' attribute in XHTML) and remove the
>>>>>>>> enumeration. That might be the least-worst solution to the
>>>>>>>> specification
>>>>>>>> challenge here.
>>>>>>> 
>>>>>>> I've made that change in my working copy.
>>>>>>> 
>>>>>> Maybe I'm just overlooking something, but doesn't this break parsing
>>>>>> that current clients are doing? And if so is this enough of an edge
>>>>>> case/unimportant enough that we are willing to accept that?
>>>>>> I tend to say yes to both, but mostly hope I'm just wrong ;)
>>>>> 
>>>>> Ah, ok, so the point was raised here, thanks Florian for getting there
>>>>> long before me :)
>>>>> 
>>>>> So, yes, this could be breaking the parsing of clients against 3921,
>>>>> which I *think* means we need to bump up to XMPP-1.1 (or 2.0 or
>>>>> whatever) for bis if we make the change in this way. I'm opposed to
>>>>> increasing the version number at the moment.
>>>> 
>>>> By "parsing", do you folks mean "validation"?
>>>> 
>>>> In 3921, the only defined value was ask='subscribe', as we can see in
>>>> Appendix B.5:
>>>> 
>>>>          <xs:attribute name='ask' use='optional'>
>>>>            <xs:simpleType>
>>>>              <xs:restriction base='xs:NCName'>
>>>>                <xs:enumeration value='subscribe'/>
>>>>              </xs:restriction>
>>>>            </xs:simpleType>
>>>>          </xs:attribute>
>>>> 
>>>> If in 3921bis we define an additional value ask='subscribed', does that
>>>> break existing clients? If so, why? It seems to me that a client would
>>>> simply ignore a value of 'subscribed' if it did not understand that
>>>> value. I ask because we've had 'subscribed' in 3921bis since -00 on June
>>>> 1, 2009 (in fact since draft-saintandre-rfc3921bis-04 on October 29, 2007):
>>>> 
>>>>          <xs:attribute name='ask' use='optional'>
>>>>            <xs:simpleType>
>>>>              <xs:restriction base='xs:NCName'>
>>>>                <xs:enumeration value='subscribe'/>
>>>>                <xs:enumeration value='subscribed'/>
>>>>              </xs:restriction>
>>>>            </xs:simpleType>
>>>>          </xs:attribute>
>>>> 
>>>> So, now that we've discovered the possibility of needing to communicate
>>>> both values simultaneously, we need to change the datatype from NCName
>>>> to NMTOKENS and thus allow at least the following three values:
>>>> 
>>>>    ask='subscribe' (3921-safe)
>>>>    ask='subscribed' (in 3921bis since -00, see above)
>>>>    ask='subscribe subscribed' (new)
>>>> 
>>>> What apsect of XML parsing breaks now that didn't break in 3921bis-00?
>>>> Please choose:
>>>> 
>>>> 1. Values not defined in 3921 ("subscribed" was OK, it seems, but
>>>> "subscribe subscribed" breaks things)
>>>> 
>>>> or:
>>>> 
>>>> 2. Datatype checking (NCName => NMTOKENS)
>>>> 
>>>> If you say that #1 breaks parsing then we've had a problem for almost 3
>>>> years, but it went undetected. If you say that #2 breaks parsing then
>>>> you are essentially claiming that clients are doing datatype validation
>>>> and I'd be curious to hear which clients are doing that.
>>>> 
>>> I think we (at least me) are indeed claiming #1 breaks parsing. And yes
>>> that has probably been a problem with "subscribed" since forever (My
>>> personal excuse is that, as mentioned before, I have never read 3921).
>>> I'd be surprised if datatype validation was happening too.
>>> 
>>>> Furthermore, if we claim that a new value for an attribute breaks
>>>> backward-compatibility then we can either:
>>>> 
>>>> 1. Rip out subscription pre-approvals
>>>> 
>>>> 2. Add a stream feature that enables the server to indicate support
>>>> 
>>>> The second approach would be fine with me, and is consistent with how we
>>>> handled roster versioning. And just as with roster versioning, I
>>>> disagree that this would require a version change from XMPP 1.0 to XMPP
>>>> 1.1, especially because the change is to an XMPP extension (iq:roster)
>>>> and not to core streaming semantics. If we'd had namespace versioning
>>>> since 1999 we might change from roster1 to roster2 at this point, but
>>>> that's water under the bridge. Handling this via stream features is the
>>>> best we can do, I think.
>>>> 
>>>> In any case this is not a hill for me to die on -- we added subscription
>>>> pre-approvals for feature-parity with other presence technologies (in
>>>> particular SIP) and I think it's nice-to-have, but it's not nearly as
>>>> important as roster versioning, which saves a lot of bandwidth in common
>>>> scenarios.
>>>> 
>>> 2nded. I think introducing a stream feature seems like a quite balanced
>>> way to do this.
>> 
>> That's the best I can think of. If no one has other suggestions, I'll
>> write some text for this approach and post it to the list in the next 24
>> hours or so. I think it will be quite similar to the text for roster
>> versioning.
> 
> I propose the following.
> 
> ###
> 
> 3.4.  Pre-Approving a Subscription Request
> 
>    If a user has not received a subscription request from a contact, the
>    user can "pre-approve" such a request so that it will be
>    automatically approved by the user's server.
> 
>    Support for subscription pre-approvals is OPTIONAL on the part of
>    clients and servers.  If a server supports subscription pre-
>    approvals, then it MUST advertise the following stream feature during
>    stream negotiation.
> 
>    <sub xmlns='urn:xmpp:features:pre-approval'/>
> 
>    The subscription pre-approval stream feature is merely informative
>    and therefore is never mandatory.
> 
> 3.4.1.  Client Generation of Subscription Pre-Approval
> 
>    If the server to which a client connects has advertised support for
>    subscription pre-approvals, the client MAY generate a subscription
>    pre-approval by sending a presence stanza of type "subscribed" to the
>    contact.
> 
>    UC: <presence id='pg81vx64'
>                  to='juliet@example.com'
>                  type='subscribed'/>
> 
>    If the server does not advertise support for subscription pre-
>    approvals, the client MUST NOT attempt to pre-approve subscription
>    requests from potential or actual contacts.
> 

With this new stream feature, are we also planning on using the new ask
states?

   ask='subscribe' (3921-safe)
   ask='subscribed' (in 3921bis since -00, see above)
   ask='subscribe subscribed' (new)

-- Tory


From stpeter@stpeter.im  Wed Aug 18 08:16:59 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 20ADA3A659B for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:16:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.669
X-Spam-Level: 
X-Spam-Status: No, score=-102.669 tagged_above=-999 required=5 tests=[AWL=-0.070, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dDTWNIctIld6 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:16:57 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id B4B173A6980 for <xmpp@ietf.org>; Wed, 18 Aug 2010 08:16:57 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 10CB740074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 09:19:16 -0600 (MDT)
Message-ID: <4C6BF98B.6070008@stpeter.im>
Date: Wed, 18 Aug 2010 09:17:31 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com> <4C6BF62F.20303@stpeter.im>
In-Reply-To: <4C6BF62F.20303@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 15:16:59 -0000

On 8/18/10 9:03 AM, Peter Saint-Andre wrote:
> On 8/18/10 4:04 AM, Philipp Hancke wrote:
>> Peter Saint-Andre wrote:
>> [...]
>>>> Mostly minor issues, but there
>>>> is a serious inconsistency about the inclusion of the authorization
>>>> identity between XEP 0178 section 6.2.8...
>>>>
>>>> XEP 0178 (s2s step 10) says that "Server1 SHOULD include an
>>>> authorization identity [...]"
>>>> whereas section 6.2.8. tells us not to include or accept an
>>>> authorization identity on s2s streams:
>>>> "MUST NOT attempt to negotiate an authorization identity" and
>>>> "MUST NOT accept an authorization identity".
>>>> Is there a strong to forbid the inclusion? If so, there needs to be a
>>>> backward compability note, because servers do include one currently.
>>>
>>> On the plane to Maastricht recently I took the time to read XEP-0178
>>> again and it needs to be significantly revised, in part to bring it into
>>> line with 3920bis. I'll post about that to standards@xmpp.org in the
>>> near future.
>>
>> XEP 0178 will certainly benefit that (especially the improved
>> terminology in TLS-CERTS).
>> However, you can not change this issue there, since servers currently
>> send and expect an authorization id.
>>
>> Afaics, it was Matthias who wanted an authorization id:
>> http://mail.jabber.org/pipermail/standards/2006-September/012344.html
>> The argument is not compelling imo, but I think we're stuck with
>> including one now, even if it meaningless.
> 
> IMHO that's not a good argument. This is our chance to delete or
> deprecate things that are unused or meaningless, like the session
> establishment command in RFC 3921. Now is the time to delete
> authorization identities for s2s if they are meaningless (and I think
> they are).
> 
> However, maybe we need an implementation note to the effect that some
> existing implementations support and send authorization identities in
> s2s authentication, but I think it is appropriate for us to actively
> deprecate that behavior for the reasons already discussed on this list.

Here is the complete text of Section 6.2.8 in my working copy, including
my suggestion for the interoperability note:

###

6.2.8.  Authorization Identity

   An authorization identity is an optional identity specified by the
   initiating entity, which is typically used by an administrator to
   perform some management task on behalf of another user.  If the
   initiating entity wishes to act on behalf of another entity and the
   selected SASL mechanism supports transmission of an authorization
   identity, the initiating entity MUST provide an authorization
   identity during SASL negotiation.  If the initiating entity does not
   wish to act on behalf of another entity, it MUST NOT provide an
   authorization identity.  As specified in [SASL], the initiating
   entity MUST NOT provide an authorization identity unless the
   authorization identity is different from the default authorization
   identity derived from the authentication identity.

   Authorization identities are allowed only for client-to-server
   streams.  Because a server-to-server stream is valid only for the
   particular domain pair authenticated during stream negotiation,
   authorization of any additional domains for the stream needs to be
   completed by means of protocol extensions above the core XMPP stream
   layer.  Therefore in the case of server-to-server communication the
   initiating server MUST NOT attempt to negotiate an authorization
   identity during SASL negotiation and the receiving server MUST NOT
   accept an authorization identity from the initiating server.

      Interoperability Note: RFC 3920 allowed the use of authorization
      identities for server-to-server streams, and some existing server
      implementations send and accept such authorization identities.

   In the case of client-to-server communication, the value of an
   authorization identity MUST be a bare JID of the form
   <localpart@domainpart> (i.e., localpart and domainpart).

      Informational Note: The authorization identity communicated during
      SASL negotiation is used to determine the canonical address for
      the initiating client according to the receiving server, as
      described under Section 4.2.6.

###

/psa

From stpeter@stpeter.im  Wed Aug 18 08:27:16 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0B8603A6857 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:27:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.667
X-Spam-Level: 
X-Spam-Status: No, score=-102.667 tagged_above=-999 required=5 tests=[AWL=-0.068, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LdBOv1q4Go9G for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:27:14 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 784143A67FA for <xmpp@ietf.org>; Wed, 18 Aug 2010 08:27:14 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 03CF840074; Wed, 18 Aug 2010 09:29:33 -0600 (MDT)
Message-ID: <4C6BFBF4.1070101@stpeter.im>
Date: Wed, 18 Aug 2010 09:27:48 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: tpatnoe <tory.patnoe@webex.com>
References: <C89143AB.505D%tory.patnoe@webex.com>
In-Reply-To: <C89143AB.505D%tory.patnoe@webex.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: xmpp@ietf.org
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 15:27:16 -0000

On 8/18/10 8:00 AM, tpatnoe wrote:

<snip/>

> With this new stream feature, are we also planning on using the new ask
> states?
> 
>    ask='subscribe' (3921-safe)
>    ask='subscribed' (in 3921bis since -00, see above)
>    ask='subscribe subscribed' (new)

Yes, advertising this stream feature means that you support all three of
those values for the 'ask' attribute. I'll add a sentence to make that
clear.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug 18 08:57:34 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AD1B73A6855 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:57:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.665
X-Spam-Level: 
X-Spam-Status: No, score=-102.665 tagged_above=-999 required=5 tests=[AWL=-0.066, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1jWA9pf60v2G for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 08:57:33 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 99B7C3A6848 for <xmpp@ietf.org>; Wed, 18 Aug 2010 08:57:33 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 0790940074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 09:59:52 -0600 (MDT)
Message-ID: <4C6C030E.2070503@stpeter.im>
Date: Wed, 18 Aug 2010 09:58:06 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C89143AB.505D%tory.patnoe@webex.com> <4C6BFBF4.1070101@stpeter.im>
In-Reply-To: <4C6BFBF4.1070101@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 15:57:34 -0000

On 8/18/10 9:27 AM, Peter Saint-Andre wrote:
> On 8/18/10 8:00 AM, tpatnoe wrote:
> 
> <snip/>
> 
>> With this new stream feature, are we also planning on using the new ask
>> states?
>>
>>    ask='subscribe' (3921-safe)
>>    ask='subscribed' (in 3921bis since -00, see above)
>>    ask='subscribe subscribed' (new)
> 
> Yes, advertising this stream feature means that you support all three of
> those values for the 'ask' attribute. I'll add a sentence to make that
> clear.

Sigh. I don't think a stream feature solves the problem.

If the server sends the stream feature, the client knows that it can
send a presence stanza of "subscribed" and the server will accept that
as a pre-approval.

However, the server doesn't know if the client will accept values of
"subscribed" and "subscribe subscribed" for the 'ask' attribute.

The only way to solve this is to use Service Discovery (XEP-0030)
because then the server can discover what the client supports.

There are two approaches to consider:

1. Specify subscription pre-approvals in 3921bis, which means that we
would need to introduce a normative dependency on XEP-0030.

2. Specify subscription pre-approvals in a XEP, which means that
everything about presence subscriptions except pre-approvals would
specified in 3921bis.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From fippo@mail.symlynx.com  Wed Aug 18 09:19:27 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D858A3A68D3 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 09:19:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UU+Zu96s--yY for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 09:19:26 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id 10B643A65A6 for <xmpp@ietf.org>; Wed, 18 Aug 2010 09:19:25 -0700 (PDT)
Received: from [192.168.178.24] (p548BFE9E.dip.t-dialin.net [84.139.254.158]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7IGJsmx002637 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Wed, 18 Aug 2010 18:19:56 +0200
Message-ID: <4C6C0828.5040407@mail.symlynx.com>
Date: Wed, 18 Aug 2010 18:19:52 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com> <4C6BF62F.20303@stpeter.im>
In-Reply-To: <4C6BF62F.20303@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 16:19:27 -0000

Peter Saint-Andre wrote:
> IMHO that's not a good argument. This is our chance to delete or
> deprecate things that are unused or meaningless, like the session
> establishment command in RFC 3921. Now is the time to delete
> authorization identities for s2s if they are meaningless (and I think
> they are).

We did not have any post-rfc3920 xep that strongly encouraged everyone 
to do session binding... but if you are going to spearhead this with 
jabber.org, I think we can "fix" that quite quickly.

> However, maybe we need an implementation note to the effect that some
> existing implementations support and send authorization identities in
> s2s authentication, but I think it is appropriate for us to actively
> deprecate that behavior for the reasons already discussed on this list.

It seems that I have missed those reasons :-/

A question about your proposed implementation note: what am I expected 
to do if I encounter a server that includes them?

[...]
>> For s2s, this process is the one described in the server-id-check draft
>> with roles reversed, i.e. the receiving entity checks the server
>> certificate provided by the initiating entity.
>
> I think the following text is much more complete:
>     2.  The receiving entity expects that the initiating entity will be

+1

>>>      However, the receiving entity MAY offer the SASL EXTERNAL mechanism
>>>      under other circumstances, as well.
>>
>> If the receiving entity can not offer the EXTERNAL mechanism but
>> requires high security (i.e. there are no mechanisms left and it can not
>> offer dialback), it should terminate the stream (<policy-violation/>?).
>
> Hmm, I don't think that's right. My reading of RFC 3365 indicates that
> "strong security" means authentication, confidentiality, and integrity.

Ooops. I did not mean to write "strong security"!

What about:
For server-to-server streams, if the receiving entity can not offer the 
EXTERNAL [or any other SASL] mechanism and weak identity verification as 
provided by Server Dialback is not sufficient, it should terminate the 
stream [and the underlying blabla] with a <policy-violation/> stream error.
?

> There might be ways to enforce all three of those without the use of
> SASL EXTERNAL. Are you thinking here only of s2s streams? Even there, a

I usually don't care about c2s :-)

> SASL mechanism other than EXTERNAL might enable strong security (e.g.,
> TLS with pre-shared keys or secure remote password).
>> Unless that is already covered elsewhere.
>
> It is not, because we've never had a detailed discussion about the
> meaning of "strong security" -- and I don't know that we want to have
> such a discussion now, because it might delay the publication of 3920bis
> by several years. ;-)

Nooooooo!

>>>      When the receiving entity offers the SASL EXTERNAL mechanism, it
>>>      SHOULD prefer that mechanism so that the parties have the potential
>>>      to negotiate mutual authentication.
>>
>> I think that should be (s/it/initiating entity/):
>> When the receiving entity offers the SASL EXTERNAL mechanism, the
>> initiating entity SHOULD prefer ...
>
> I think we mean that *both* entities should prefer EXTERNAL (i.e., the
> receiving entity lists EXTERNAL first among the offered mechanisms and
> the initiating entity tries EXTERNAL first). Thus I suggest this text:
>
>     When the receiving entity offers the SASL EXTERNAL mechanism, the
>     receiving entity SHOULD list the EXTERNAL mechanism first among its
>     offered SASL mechanisms and the initiating entity SHOULD attempt SASL
>     negotiation using the EXTERNAL mechanism first (this preference will
>     tend to increase the likelihood that the parties can negotiate mutual
>     authentication).

Ah, so as the receiving entity preferring EXTERNAL just means that I put 
it first in the list of mechanisms? But does it really matter to the 
client which should choose its preferred mechanism regardless of the 
position in the list? Anyway...

cheers

philipp

From florob@babelmonkeys.de  Wed Aug 18 09:23:51 2010
Return-Path: <florob@babelmonkeys.de>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B88E23A68CB for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 09:23:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.249
X-Spam-Level: 
X-Spam-Status: No, score=-2.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WGaUBghMlOqG for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 09:23:50 -0700 (PDT)
Received: from babelmonkeys.de (v64231.topnetworks.de [82.197.159.233]) by core3.amsl.com (Postfix) with ESMTP id B4BBB3A68D3 for <xmpp@ietf.org>; Wed, 18 Aug 2010 09:23:47 -0700 (PDT)
Received: from xdsl-87-79-175-77.netcologne.de ([87.79.175.77] helo=[192.168.234.167]) by babelmonkeys.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from <florob@babelmonkeys.de>) id 1OllR8-0007WM-Cd for xmpp@ietf.org; Wed, 18 Aug 2010 18:24:22 +0200
Message-ID: <4C6C0978.2080203@babelmonkeys.de>
Date: Wed, 18 Aug 2010 18:25:28 +0200
From: Florian Zeitz <florob@babelmonkeys.de>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Lanikai/3.1.2
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C89143AB.505D%tory.patnoe@webex.com> <4C6BFBF4.1070101@stpeter.im> <4C6C030E.2070503@stpeter.im>
In-Reply-To: <4C6C030E.2070503@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 16:23:51 -0000

On 18.08.2010 17:58, Peter Saint-Andre wrote:
> On 8/18/10 9:27 AM, Peter Saint-Andre wrote:
>> On 8/18/10 8:00 AM, tpatnoe wrote:
>>
>> <snip/>
>>
>>> With this new stream feature, are we also planning on using the new ask
>>> states?
>>>
>>>    ask='subscribe' (3921-safe)
>>>    ask='subscribed' (in 3921bis since -00, see above)
>>>    ask='subscribe subscribed' (new)
>>
>> Yes, advertising this stream feature means that you support all three of
>> those values for the 'ask' attribute. I'll add a sentence to make that
>> clear.
> 
> Sigh. I don't think a stream feature solves the problem.
> 
> If the server sends the stream feature, the client knows that it can
> send a presence stanza of "subscribed" and the server will accept that
> as a pre-approval.
> 
> However, the server doesn't know if the client will accept values of
> "subscribed" and "subscribe subscribed" for the 'ask' attribute.
> 
> The only way to solve this is to use Service Discovery (XEP-0030)
> because then the server can discover what the client supports.
> 
> There are two approaches to consider:
> 
> 1. Specify subscription pre-approvals in 3921bis, which means that we
> would need to introduce a normative dependency on XEP-0030.
> 
> 2. Specify subscription pre-approvals in a XEP, which means that
> everything about presence subscriptions except pre-approvals would
> specified in 3921bis.
> 
> Peter
> 
Spontaneously I'd suggested:
3. Make it a negotiateable (as opposed to informative) stream feature.
Only if the client negotiated support will the server send
ask="(subscribe )subscribed". That feature would also be strictly optional.

I'm not sure if that's really elegant though...

--
Florian Zeitz

From stpeter@stpeter.im  Wed Aug 18 09:39:49 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9466D3A6991 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 09:39:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.664
X-Spam-Level: 
X-Spam-Status: No, score=-102.664 tagged_above=-999 required=5 tests=[AWL=-0.065, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PuX0+MOcX8LP for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 09:39:44 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id BA7283A68EA for <xmpp@ietf.org>; Wed, 18 Aug 2010 09:39:43 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 5A80D40074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 10:42:03 -0600 (MDT)
Message-ID: <4C6C0CF1.4020004@stpeter.im>
Date: Wed, 18 Aug 2010 10:40:17 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C89143AB.505D%tory.patnoe@webex.com>	<4C6BFBF4.1070101@stpeter.im> <4C6C030E.2070503@stpeter.im> <4C6C0978.2080203@babelmonkeys.de>
In-Reply-To: <4C6C0978.2080203@babelmonkeys.de>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 16:39:50 -0000

On 8/18/10 10:25 AM, Florian Zeitz wrote:
> On 18.08.2010 17:58, Peter Saint-Andre wrote:
>> On 8/18/10 9:27 AM, Peter Saint-Andre wrote:
>>> On 8/18/10 8:00 AM, tpatnoe wrote:
>>>
>>> <snip/>
>>>
>>>> With this new stream feature, are we also planning on using the new ask
>>>> states?
>>>>
>>>>    ask='subscribe' (3921-safe)
>>>>    ask='subscribed' (in 3921bis since -00, see above)
>>>>    ask='subscribe subscribed' (new)
>>>
>>> Yes, advertising this stream feature means that you support all three of
>>> those values for the 'ask' attribute. I'll add a sentence to make that
>>> clear.
>>
>> Sigh. I don't think a stream feature solves the problem.
>>
>> If the server sends the stream feature, the client knows that it can
>> send a presence stanza of "subscribed" and the server will accept that
>> as a pre-approval.
>>
>> However, the server doesn't know if the client will accept values of
>> "subscribed" and "subscribe subscribed" for the 'ask' attribute.
>>
>> The only way to solve this is to use Service Discovery (XEP-0030)
>> because then the server can discover what the client supports.
>>
>> There are two approaches to consider:
>>
>> 1. Specify subscription pre-approvals in 3921bis, which means that we
>> would need to introduce a normative dependency on XEP-0030.
>>
>> 2. Specify subscription pre-approvals in a XEP, which means that
>> everything about presence subscriptions except pre-approvals would
>> specified in 3921bis.
>>
>> Peter
>>
> Spontaneously I'd suggested:
> 3. Make it a negotiateable (as opposed to informative) stream feature.
> Only if the client negotiated support will the server send
> ask="(subscribe )subscribed". That feature would also be strictly optional.

Yes, that is another approach. Sorry, I'm a bit under the weather so I'm
not thinking clearly today.

The benefit of a negotiable stream feature is that the client explicitly
opts in to receiving these enhanced roster items. The cost is another
round trip in the stream negotiation process.

And there is a fourth approach...

4. Include a special element or attribute in the roster get (since these
new values of the 'ask' attribute are included in roster items), such as:

   C: <iq from='romeo@example.net/home'
          id='ik3bsc14'
          to='romeo@example.net'
          type='get'>
        <query xmlns='jabber:iq:roster'
               preapprovals='true'
               ver='ver14'/>
      </iq>

That would still need to be combined with a stream feature.

> I'm not sure if that's really elegant though...

Elegance, shmelegance. :)

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug 18 10:46:20 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 77AA83A6782 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 10:46:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.662
X-Spam-Level: 
X-Spam-Status: No, score=-102.662 tagged_above=-999 required=5 tests=[AWL=-0.063, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YyeYWCQKRv3h for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 10:46:18 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 06E323A6844 for <xmpp@ietf.org>; Wed, 18 Aug 2010 10:46:18 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 5F79540074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 11:48:37 -0600 (MDT)
Message-ID: <4C6C1C8A.4060003@stpeter.im>
Date: Wed, 18 Aug 2010 11:46:50 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com>	<4C6BF62F.20303@stpeter.im> <4C6C0828.5040407@mail.symlynx.com>
In-Reply-To: <4C6C0828.5040407@mail.symlynx.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 17:46:20 -0000

On 8/18/10 10:19 AM, Philipp Hancke wrote:
> Peter Saint-Andre wrote:
>> IMHO that's not a good argument. This is our chance to delete or
>> deprecate things that are unused or meaningless, like the session
>> establishment command in RFC 3921. Now is the time to delete
>> authorization identities for s2s if they are meaningless (and I think
>> they are).
> 
> We did not have any post-rfc3920 xep that strongly encouraged everyone
> to do session binding... but if you are going to spearhead this with
> jabber.org, I think we can "fix" that quite quickly.
> 
>> However, maybe we need an implementation note to the effect that some
>> existing implementations support and send authorization identities in
>> s2s authentication, but I think it is appropriate for us to actively
>> deprecate that behavior for the reasons already discussed on this list.
> 
> It seems that I have missed those reasons :-/

IIRC the topic emerged in the thread starting here:

http://www.ietf.org/mail-archive/web/xmpp/current/msg00332.html

> A question about your proposed implementation note: what am I expected
> to do if I encounter a server that includes them?

If you don't accept authorization identities, then accept only the
authentication identity and close the stream with an <invalid-from/>
stream error if the initiating entity attempts to send stanzas for which
the domainpart of the JID in the 'from' address does not match the
hostname of the authentication identiy; see Section 8.1.2.2.

> [...]
>>> For s2s, this process is the one described in the server-id-check draft
>>> with roles reversed, i.e. the receiving entity checks the server
>>> certificate provided by the initiating entity.
>>
>> I think the following text is much more complete:
>>     2.  The receiving entity expects that the initiating entity will be
> 
> +1
> 
>>>>      However, the receiving entity MAY offer the SASL EXTERNAL
>>>> mechanism
>>>>      under other circumstances, as well.
>>>
>>> If the receiving entity can not offer the EXTERNAL mechanism but
>>> requires high security (i.e. there are no mechanisms left and it can not
>>> offer dialback), it should terminate the stream (<policy-violation/>?).
>>
>> Hmm, I don't think that's right. My reading of RFC 3365 indicates that
>> "strong security" means authentication, confidentiality, and integrity.
> 
> Ooops. I did not mean to write "strong security"!
> 
> What about:
> For server-to-server streams, if the receiving entity can not offer the
> EXTERNAL [or any other SASL] mechanism and weak identity verification as
> provided by Server Dialback is not sufficient, it should terminate the
> stream [and the underlying blabla] with a <policy-violation/> stream error.
> ?

Yes, I think that a note like that would be appropriate. The best place
I can find for it is Section 6.3.5 ("SASL Failure").

<snip/>

>>>>      When the receiving entity offers the SASL EXTERNAL mechanism, it
>>>>      SHOULD prefer that mechanism so that the parties have the
>>>> potential
>>>>      to negotiate mutual authentication.
>>>
>>> I think that should be (s/it/initiating entity/):
>>> When the receiving entity offers the SASL EXTERNAL mechanism, the
>>> initiating entity SHOULD prefer ...
>>
>> I think we mean that *both* entities should prefer EXTERNAL (i.e., the
>> receiving entity lists EXTERNAL first among the offered mechanisms and
>> the initiating entity tries EXTERNAL first). Thus I suggest this text:
>>
>>     When the receiving entity offers the SASL EXTERNAL mechanism, the
>>     receiving entity SHOULD list the EXTERNAL mechanism first among its
>>     offered SASL mechanisms and the initiating entity SHOULD attempt SASL
>>     negotiation using the EXTERNAL mechanism first (this preference will
>>     tend to increase the likelihood that the parties can negotiate mutual
>>     authentication).
> 
> Ah, so as the receiving entity preferring EXTERNAL just means that I put
> it first in the list of mechanisms? But does it really matter to the
> client which should choose its preferred mechanism regardless of the
> position in the list? Anyway...

Yes, the initiating entity has its own ordered list of SASL mechanisms.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug 18 10:56:58 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0C6953A6844 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 10:56:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.661
X-Spam-Level: 
X-Spam-Status: No, score=-102.661 tagged_above=-999 required=5 tests=[AWL=-0.062, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q-twH+6JIcfl for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 10:56:56 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id DCB483A6782 for <xmpp@ietf.org>; Wed, 18 Aug 2010 10:56:56 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id EA65040074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 11:59:16 -0600 (MDT)
Message-ID: <4C6C1F0A.3070904@stpeter.im>
Date: Wed, 18 Aug 2010 11:57:30 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com>	<4C6BF62F.20303@stpeter.im>	<4C6C0828.5040407@mail.symlynx.com> <4C6C1C8A.4060003@stpeter.im>
In-Reply-To: <4C6C1C8A.4060003@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 17:56:58 -0000

>>>>>      However, the receiving entity MAY offer the SASL EXTERNAL
>>>>> mechanism
>>>>>      under other circumstances, as well.
>>>>
>>>> If the receiving entity can not offer the EXTERNAL mechanism but
>>>> requires high security (i.e. there are no mechanisms left and it can not
>>>> offer dialback), it should terminate the stream (<policy-violation/>?).
>>>
>>> Hmm, I don't think that's right. My reading of RFC 3365 indicates that
>>> "strong security" means authentication, confidentiality, and integrity.
>>
>> Ooops. I did not mean to write "strong security"!
>>
>> What about:
>> For server-to-server streams, if the receiving entity can not offer the
>> EXTERNAL [or any other SASL] mechanism and weak identity verification as
>> provided by Server Dialback is not sufficient, it should terminate the
>> stream [and the underlying blabla] with a <policy-violation/> stream error.
>> ?
> 
> Yes, I think that a note like that would be appropriate. The best place
> I can find for it is Section 6.3.5 ("SASL Failure").

Proposed text for placement at the end of Section 6.3.5:

      Implementation Note: For server-to-server streams, if the
      receiving entity cannot offer the SASL EXTERNAL mechanism or any
      other SASL mechanism based on the security context established
      during TLS negotiation, the receiving entity MAY attempt to
      complete weak identity verification using the Server Dialback
      protocol [XEP-0220]; however, if according to local service
      policies weak identity verification is insufficient then the
      receiving entity SHOULD instead close the stream with a <policy-
      violation/> stream error.

From stpeter@stpeter.im  Wed Aug 18 13:21:05 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 3178F3A6AA8 for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 13:21:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.659
X-Spam-Level: 
X-Spam-Status: No, score=-102.659 tagged_above=-999 required=5 tests=[AWL=-0.060, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hbBYi9kgUaUC for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 13:21:04 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id EC5EF3A6A12 for <xmpp@ietf.org>; Wed, 18 Aug 2010 13:21:03 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id E1BD540074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 14:23:23 -0600 (MDT)
Message-ID: <4C6C40D0.4080304@stpeter.im>
Date: Wed, 18 Aug 2010 14:21:36 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C89143AB.505D%tory.patnoe@webex.com>	<4C6BFBF4.1070101@stpeter.im>	<4C6C030E.2070503@stpeter.im> <4C6C0978.2080203@babelmonkeys.de> <4C6C0CF1.4020004@stpeter.im>
In-Reply-To: <4C6C0CF1.4020004@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 20:21:05 -0000

On 8/18/10 10:40 AM, Peter Saint-Andre wrote:

> Elegance, shmelegance. :)

I chatted a bit more about this via IM with Tory Patnoe. Here's what we
concluded:

1. Subscription pre-approvals (via <presence type='subscribed'/>) do not
necessarily require the server to tell the client that a contact is
pre-approved. The client could just send the pre-approval and if the
server doesn't support pre-approvals then the server would send the
subscription request to the client just as it always does. It's a
relatively minor user inconvenience to receive the subscription request
even if the user thought the contact was pre-approved. (Naturally, we
could still define a stream feature that would inform the client that
subscription pre-approvals are supported on the server, so the client
can provide the appropriate user interface.)

2. If we feel that it's useful for the server to inform the client that
a contact is pre-approved whenever the client retrieves the roster, we
don't need to do that with ask='subscribed', we could do that with a new
attribute such as approved='true'. This would enable us to work around
the madness with changing the datatype of the 'ask' attribute and
defining new values for it.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Wed Aug 18 14:42:52 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 656393A698D for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 14:42:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.655
X-Spam-Level: 
X-Spam-Status: No, score=-102.655 tagged_above=-999 required=5 tests=[AWL=-0.056, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ni50esxSksXb for <xmpp@core3.amsl.com>; Wed, 18 Aug 2010 14:42:50 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id ABE073A6832 for <xmpp@ietf.org>; Wed, 18 Aug 2010 14:42:50 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 6CFE040074 for <xmpp@ietf.org>; Wed, 18 Aug 2010 15:45:11 -0600 (MDT)
Message-ID: <4C6C53FC.9030008@stpeter.im>
Date: Wed, 18 Aug 2010 15:43:24 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <C89143AB.505D%tory.patnoe@webex.com>	<4C6BFBF4.1070101@stpeter.im>	<4C6C030E.2070503@stpeter.im>	<4C6C0978.2080203@babelmonkeys.de> <4C6C0CF1.4020004@stpeter.im> <4C6C40D0.4080304@stpeter.im>
In-Reply-To: <4C6C40D0.4080304@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] 3921bis: subscription pre-approvals
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Aug 2010 21:42:52 -0000

On 8/18/10 2:21 PM, Peter Saint-Andre wrote:
> 
> I chatted a bit more about this via IM with Tory Patnoe. Here's what we
> concluded:
> 
> 1. Subscription pre-approvals (via <presence type='subscribed'/>) do not
> necessarily require the server to tell the client that a contact is
> pre-approved. The client could just send the pre-approval and if the
> server doesn't support pre-approvals then the server would send the
> subscription request to the client just as it always does. It's a
> relatively minor user inconvenience to receive the subscription request
> even if the user thought the contact was pre-approved. (Naturally, we
> could still define a stream feature that would inform the client that
> subscription pre-approvals are supported on the server, so the client
> can provide the appropriate user interface.)
> 
> 2. If we feel that it's useful for the server to inform the client that
> a contact is pre-approved whenever the client retrieves the roster, we
> don't need to do that with ask='subscribed', we could do that with a new
> attribute such as approved='true'. This would enable us to work around
> the madness with changing the datatype of the 'ask' attribute and
> defining new values for it.

I now have this specced out in my working copy and I think it works just
fine. I'm going to leave 24 hours for further discussion and then push
out version -12 of 3921bis so that our esteemed working group chairs can
issue a second WGLC while I'm offline for 10 days. :)

Peter

-- 
Peter Saint-Andre
https://stpeter.im/

From fippo@mail.symlynx.com  Thu Aug 19 00:39:44 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6F33A3A6843 for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 00:39:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x3WX1HKqsq9v for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 00:39:43 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id 5E3003A67E1 for <xmpp@ietf.org>; Thu, 19 Aug 2010 00:39:43 -0700 (PDT)
Received: from [192.168.178.24] (p548BFE40.dip.t-dialin.net [84.139.254.64]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7J7eAqO013895 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Thu, 19 Aug 2010 09:40:12 +0200
Message-ID: <4C6CDFDA.4040704@mail.symlynx.com>
Date: Thu, 19 Aug 2010 09:40:10 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com>	<4C6BF62F.20303@stpeter.im>	<4C6C0828.5040407@mail.symlynx.com> <4C6C1C8A.4060003@stpeter.im>
In-Reply-To: <4C6C1C8A.4060003@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 07:39:44 -0000

Peter Saint-Andre wrote:
[...]
>> A question about your proposed implementation note: what am I expected
>> to do if I encounter a server that includes them?
>
> If you don't accept authorization identities, then accept only the
> authentication identity and close the stream with an<invalid-from/>
> stream error if the initiating entity attempts to send stanzas for which
> the domainpart of the JID in the 'from' address does not match the
> hostname of the authentication identiy; see Section 8.1.2.2.

While that sounds reasonable it does not answer my question. Let me try 
again:

What if a server sends me an (from XEP 0178)
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='EXTERNAL'>
    Y29uZmVyZW5jZS5leGFtcGxlLm9yZwo=          (=conference.example.org)
</auth>
and the stream from attribute is set to "conference.example.org".

Does "MUST NOT accept" mean that I am supposed to terminate the stream 
by sending a SASL failure?

philipp

From dave@cridland.net  Thu Aug 19 00:52:57 2010
Return-Path: <dave@cridland.net>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 00E813A689C for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 00:52:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.5
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 tagged_above=-999 required=5 tests=[AWL=0.099, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7tovgT-ktiYR for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 00:52:56 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 82A583A6843 for <xmpp@ietf.org>; Thu, 19 Aug 2010 00:52:55 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id 3215111680A0; Thu, 19 Aug 2010 08:53:30 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hdnuz9K8ekk9; Thu, 19 Aug 2010 08:53:28 +0100 (BST)
Received: from puncture (puncture [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 88081116809E; Thu, 19 Aug 2010 08:53:28 +0100 (BST)
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com> <4C6A9F2D.5090400@mail.symlynx.com> <4C6B0C2B.4060205@stpeter.im> <4C6BB011.1050300@mail.symlynx.com> <4C6BF62F.20303@stpeter.im> <4C6C0828.5040407@mail.symlynx.com> <4C6C1C8A.4060003@stpeter.im> <4C6CDFDA.4040704@mail.symlynx.com>
In-Reply-To: <4C6CDFDA.4040704@mail.symlynx.com>
MIME-Version: 1.0
Message-Id: <2276.1282204408.559952@puncture>
Date: Thu, 19 Aug 2010 08:53:28 +0100
From: Dave Cridland <dave@cridland.net>
To: Philipp Hancke <fippo@mail.symlynx.com>, XMPP Working Group <xmpp@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 07:52:57 -0000

On Thu Aug 19 08:40:10 2010, Philipp Hancke wrote:
> Peter Saint-Andre wrote:
> [...]
>>> A question about your proposed implementation note: what am I  
>>> expected
>>> to do if I encounter a server that includes them?
>> 
>> If you don't accept authorization identities, then accept only the
>> authentication identity and close the stream with an<invalid-from/>
>> stream error if the initiating entity attempts to send stanzas for  
>> which
>> the domainpart of the JID in the 'from' address does not match the
>> hostname of the authentication identiy; see Section 8.1.2.2.
> 
> While that sounds reasonable it does not answer my question. Let me  
> try again:
> 
> What if a server sends me an (from XEP 0178)
> <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='EXTERNAL'>
>    Y29uZmVyZW5jZS5leGFtcGxlLm9yZwo=           
> (=conference.example.org)
> </auth>
> and the stream from attribute is set to "conference.example.org".
> 
> Does "MUST NOT accept" mean that I am supposed to terminate the  
> stream by sending a SASL failure?

I'm going to wade into this in a bit in full, but FWIW, M-Link always  
sends its domainname as both the stream's from and the authcid in  
EXTERNAL, exectly as this example.

It offers EXTERNAL if the stream's from matches the certificate, or -  
if the stream has no from - it's possible for a provided XMPP authcid  
to match the certificate.

In the latter case, if no default authcid could be extracted from the  
certificate, we actually require an authcid to be presented during  
the EXTERNAL exchange.

I have a long-standing argument with Kurt that providing an authcid  
does not inherently mean that the authcid MUST be distinct from the  
authzid used (Kurt disagrees).

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade

From dave@cridland.net  Thu Aug 19 01:05:59 2010
Return-Path: <dave@cridland.net>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1AF063A68C0 for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 01:05:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.501
X-Spam-Level: 
X-Spam-Status: No, score=-2.501 tagged_above=-999 required=5 tests=[AWL=0.098,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08vqkhODHOer for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 01:05:58 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 96EE83A68BF for <xmpp@ietf.org>; Thu, 19 Aug 2010 01:05:57 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id 2E080116809E; Thu, 19 Aug 2010 09:06:32 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x2MA78fo1JZH; Thu, 19 Aug 2010 09:06:30 +0100 (BST)
Received: from puncture (puncture [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id 06CC9116809F; Thu, 19 Aug 2010 09:06:30 +0100 (BST)
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com> <4C6A9F2D.5090400@mail.symlynx.com> <4C6B0C2B.4060205@stpeter.im> <4C6BB011.1050300@mail.symlynx.com> <4C6BF62F.20303@stpeter.im> <4C6C0828.5040407@mail.symlynx.com> <4C6C1C8A.4060003@stpeter.im>
In-Reply-To: <4C6C1C8A.4060003@stpeter.im>
MIME-Version: 1.0
Message-Id: <2276.1282205190.029896@puncture>
Date: Thu, 19 Aug 2010 09:06:30 +0100
From: Dave Cridland <dave@cridland.net>
To: Peter Saint-Andre <stpeter@stpeter.im>, XMPP Working Group <xmpp@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 08:05:59 -0000

On Wed Aug 18 18:46:50 2010, Peter Saint-Andre wrote:
> http://www.ietf.org/mail-archive/web/xmpp/current/msg00332.html

Just as a minor point on this, id-on-xmppaddr contains an  
authorization identifier, which should always be a jid in any  
mechanism.

The authcid in SASL EXTERNAL is "some vague property of the  
underlying stream" - typically mapping to an X.509 certificate  
presented by the client, although it could be something else entirely  
(like the server using the mere presence of TLS to ensure IP spoofing  
isn't realistic, and then using a static mapping of IP address to  
client). Note that there's no string form of the authcid at all in  
many of these cases.

Since a client doesn't *know* that'll be where the default authzid  
comes from (let alone which default authzid it might pick) not  
specifying the intended authzid seems like leaving a lot to good will  
and chance.

Dave.
-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade

From stpeter@stpeter.im  Thu Aug 19 08:56:43 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0F7403A695D for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 08:56:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.654
X-Spam-Level: 
X-Spam-Status: No, score=-102.654 tagged_above=-999 required=5 tests=[AWL=-0.055, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id urw0wJM-L2bW for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 08:56:41 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id C8EBB3A659B for <xmpp@ietf.org>; Thu, 19 Aug 2010 08:56:41 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 2A67740074 for <xmpp@ietf.org>; Thu, 19 Aug 2010 09:59:06 -0600 (MDT)
Message-ID: <4C6D545A.9020200@stpeter.im>
Date: Thu, 19 Aug 2010 09:57:14 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com> <4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com> <4C6BF62F.20303@stpeter.im>	<4C6C0828.5040407@mail.symlynx.com> <4C6C1C8A.4060003@stpeter.im>	<4C6CDFDA.4040704@mail.symlynx.com> <2276.1282204408.559952@puncture>
In-Reply-To: <2276.1282204408.559952@puncture>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 15:56:43 -0000

On 8/19/10 1:53 AM, Dave Cridland wrote:
> On Thu Aug 19 08:40:10 2010, Philipp Hancke wrote:
>> Peter Saint-Andre wrote:
>> [...]
>>>> A question about your proposed implementation note: what am I expected
>>>> to do if I encounter a server that includes them?
>>>
>>> If you don't accept authorization identities, then accept only the
>>> authentication identity and close the stream with an<invalid-from/>
>>> stream error if the initiating entity attempts to send stanzas for which
>>> the domainpart of the JID in the 'from' address does not match the
>>> hostname of the authentication identiy; see Section 8.1.2.2.
>>
>> While that sounds reasonable it does not answer my question. Let me
>> try again:
>>
>> What if a server sends me an (from XEP 0178)
>> <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='EXTERNAL'>
>>    Y29uZmVyZW5jZS5leGFtcGxlLm9yZwo=          (=conference.example.org)
>> </auth>
>> and the stream from attribute is set to "conference.example.org".
>>
>> Does "MUST NOT accept" mean that I am supposed to terminate the stream
>> by sending a SASL failure?

Thanks to Philipp for pushing on this issue.

> I'm going to wade into this in a bit in full, but FWIW, M-Link always
> sends its domainname as both the stream's from and the authcid in
> EXTERNAL, exectly as this example.
> 
> It offers EXTERNAL if the stream's from matches the certificate, or - if
> the stream has no from - it's possible for a provided XMPP authcid to
> match the certificate.

I was thinking about this a bit more last night and realized that there
is (at least!) one problem with forbidding the authorization identity:
if the presented identifier in the cert is a wildcard domain name such
as *.example.com, I think we'd need the authorization identity to "fill
in the blanks" (e.g., conference.example.com). Thus the text about "MUST
NOT send or accept an authorization identity" is misguided in that
respect at least.

Clearly we need better text on this point, which I'll try to write up
today (but I have a meeting right now so it will be delayed by a few hours).

> In the latter case, if no default authcid could be extracted from the
> certificate, we actually require an authcid to be presented during the
> EXTERNAL exchange.
> 
> I have a long-standing argument with Kurt that providing an authcid does
> not inherently mean that the authcid MUST be distinct from the authzid
> used (Kurt disagrees).

Is there any consensus on that matter in the SASL community?

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Thu Aug 19 14:22:37 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9481F3A67FA for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 14:22:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.652
X-Spam-Level: 
X-Spam-Status: No, score=-102.652 tagged_above=-999 required=5 tests=[AWL=-0.053, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aq87gqHb41Vq for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 14:22:33 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 64D043A6A55 for <xmpp@ietf.org>; Thu, 19 Aug 2010 14:22:32 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 908E040074 for <xmpp@ietf.org>; Thu, 19 Aug 2010 15:24:57 -0600 (MDT)
Message-ID: <4C6DA0B8.4090107@stpeter.im>
Date: Thu, 19 Aug 2010 15:23:04 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com>	<4C6BF62F.20303@stpeter.im>	<4C6C0828.5040407@mail.symlynx.com>	<4C6C1C8A.4060003@stpeter.im>	<4C6CDFDA.4040704@mail.symlynx.com>	<2276.1282204408.559952@puncture> <4C6D545A.9020200@stpeter.im>
In-Reply-To: <4C6D545A.9020200@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 21:22:37 -0000

Please review and comment.

On 8/19/10 9:57 AM, Peter Saint-Andre wrote:
> On 8/19/10 1:53 AM, Dave Cridland wrote:
>> On Thu Aug 19 08:40:10 2010, Philipp Hancke wrote:
>>> Peter Saint-Andre wrote:
>>> [...]
>>>>> A question about your proposed implementation note: what am I expected
>>>>> to do if I encounter a server that includes them?
>>>>
>>>> If you don't accept authorization identities, then accept only the
>>>> authentication identity and close the stream with an<invalid-from/>
>>>> stream error if the initiating entity attempts to send stanzas for which
>>>> the domainpart of the JID in the 'from' address does not match the
>>>> hostname of the authentication identiy; see Section 8.1.2.2.
>>>
>>> While that sounds reasonable it does not answer my question. Let me
>>> try again:
>>>
>>> What if a server sends me an (from XEP 0178)
>>> <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='EXTERNAL'>
>>>    Y29uZmVyZW5jZS5leGFtcGxlLm9yZwo=          (=conference.example.org)
>>> </auth>
>>> and the stream from attribute is set to "conference.example.org".
>>>
>>> Does "MUST NOT accept" mean that I am supposed to terminate the stream
>>> by sending a SASL failure?
> 
> Thanks to Philipp for pushing on this issue.
> 
>> I'm going to wade into this in a bit in full, but FWIW, M-Link always
>> sends its domainname as both the stream's from and the authcid in
>> EXTERNAL, exectly as this example.
>>
>> It offers EXTERNAL if the stream's from matches the certificate, or - if
>> the stream has no from - it's possible for a provided XMPP authcid to
>> match the certificate.
> 
> I was thinking about this a bit more last night and realized that there
> is (at least!) one problem with forbidding the authorization identity:
> if the presented identifier in the cert is a wildcard domain name such
> as *.example.com, I think we'd need the authorization identity to "fill
> in the blanks" (e.g., conference.example.com). Thus the text about "MUST
> NOT send or accept an authorization identity" is misguided in that
> respect at least.
> 
> Clearly we need better text on this point, which I'll try to write up
> today (but I have a meeting right now so it will be delayed by a few hours).

OK, I see two places that need to be adjusted. Here is what I now have
in my working copy.

###

4.2.6.  Determination of Addresses

   After the parties to an XML stream have completed the appropriate
   aspects of stream negotiation (typically SASL negotiation (Section 6)
   and, for client-to-server streams, resource binding (Section 7)) the
   receiving entity for a stream MUST determine the initiating entity's
   JID.

   For client-to-server communication, the client's bare JID
   (<localpart@domainpart>) MUST be the authorization identity (as
   defined by [SASL]), either (1) as directly communicated by the client
   during SASL negotiation (Section 6) or (2) as derived by the server
   from the authentication identity if no authorization identity was
   specified during SASL negotiation.  The resourcepart of the full JID
   (<localpart@domainpart/resource>) MUST be the resource negotiated by
   the client and server during resource binding (Section 7).  A client
   MUST NOT attempt to guess at its JID but instead MUST consider its
   JID to be whatever the server returns to it during resource binding.
   The server MUST ensure that the resulting JID (including localpart,
   domainpart, resourcepart, and separator characters) conforms to the
   canonical format for XMPP addresses defined in [XMPP-ADDR]; to meet
   this restriction, the server MAY replace the JID sent by the client
   with the canonicalized JID as determined by the server and
   communicate that JID to the client during resource binding.

   For server-to-server communication, the initiating server's JID
   (<domainpart>) MUST be the authorization identity (as defined by
   [SASL]), either (1) as directly communicated by the initiating server
   during SASL negotiation (Section 6) or (2) as derived by the
   receiving server from the authentication identity if no authorization
   identity was specified during SASL negotiation; in the absence of
   SASL negotiation, the receiving server MAY consider the authorization
   identity to be the 'from' address on the initial stream header
   received from the initiating entity or an identity negotiated within
   the relevant verification protocol (e.g., the 'from' attribute of the
   <result/> element in Server Dialback [XEP-0220]).

      Security Note: Because it is possible for a third party to tamper
      with information that is sent over the stream before a security
      layer such as TLS is successfully negotiated, it is advisable for
      the receiving server to treat any such unprotected information
      with caution.

###

6.2.8.  Authorization Identity

   An authorization identity is an optional identity specified by the
   initiating entity; in client-to-server streams it is typically used
   by an administrator to perform some management task on behalf of
   another user, whereas in server-to-server streams it is typically
   used to specify a particular application at a service (e.g., a multi-
   user chat server at conference.example.com that is hosted by the
   example.com XMPP service).  If the initiating entity wishes to act on
   behalf of another entity and the selected SASL mechanism supports
   transmission of an authorization identity, the initiating entity
   SHOULD provide an authorization identity during SASL negotiation.  If
   the initiating entity does not wish to act on behalf of another
   entity, it SHOULD NOT provide an authorization identity.

   In the case of client-to-server communication, the value of an
   authorization identity MUST be a bare JID (<localpart@domainpart>)
   and not a full JID (<localpart@domainpart/resourcepart>).

   In the case of server-to-server communication, the value of an
   authorization identity MUST be a domainpart only (<domainpart>).

   If the initiating entity provides an authorization identity during
   SASL negotiation, the receiving entity is responsible for verifying
   that the initiating entity is in fact allowed to assume the specified
   authorization identity; if not, the receiving entity MUST return an
   <invalid-authzid/> SASL error as described under Section 6.4.6.

###

>> In the latter case, if no default authcid could be extracted from the
>> certificate, we actually require an authcid to be presented during the
>> EXTERNAL exchange.

How does the initiating entity know that no default authorization
identity could be extracted from the certificate? Isn't that a matter of
local service policy at the receiving entity?

>> I have a long-standing argument with Kurt that providing an authcid does
>> not inherently mean that the authcid MUST be distinct from the authzid
>> used (Kurt disagrees).

RFC 4422 states:

   A non-empty authorization identity string indicates that the client
   wishes to act as the identity represented by the string.

I see no point in including an authorization identity if it's the same
as the authentication identity. However, that's a topic for the SASL
(now KITTEN) WG at the IETF and in any case I have removed the following
sentence from 3920bis because upon review of RFC 4422 I do not find a
firm basis for its claim:

   As specified in [SASL], the initiating
   entity MUST NOT provide an authorization identity unless the
   authorization identity is different from the default authorization
   identity derived from the authentication identity.

/psa


From rbarnes@bbn.com  Thu Aug 19 14:31:08 2010
Return-Path: <rbarnes@bbn.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D052A3A68CD for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 14:31:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.598
X-Spam-Level: 
X-Spam-Status: No, score=-102.598 tagged_above=-999 required=5 tests=[AWL=-0.000, BAYES_00=-2.599, HTML_MESSAGE=0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SSCoZFgvfQc1 for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 14:31:05 -0700 (PDT)
Received: from smtp.bbn.com (smtp.bbn.com [128.33.1.81]) by core3.amsl.com (Postfix) with ESMTP id 7D3913A6A6B for <xmpp@ietf.org>; Thu, 19 Aug 2010 14:31:05 -0700 (PDT)
Received: from [192.1.255.185] (port=54801 helo=col-dhcp-192-1-255-185.bbn.com) by smtp.bbn.com with esmtp (Exim 4.71 (FreeBSD)) (envelope-from <rbarnes@bbn.com>) id 1OmCi3-000JnR-Sx for xmpp@ietf.org; Thu, 19 Aug 2010 17:31:40 -0400
Message-Id: <C1D62EB7-CF6B-4D8B-8435-91B57E87B04B@bbn.com>
From: "Richard L. Barnes" <rbarnes@bbn.com>
To: xmpp@ietf.org
Content-Type: multipart/alternative; boundary=Apple-Mail-24--996378601
Mime-Version: 1.0 (Apple Message framework v936)
Date: Thu, 19 Aug 2010 17:31:39 -0400
References: <20100819212645.B8F053A67FB@core3.amsl.com>
X-Mailer: Apple Mail (2.936)
Subject: [xmpp] Fwd: New Version Notification for draft-barnes-xmpp-dna-00
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 21:31:08 -0000

--Apple-Mail-24--996378601
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Hey all,

After the DNA presentation I did at the last IETF, I promised to write  
an I-D describing the different options and their trade-offs.  The  
document is now available on the IETF website:
<http://www.ietf.org/id/draft-barnes-xmpp-dna-00.txt>

The document lays out a general process for authenticating inter- 
domain delegations, and explores some options for how the specifics  
can work.

Based on the trade-offs discussed in the document, my current favorite  
solution is to take a pure DNS approach, signing SRV records with  
DNSSEC and embedding DNSSEC trust anchors in CERT records alongside  
the SRV records (Corresponding to sections 4.1 and 5.2 in the  
document).  This is basically the same system I described in  
Maastricht, with the modification that instead of being passed in the  
XMPP channel, the certificates are provisioned in the DNS so that the  
client can look them up and validate the delegation before connecting.

Comments welcome,
--Richard



Begin forwarded message:

> From: IETF I-D Submission Tool <idsubmission@ietf.org>
> Date: August 19, 2010 5:26:45 PM EDT
> To: rbarnes@bbn.com
> Subject: New Version Notification for draft-barnes-xmpp-dna-00
>
>
> A new version of I-D, draft-barnes-xmpp-dna-00.txt has been  
> successfully submitted by Richard Barnes and posted to the IETF  
> repository.
>
> Filename:	 draft-barnes-xmpp-dna
> Revision:	 00
> Title:		 Domain Name Assertions
> Creation_date:	 2010-08-19
> WG ID:		 Independent Submission
> Number_of_pages: 13
>
> Abstract:
> Many Internet applications allow service delegation via the DNS.
> However, in the absence of DNSSEC, these delegations are
> unauthenticated, so clients have to authenticate the delegate as if
> he were the original service.  This situation causes several
> operational problems.  This document describes a mechanism for
> clients to discover and validate information that authenticates DNS-
> based service delegations, without relying on the global deployment
> of DNSSEC.
>
>
>
> The IETF Secretariat.
>
>


--Apple-Mail-24--996378601
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Hey =
all,<div><br></div><div>After the DNA presentation I did at the last =
IETF, I promised to write an I-D describing the different options and =
their trade-offs. &nbsp;The document is now available on the IETF =
website:</div><div>&lt;<a =
href=3D"http://www.ietf.org/id/draft-barnes-xmpp-dna-00.txt">http://www.ie=
tf.org/id/draft-barnes-xmpp-dna-00.txt</a>&gt;</div><div><br></div><div>Th=
e document lays out a general process for authenticating inter-domain =
delegations, and explores some options for how the specifics can =
work.</div><div><br></div><div>Based on the trade-offs discussed in the =
document, my current favorite solution is to take a pure DNS approach, =
signing SRV records with DNSSEC and embedding DNSSEC trust anchors in =
CERT records alongside the SRV records (Corresponding to sections 4.1 =
and 5.2 in the document). &nbsp;This is basically the same system I =
described in Maastricht, with the modification that instead of being =
passed in the XMPP channel, the certificates are provisioned in the DNS =
so that the client can look them up and validate the delegation before =
connecting.</div><div><br></div><div>Comments =
welcome,</div><div>--Richard</div><div><br></div><div><br><div><br><div>Be=
gin forwarded message:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font face=3D"Helvetica" size=3D"3" color=3D"#000000" =
style=3D"font: 12.0px Helvetica; color: #000000"><b>From: =
</b></font><font face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px =
Helvetica">IETF I-D Submission Tool &lt;<a =
href=3D"mailto:idsubmission@ietf.org">idsubmission@ietf.org</a>&gt;</font>=
</div><div style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: =
0px; margin-left: 0px; "><font face=3D"Helvetica" size=3D"3" =
color=3D"#000000" style=3D"font: 12.0px Helvetica; color: =
#000000"><b>Date: </b></font><font face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica">August 19, 2010 5:26:45 PM =
EDT</font></div><div style=3D"margin-top: 0px; margin-right: 0px; =
margin-bottom: 0px; margin-left: 0px; "><font face=3D"Helvetica" =
size=3D"3" color=3D"#000000" style=3D"font: 12.0px Helvetica; color: =
#000000"><b>To: </b></font><font face=3D"Helvetica" size=3D"3" =
style=3D"font: 12.0px Helvetica"><a =
href=3D"mailto:rbarnes@bbn.com">rbarnes@bbn.com</a></font></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; "><font face=3D"Helvetica" size=3D"3" color=3D"#000000" =
style=3D"font: 12.0px Helvetica; color: #000000"><b>Subject: =
</b></font><font face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px =
Helvetica"><b>New Version Notification for draft-barnes-xmpp-dna-00<span =
class=3D"Apple-converted-space">&nbsp;</span></b></font></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; min-height: 14px; "><br></div> </div><div><br>A new =
version of I-D, draft-barnes-xmpp-dna-00.txt has been successfully =
submitted by Richard Barnes and posted to the IETF =
repository.<br><br>Filename:<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span> =
draft-barnes-xmpp-dna<br>Revision:<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span> 00<br>Title:<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span> Domain =
Name Assertions<br>Creation_date:<span class=3D"Apple-tab-span" =
style=3D"white-space:pre">	</span> 2010-08-19<br>WG ID:<span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span> =
Independent Submission<br>Number_of_pages: 13<br><br>Abstract:<br>Many =
Internet applications allow service delegation via the DNS.<br>However, =
in the absence of DNSSEC, these delegations are<br>unauthenticated, so =
clients have to authenticate the delegate as if<br>he were the original =
service. &nbsp;This situation causes several<br>operational problems. =
&nbsp;This document describes a mechanism for<br>clients to discover and =
validate information that authenticates DNS-<br>based service =
delegations, without relying on the global deployment<br>of =
DNSSEC.<br><br><br><br>The IETF =
Secretariat.<br><br><br></div></blockquote></div><br></div></body></html>=

--Apple-Mail-24--996378601--

From dave@cridland.net  Thu Aug 19 14:35:21 2010
Return-Path: <dave@cridland.net>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 581453A6898 for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 14:35:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.503
X-Spam-Level: 
X-Spam-Status: No, score=-2.503 tagged_above=-999 required=5 tests=[AWL=0.096,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dwInkHW-illm for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 14:35:19 -0700 (PDT)
Received: from peirce.dave.cridland.net (peirce.dave.cridland.net [217.155.137.61]) by core3.amsl.com (Postfix) with ESMTP id 976393A69FE for <xmpp@ietf.org>; Thu, 19 Aug 2010 14:35:18 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by peirce.dave.cridland.net (Postfix) with ESMTP id B2E05116809F; Thu, 19 Aug 2010 22:35:52 +0100 (BST)
X-Virus-Scanned: Debian amavisd-new at peirce.dave.cridland.net
Received: from peirce.dave.cridland.net ([127.0.0.1]) by localhost (localhost.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nD4tgAjbnGar; Thu, 19 Aug 2010 22:35:49 +0100 (BST)
Received: from puncture (puncture [217.155.137.60]) by peirce.dave.cridland.net (Postfix) with ESMTPA id DB814116809E; Thu, 19 Aug 2010 22:35:49 +0100 (BST)
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com> <4C6A9F2D.5090400@mail.symlynx.com> <4C6B0C2B.4060205@stpeter.im> <4C6BB011.1050300@mail.symlynx.com> <4C6BF62F.20303@stpeter.im> <4C6C0828.5040407@mail.symlynx.com> <4C6C1C8A.4060003@stpeter.im> <4C6CDFDA.4040704@mail.symlynx.com> <2276.1282204408.559952@puncture> <4C6D545A.9020200@stpeter.im> <4C6DA0B8.4090107@stpeter.im>
In-Reply-To: <4C6DA0B8.4090107@stpeter.im>
MIME-Version: 1.0
Message-Id: <21036.1282253749.894538@puncture>
Date: Thu, 19 Aug 2010 22:35:49 +0100
From: Dave Cridland <dave@cridland.net>
To: Peter Saint-Andre <stpeter@stpeter.im>, XMPP Working Group <xmpp@ietf.org>
Content-Type: text/plain; delsp="yes"; charset="us-ascii"; format="flowed"
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 21:35:21 -0000

On Thu Aug 19 22:23:04 2010, Peter Saint-Andre wrote:
> Please review and comment.
> 
> 
I like all this at a quick skim.


> On 8/19/10 9:57 AM, Peter Saint-Andre wrote:
> > On 8/19/10 1:53 AM, Dave Cridland wrote:
> >> On Thu Aug 19 08:40:10 2010, Philipp Hancke wrote:
> >>> Peter Saint-Andre wrote:
> >>> [...]
> >>>>> A question about your proposed implementation note: what am I  
> expected
> >>>>> to do if I encounter a server that includes them?
> >>>>
> >>>> If you don't accept authorization identities, then accept only  
> the
> >>>> authentication identity and close the stream with  
> an<invalid-from/>
> >>>> stream error if the initiating entity attempts to send stanzas  
> for which
> >>>> the domainpart of the JID in the 'from' address does not match  
> the
> >>>> hostname of the authentication identiy; see Section 8.1.2.2.
> >>>
> >>> While that sounds reasonable it does not answer my question.  
> Let me
> >>> try again:
> >>>
> >>> What if a server sends me an (from XEP 0178)
> >>> <auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl'  
> mechanism='EXTERNAL'>
> >>>    Y29uZmVyZW5jZS5leGFtcGxlLm9yZwo=           
> (=conference.example.org)
> >>> </auth>
> >>> and the stream from attribute is set to  
> "conference.example.org".
> >>>
> >>> Does "MUST NOT accept" mean that I am supposed to terminate the  
> stream
> >>> by sending a SASL failure?
> >
> > Thanks to Philipp for pushing on this issue.
> >
> >> I'm going to wade into this in a bit in full, but FWIW, M-Link  
> always
> >> sends its domainname as both the stream's from and the authcid in
> >> EXTERNAL, exectly as this example.
> >>
> >> It offers EXTERNAL if the stream's from matches the certificate,  
> or - if
> >> the stream has no from - it's possible for a provided XMPP  
> authcid to
> >> match the certificate.
> >
> > I was thinking about this a bit more last night and realized that  
> there
> > is (at least!) one problem with forbidding the authorization  
> identity:
> > if the presented identifier in the cert is a wildcard domain name  
> such
> > as *.example.com, I think we'd need the authorization identity to  
> "fill
> > in the blanks" (e.g., conference.example.com). Thus the text  
> about "MUST
> > NOT send or accept an authorization identity" is misguided in that
> > respect at least.
> >
> > Clearly we need better text on this point, which I'll try to  
> write up
> > today (but I have a meeting right now so it will be delayed by a  
> few hours).
> 
> OK, I see two places that need to be adjusted. Here is what I now  
> have
> in my working copy.
> 
> ###
> 
> 4.2.6.  Determination of Addresses
> 
>    After the parties to an XML stream have completed the appropriate
>    aspects of stream negotiation (typically SASL negotiation  
> (Section 6)
>    and, for client-to-server streams, resource binding (Section 7))  
> the
>    receiving entity for a stream MUST determine the initiating  
> entity's
>    JID.
> 
>    For client-to-server communication, the client's bare JID
>    (<localpart@domainpart>) MUST be the authorization identity (as
>    defined by [SASL]), either (1) as directly communicated by the  
> client
>    during SASL negotiation (Section 6) or (2) as derived by the  
> server
>    from the authentication identity if no authorization identity was
>    specified during SASL negotiation.  The resourcepart of the full  
> JID
>    (<localpart@domainpart/resource>) MUST be the resource  
> negotiated by
>    the client and server during resource binding (Section 7).  A  
> client
>    MUST NOT attempt to guess at its JID but instead MUST consider  
> its
>    JID to be whatever the server returns to it during resource  
> binding.
>    The server MUST ensure that the resulting JID (including  
> localpart,
>    domainpart, resourcepart, and separator characters) conforms to  
> the
>    canonical format for XMPP addresses defined in [XMPP-ADDR]; to  
> meet
>    this restriction, the server MAY replace the JID sent by the  
> client
>    with the canonicalized JID as determined by the server and
>    communicate that JID to the client during resource binding.
> 
>    For server-to-server communication, the initiating server's JID
>    (<domainpart>) MUST be the authorization identity (as defined by
>    [SASL]), either (1) as directly communicated by the initiating  
> server
>    during SASL negotiation (Section 6) or (2) as derived by the
>    receiving server from the authentication identity if no  
> authorization
>    identity was specified during SASL negotiation; in the absence of
>    SASL negotiation, the receiving server MAY consider the  
> authorization
>    identity to be the 'from' address on the initial stream header
>    received from the initiating entity or an identity negotiated  
> within
>    the relevant verification protocol (e.g., the 'from' attribute  
> of the
>    <result/> element in Server Dialback [XEP-0220]).
> 
>       Security Note: Because it is possible for a third party to  
> tamper
>       with information that is sent over the stream before a  
> security
>       layer such as TLS is successfully negotiated, it is advisable  
> for
>       the receiving server to treat any such unprotected information
>       with caution.
> 
> ###
> 
> 6.2.8.  Authorization Identity
> 
>    An authorization identity is an optional identity specified by  
> the
>    initiating entity; in client-to-server streams it is typically  
> used
>    by an administrator to perform some management task on behalf of
>    another user, whereas in server-to-server streams it is typically
>    used to specify a particular application at a service (e.g., a  
> multi-
>    user chat server at conference.example.com that is hosted by the
>    example.com XMPP service).  If the initiating entity wishes to  
> act on
>    behalf of another entity and the selected SASL mechanism supports
>    transmission of an authorization identity, the initiating entity
>    SHOULD provide an authorization identity during SASL  
> negotiation.  If
>    the initiating entity does not wish to act on behalf of another
>    entity, it SHOULD NOT provide an authorization identity.
> 
>    In the case of client-to-server communication, the value of an
>    authorization identity MUST be a bare JID  
> (<localpart@domainpart>)
>    and not a full JID (<localpart@domainpart/resourcepart>).
> 
>    In the case of server-to-server communication, the value of an
>    authorization identity MUST be a domainpart only (<domainpart>).
> 
>    If the initiating entity provides an authorization identity  
> during
>    SASL negotiation, the receiving entity is responsible for  
> verifying
>    that the initiating entity is in fact allowed to assume the  
> specified
>    authorization identity; if not, the receiving entity MUST return  
> an
>    <invalid-authzid/> SASL error as described under Section 6.4.6.
> 
> ###
> 
> >> In the latter case, if no default authcid could be extracted  
> from the
> >> certificate, we actually require an authcid to be presented  
> during the
> >> EXTERNAL exchange.
> 
> How does the initiating entity know that no default authorization
> identity could be extracted from the certificate? Isn't that a  
> matter of
> local service policy at the receiving entity?
> 
> >> I have a long-standing argument with Kurt that providing an  
> authcid does
> >> not inherently mean that the authcid MUST be distinct from the  
> authzid
> >> used (Kurt disagrees).
> 
> RFC 4422 states:
> 
>    A non-empty authorization identity string indicates that the  
> client
>    wishes to act as the identity represented by the string.
> 
> I see no point in including an authorization identity if it's the  
> same
> as the authentication identity. However, that's a topic for the SASL
> (now KITTEN) WG at the IETF and in any case I have removed the  
> following
> sentence from 3920bis because upon review of RFC 4422 I do not find  
> a
> firm basis for its claim:
> 
>    As specified in [SASL], the initiating
>    entity MUST NOT provide an authorization identity unless the
>    authorization identity is different from the default  
> authorization
>    identity derived from the authentication identity.
> 
> /psa
> 
> _______________________________________________
> xmpp mailing list
> xmpp@ietf.org
> https://www.ietf.org/mailman/listinfo/xmpp

-- 
Dave Cridland - mailto:dave@cridland.net - xmpp:dwd@dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade

From root@core3.amsl.com  Thu Aug 19 15:45:01 2010
Return-Path: <root@core3.amsl.com>
X-Original-To: xmpp@ietf.org
Delivered-To: xmpp@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id C7E413A6899; Thu, 19 Aug 2010 15:45:01 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100819224501.C7E413A6899@core3.amsl.com>
Date: Thu, 19 Aug 2010 15:45:01 -0700 (PDT)
Cc: xmpp@ietf.org
Subject: [xmpp] I-D Action:draft-ietf-xmpp-3921bis-12.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 22:45:01 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.


	Title           : Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
	Author(s)       : P. Saint-Andre
	Filename        : draft-ietf-xmpp-3921bis-12.txt
	Pages           : 120
	Date            : 2010-08-19

This document defines extensions to core features of the Extensible
Messaging and Presence Protocol (XMPP) that provide basic instant
messaging (IM) and presence functionality in conformance with RFC
2779.  This document obsoletes RFC 3921.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3921bis-12.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-ietf-xmpp-3921bis-12.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-08-19153009.I-D@ietf.org>


--NextPart--

From stpeter@stpeter.im  Thu Aug 19 15:50:13 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 83ECF3A6993 for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 15:50:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.651
X-Spam-Level: 
X-Spam-Status: No, score=-102.651 tagged_above=-999 required=5 tests=[AWL=-0.052, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id On+YpL6Nvbnj for <xmpp@core3.amsl.com>; Thu, 19 Aug 2010 15:50:12 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 9E8293A691A for <xmpp@ietf.org>; Thu, 19 Aug 2010 15:50:12 -0700 (PDT)
Received: from leavealone.cisco.com (72-163-0-129.cisco.com [72.163.0.129]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 8FA9C40074 for <xmpp@ietf.org>; Thu, 19 Aug 2010 16:52:38 -0600 (MDT)
Message-ID: <4C6DB544.90608@stpeter.im>
Date: Thu, 19 Aug 2010 16:50:44 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <20100819224501.C7E413A6899@core3.amsl.com>
In-Reply-To: <20100819224501.C7E413A6899@core3.amsl.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] I-D Action:draft-ietf-xmpp-3921bis-12.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 19 Aug 2010 22:50:13 -0000

Diffs are here:

http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3921bis-12.txt

IMHO this version is ready for a second WGLC.

/psa

On 8/19/10 4:45 PM, Internet-Drafts@ietf.org wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.
> 
> 
> 	Title           : Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
> 	Author(s)       : P. Saint-Andre
> 	Filename        : draft-ietf-xmpp-3921bis-12.txt
> 	Pages           : 120
> 	Date            : 2010-08-19
> 
> This document defines extensions to core features of the Extensible
> Messaging and Presence Protocol (XMPP) that provide basic instant
> messaging (IM) and presence functionality in conformance with RFC
> 2779.  This document obsoletes RFC 3921.
> 
> A URL for this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3921bis-12.txt

From stpeter@stpeter.im  Fri Aug 20 10:24:12 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4E3F13A6AE1 for <xmpp@core3.amsl.com>; Fri, 20 Aug 2010 10:24:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.494
X-Spam-Level: 
X-Spam-Status: No, score=-102.494 tagged_above=-999 required=5 tests=[AWL=0.105, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7+fdOU8MptXe for <xmpp@core3.amsl.com>; Fri, 20 Aug 2010 10:24:11 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 8D1AD3A6ADD for <xmpp@ietf.org>; Fri, 20 Aug 2010 10:24:11 -0700 (PDT)
Received: from squire.local (dsl-140-248.dynamic-dsl.frii.net [216.17.140.248]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 5F29B40074; Fri, 20 Aug 2010 11:26:41 -0600 (MDT)
Message-ID: <4C6EBA5C.8040409@stpeter.im>
Date: Fri, 20 Aug 2010 11:24:44 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Dave Cridland <dave@cridland.net>
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com> <4C6A9F2D.5090400@mail.symlynx.com> <4C6B0C2B.4060205@stpeter.im> <4C6BB011.1050300@mail.symlynx.com> <4C6BF62F.20303@stpeter.im> <4C6C0828.5040407@mail.symlynx.com> <4C6C1C8A.4060003@stpeter.im> <4C6CDFDA.4040704@mail.symlynx.com> <2276.1282204408.559952@puncture> <4C6D545A.9020200@stpeter.im> <4C6DA0B8.4090107@stpeter.im> <21036.1282253749.894538@puncture>
In-Reply-To: <21036.1282253749.894538@puncture>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: XMPP Working Group <xmpp@ietf.org>
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 Aug 2010 17:24:12 -0000

On 8/19/10 3:35 PM, Dave Cridland wrote:
> On Thu Aug 19 22:23:04 2010, Peter Saint-Andre wrote:
>> Please review and comment.
>>
>>
> I like all this at a quick skim.

Thanks, Dave. I'll wait until early next week before submitting -13, so
that folks have time to review this text before we move ahead to IETF
Last Call.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From ben@nostrum.com  Mon Aug 23 08:45:47 2010
Return-Path: <ben@nostrum.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 16BAB3A6817 for <xmpp@core3.amsl.com>; Mon, 23 Aug 2010 08:45:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.6
X-Spam-Level: 
X-Spam-Status: No, score=-102.6 tagged_above=-999 required=5 tests=[AWL=0.000,  BAYES_00=-2.599, SPF_PASS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3u2OlgPsGz0X for <xmpp@core3.amsl.com>; Mon, 23 Aug 2010 08:45:46 -0700 (PDT)
Received: from nostrum.com (nostrum-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:267::2]) by core3.amsl.com (Postfix) with ESMTP id DB6933A68CD for <xmpp@ietf.org>; Mon, 23 Aug 2010 08:45:45 -0700 (PDT)
Received: from dn3-174.estacado.net (vicuna-alt.estacado.net [75.53.54.121]) (authenticated bits=0) by nostrum.com (8.14.3/8.14.3) with ESMTP id o7NFkH0L048590 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 23 Aug 2010 10:46:17 -0500 (CDT) (envelope-from ben@nostrum.com)
From: Ben Campbell <ben@nostrum.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Date: Mon, 23 Aug 2010 10:46:22 -0500
Message-Id: <F05AC5D6-44E9-4AC7-9E3F-189251E5808B@nostrum.com>
To: XMPP Working Group <xmpp@ietf.org>
Mime-Version: 1.0 (Apple Message framework v1081)
X-Mailer: Apple Mail (2.1081)
Received-SPF: pass (nostrum.com: 75.53.54.121 is authenticated by a trusted mechanism)
Cc: Joe Hildebrand <joe.hildebrand@webex.com>
Subject: [xmpp] Followup WGLC of draft-ietf-xmpp-3921bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Aug 2010 15:45:47 -0000

This is a Working Group Last Call of draft-ietf-xmpp-3921bis-12.=20

*** This is a followup to the previous WGLC on the same draft. If you =
sent previous feedback, please comment as to whether you believe your =
comments have been resolved. ***

The draft is available at the following URL:

http://tools.ietf.org/html/draft-ietf-xmpp-3921bis-12

The WGLC will conclude on 30 August, 2010. Please note that this is a =
followup review, the WGLC period is one week rather than the usual two.  =
Please send your comments, including nits and "this is ready to go" type =
comments, to the authors and the working group.


Thanks!

Ben.

From fippo@mail.symlynx.com  Mon Aug 23 12:12:05 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 787243A6AA6 for <xmpp@core3.amsl.com>; Mon, 23 Aug 2010 12:12:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.574
X-Spam-Level: 
X-Spam-Status: No, score=-2.574 tagged_above=-999 required=5 tests=[AWL=0.025,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z7veEdbdyz8d for <xmpp@core3.amsl.com>; Mon, 23 Aug 2010 12:11:56 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id DB6853A6AAF for <xmpp@ietf.org>; Mon, 23 Aug 2010 12:11:27 -0700 (PDT)
Received: from [192.168.2.104] (p579DDAA8.dip.t-dialin.net [87.157.218.168]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7NJBs9l018785 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Mon, 23 Aug 2010 21:11:56 +0200
Message-ID: <4C72C7F8.1040108@mail.symlynx.com>
Date: Mon, 23 Aug 2010 21:11:52 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP Working Group <xmpp@ietf.org>
References: <7CCF74D5-D52B-46F5-86B5-F2567D2EFECA@nostrum.com>	<4C6A9F2D.5090400@mail.symlynx.com>	<4C6B0C2B.4060205@stpeter.im>	<4C6BB011.1050300@mail.symlynx.com>	<4C6BF62F.20303@stpeter.im>	<4C6C0828.5040407@mail.symlynx.com>	<4C6C1C8A.4060003@stpeter.im>	<4C6CDFDA.4040704@mail.symlynx.com>	<2276.1282204408.559952@puncture>	<4C6D545A.9020200@stpeter.im> <4C6DA0B8.4090107@stpeter.im>
In-Reply-To: <4C6DA0B8.4090107@stpeter.im>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Aug 2010 19:12:05 -0000

Am 19.08.2010 23:23, schrieb Peter Saint-Andre:
> Please review and comment.

Looks good.

[...]
> 4.2.6.  Determination of Addresses
[...]
>     For server-to-server communication, the initiating server's JID
>     (<domainpart>) MUST be the authorization identity (as defined by
>     [SASL]), either (1) as directly communicated by the initiating server
>     during SASL negotiation (Section 6) or (2) as derived by the
>     receiving server from the authentication identity if no authorization
>     identity was specified during SASL negotiation; in the absence of
>     SASL negotiation, the receiving server MAY consider the authorization
>     identity to be the 'from' address on the initial stream header

This MAY sounds like what is called 'legacy auth' - which is actually 
the lack of any check.

>     received from the initiating entity or an identity negotiated within
>     the relevant verification protocol (e.g., the 'from' attribute of the
>     <result/>  element in Server Dialback [XEP-0220]).

Is it a problem that dialback can negotiate multiple 'from'? That means 
we can have more than one identity.

philipp

From Peter.SaintAndre@webex.com  Mon Aug 23 13:52:43 2010
Return-Path: <Peter.SaintAndre@webex.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9E8023A6AEA for <xmpp@core3.amsl.com>; Mon, 23 Aug 2010 13:52:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.413
X-Spam-Level: 
X-Spam-Status: No, score=-106.413 tagged_above=-999 required=5 tests=[AWL=0.186, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PzrgsdZew6L9 for <xmpp@core3.amsl.com>; Mon, 23 Aug 2010 13:52:42 -0700 (PDT)
Received: from gw2.webex.com (gw2.webex.com [64.68.122.209]) by core3.amsl.com (Postfix) with SMTP id D21283A6952 for <xmpp@ietf.org>; Mon, 23 Aug 2010 13:52:31 -0700 (PDT)
Received: from SRV-EXSC03.webex.local ([192.168.252.197]) by gw2.webex.com with Microsoft SMTPSVC(6.0.3790.4675);  Mon, 23 Aug 2010 13:53:05 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 23 Aug 2010 13:52:41 -0700
Message-ID: <B276A36CB76AE04FADC48FDD7ED6A1CA0367B7@SRV-EXSC03.webex.local>
In-Reply-To: <4C72C7F8.1040108@mail.symlynx.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
Thread-Index: ActC9zBMQkziHDIeRMOgLTAEPNoFpQADfDBJ
From: "Peter Saint Andre" <Peter.SaintAndre@webex.com>
To: <fippo@mail.symlynx.com>, <xmpp@ietf.org>
X-OriginalArrivalTime: 23 Aug 2010 20:53:05.0300 (UTC) FILETIME=[2F05D540:01CB4305]
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Aug 2010 20:52:43 -0000

(Sent from my phone, sorry about top-posting.)

In s2s the 'from' attribute has nothing to do with legacy auth, by which =
I assume you mean jabber:iq:auth (XEP 78). Some servers seem to use the =
'from' address as a kind of placeholder for the peer's desired =
authorization identity, and this text allows that. As to the multiple =
identities allowed during server dialback, that is a matter for the =
dialback spec. Do you think the text in 3920bis needs to be adjusted to =
cover the possibilitiy of multiple authorization identities? The text I =
proposed seems fine to me on that score...


----- Original Message -----
From: xmpp-bounces@ietf.org <xmpp-bounces@ietf.org>
To: XMPP Working Group <xmpp@ietf.org>
Sent: Mon Aug 23 12:11:52 2010
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12

Am 19.08.2010 23:23, schrieb Peter Saint-Andre:
> Please review and comment.

Looks good.

[...]
> 4.2.6.  Determination of Addresses
[...]
>     For server-to-server communication, the initiating server's JID
>     (<domainpart>) MUST be the authorization identity (as defined by
>     [SASL]), either (1) as directly communicated by the initiating =
server
>     during SASL negotiation (Section 6) or (2) as derived by the
>     receiving server from the authentication identity if no =
authorization
>     identity was specified during SASL negotiation; in the absence of
>     SASL negotiation, the receiving server MAY consider the =
authorization
>     identity to be the 'from' address on the initial stream header

This MAY sounds like what is called 'legacy auth' - which is actually=20
the lack of any check.

>     received from the initiating entity or an identity negotiated =
within
>     the relevant verification protocol (e.g., the 'from' attribute of =
the
>     <result/>  element in Server Dialback [XEP-0220]).

Is it a problem that dialback can negotiate multiple 'from'? That means=20
we can have more than one identity.

philipp
_______________________________________________
xmpp mailing list
xmpp@ietf.org
https://www.ietf.org/mailman/listinfo/xmpp

From fippo@mail.symlynx.com  Tue Aug 24 06:38:58 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 837FC3A69D1 for <xmpp@core3.amsl.com>; Tue, 24 Aug 2010 06:38:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.449
X-Spam-Level: 
X-Spam-Status: No, score=-2.449 tagged_above=-999 required=5 tests=[AWL=0.150,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9YL6AB+9bp+s for <xmpp@core3.amsl.com>; Tue, 24 Aug 2010 06:38:57 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id E4A6D3A681A for <xmpp@ietf.org>; Tue, 24 Aug 2010 06:38:34 -0700 (PDT)
Received: from [192.168.2.104] (p4FF0C903.dip.t-dialin.net [79.240.201.3]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7ODbb3q000833 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Tue, 24 Aug 2010 15:38:45 +0200
Message-ID: <4C73CB21.9080308@mail.symlynx.com>
Date: Tue, 24 Aug 2010 15:37:37 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <B276A36CB76AE04FADC48FDD7ED6A1CA0367B7@SRV-EXSC03.webex.local>
In-Reply-To: <B276A36CB76AE04FADC48FDD7ED6A1CA0367B7@SRV-EXSC03.webex.local>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Aug 2010 13:38:58 -0000

Peter Saint Andre wrote:
> In s2s the 'from' attribute has nothing to do with legacy auth, by which I assume you mean jabber:iq:auth (XEP 78).

No, I meant the jabberd 1.0 legacy s2s.

> Some servers seem to use the 'from' address as a kind of placeholder for the peer's desired authorization identity, and this text allows that.

Like M-Link, as Dave said? But that is when using SASL...
When would you "consider the authentication identity to be the 'from' 
address on the initial stream header after TLS" (while at the same time 
not doing either SASL or dialback)?

> As to the multiple identities allowed during server dialback, that is a matter for the dialback spec. Do you think the text in 3920bis needs to be adjusted to cover the possibilitiy of multiple authorization identities? The text I proposed seems fine to me on that score...

I think that is described in 220 - without using the term 'authorization 
identity'. And thanks for already fixing a minor issue from -12 by 
saying that you use the 'from' of the <result/> in dialback, not the 
'from' of the stream header :-)
Anyway: WFM.

From stpeter@stpeter.im  Tue Aug 24 07:14:55 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 7D8243A6A4F for <xmpp@core3.amsl.com>; Tue, 24 Aug 2010 07:14:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.498
X-Spam-Level: 
X-Spam-Status: No, score=-102.498 tagged_above=-999 required=5 tests=[AWL=0.101, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jWH2UAk7nRqv for <xmpp@core3.amsl.com>; Tue, 24 Aug 2010 07:14:49 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 8188B3A69DA for <xmpp@ietf.org>; Tue, 24 Aug 2010 07:14:49 -0700 (PDT)
Received: from squire.local (dsl-140-248.dynamic-dsl.frii.net [216.17.140.248]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 68CCC40077 for <xmpp@ietf.org>; Tue, 24 Aug 2010 08:17:38 -0600 (MDT)
Message-ID: <4C73D3F7.4090403@stpeter.im>
Date: Tue, 24 Aug 2010 08:15:19 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <B276A36CB76AE04FADC48FDD7ED6A1CA0367B7@SRV-EXSC03.webex.local> <4C73CB21.9080308@mail.symlynx.com>
In-Reply-To: <4C73CB21.9080308@mail.symlynx.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Finalizing draft-ietf-xmpp-3920bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Aug 2010 14:14:55 -0000

On 8/24/10 7:37 AM, Philipp Hancke wrote:
> Peter Saint Andre wrote:
>> In s2s the 'from' attribute has nothing to do with legacy auth, by
>> which I assume you mean jabber:iq:auth (XEP 78).
> 
> No, I meant the jabberd 1.0 legacy s2s.

Oh. But that was no authentication at all. IMHO the use of the term
"authorization identity" in that clause does not remove the need for
authentication or, as in the case of server dialback, weak identity
verification -- but the identity that the receiving server allows the
peer to assume might be based on the 'from' address or the negotiation
protocol.

However, I am happy to change it to:

   in the absence of SASL negotiation, the receiving server MAY
   consider the authorization identity to be an identity negotiated
   within the relevant verification protocol (e.g., the 'from'
   attribute of the <result/> element in Server Dialback [XEP-0220])

That leaves less to "creative" interpretation.

>> Some servers seem to use the 'from' address as a kind of placeholder
>> for the peer's desired authorization identity, and this text allows that.
> 
> Like M-Link, as Dave said? But that is when using SASL...
> When would you "consider the authentication identity to be the 'from'
> address on the initial stream header after TLS" (while at the same time
> not doing either SASL or dialback)?

Definitely not.

>> As to the multiple identities allowed during server dialback, that is
>> a matter for the dialback spec. Do you think the text in 3920bis needs
>> to be adjusted to cover the possibilitiy of multiple authorization
>> identities? The text I proposed seems fine to me on that score...
> 
> I think that is described in 220 - without using the term 'authorization
> identity'. And thanks for already fixing a minor issue from -12 by
> saying that you use the 'from' of the <result/> in dialback, not the
> 'from' of the stream header :-)

Yep. :)

> Anyway: WFM.

I think it's better to leave out that stuff about the 'from' on the
stream header, because in reality we have only SASL or dialback; if
someone wants to define a third method for negotiating the authzid they
are free to do so, and it would be covered by the text about "an
identity negotiated within the relevant verification protocol".

If there are no further comments, I'll post -13 tonight.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From root@core3.amsl.com  Tue Aug 24 16:15:06 2010
Return-Path: <root@core3.amsl.com>
X-Original-To: xmpp@ietf.org
Delivered-To: xmpp@core3.amsl.com
Received: by core3.amsl.com (Postfix, from userid 0) id 737363A6958; Tue, 24 Aug 2010 16:15:02 -0700 (PDT)
From: Internet-Drafts@ietf.org
To: i-d-announce@ietf.org
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
Message-Id: <20100824231504.737363A6958@core3.amsl.com>
Date: Tue, 24 Aug 2010 16:15:02 -0700 (PDT)
Cc: xmpp@ietf.org
Subject: [xmpp] I-D Action:draft-ietf-xmpp-3920bis-13.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Aug 2010 23:15:06 -0000

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.


	Title           : Extensible Messaging and Presence Protocol (XMPP): Core
	Author(s)       : P. Saint-Andre
	Filename        : draft-ietf-xmpp-3920bis-13.txt
	Pages           : 183
	Date            : 2010-08-24

The Extensible Messaging and Presence Protocol (XMPP) is an
application profile of the Extensible Markup Language (XML) that
enables the near-real-time exchange of structured yet extensible data
between any two or more network entities.  This document defines
XMPP's core protocol methods: setup and teardown of XML streams,
channel encryption, authentication, error handling, and communication
primitives for messaging, network availability ("presence"), and
request-response interactions.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3920bis-13.txt

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Message/External-body;
	name="draft-ietf-xmpp-3920bis-13.txt";
	site="ftp.ietf.org";
	access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2010-08-24160125.I-D@ietf.org>


--NextPart--

From stpeter@stpeter.im  Tue Aug 24 16:51:14 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9F5273A694E for <xmpp@core3.amsl.com>; Tue, 24 Aug 2010 16:51:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.5
X-Spam-Level: 
X-Spam-Status: No, score=-102.5 tagged_above=-999 required=5 tests=[AWL=0.099,  BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RZARUdbLOjvX for <xmpp@core3.amsl.com>; Tue, 24 Aug 2010 16:51:12 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 5F7903A6952 for <xmpp@ietf.org>; Tue, 24 Aug 2010 16:51:12 -0700 (PDT)
Received: from squire.local (dsl-140-248.dynamic-dsl.frii.net [216.17.140.248]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id A122840074 for <xmpp@ietf.org>; Tue, 24 Aug 2010 17:53:57 -0600 (MDT)
Message-ID: <4C745B00.5020804@stpeter.im>
Date: Tue, 24 Aug 2010 17:51:28 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <20100824231504.737363A6958@core3.amsl.com>
In-Reply-To: <20100824231504.737363A6958@core3.amsl.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] I-D Action:draft-ietf-xmpp-3920bis-13.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Aug 2010 23:51:15 -0000

Diffs from -12 are here:

http://tools.ietf.org/rfcdiff?url2=draft-ietf-xmpp-3920bis-13.txt

And from -11:

http://tools.ietf.org/rfcdiff?url1=draft-ietf-xmpp-3920bis-11.txt&url2=draft-ietf-xmpp-3920bis-13.txt

And from -10:

http://tools.ietf.org/rfcdiff?url1=draft-ietf-xmpp-3920bis-10.txt&url2=draft-ietf-xmpp-3920bis-13.txt

And from -9:

http://tools.ietf.org/rfcdiff?url1=draft-ietf-xmpp-3920bis-09.txt&url2=draft-ietf-xmpp-3920bis-13.txt

And from -8 (the version originally last-called on May 13):

http://tools.ietf.org/rfcdiff?url1=draft-ietf-xmpp-3920bis-0
8.txt&url2=draft-ietf-xmpp-3920bis-13.txt

Onward and upward!

/psa

On 8/24/10 5:15 PM, Internet-Drafts@ietf.org wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Extensible Messaging and Presence Protocol Working Group of the IETF.
> 
> 
> 	Title           : Extensible Messaging and Presence Protocol (XMPP): Core
> 	Author(s)       : P. Saint-Andre
> 	Filename        : draft-ietf-xmpp-3920bis-13.txt
> 	Pages           : 183
> 	Date            : 2010-08-24
> 
> The Extensible Messaging and Presence Protocol (XMPP) is an
> application profile of the Extensible Markup Language (XML) that
> enables the near-real-time exchange of structured yet extensible data
> between any two or more network entities.  This document defines
> XMPP's core protocol methods: setup and teardown of XML streams,
> channel encryption, authentication, error handling, and communication
> primitives for messaging, network availability ("presence"), and
> request-response interactions.
> 
> A URL for this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-ietf-xmpp-3920bis-13.txt

From paul@darkrain42.org  Thu Aug 26 21:57:37 2010
Return-Path: <paul@darkrain42.org>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B8CD03A6A81 for <xmpp@core3.amsl.com>; Thu, 26 Aug 2010 21:57:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_66=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1SKc5zYL1f-6 for <xmpp@core3.amsl.com>; Thu, 26 Aug 2010 21:57:36 -0700 (PDT)
Received: from mail.darkrain42.org (o-chul.darkrain42.org [IPv6:2001:470:1f05:d58::1]) by core3.amsl.com (Postfix) with ESMTP id 9B0AE3A688E for <xmpp@ietf.org>; Thu, 26 Aug 2010 21:57:36 -0700 (PDT)
Received: from [192.168.1.153] (c-24-19-135-94.hsd1.wa.comcast.net [24.19.135.94]) by mail.darkrain42.org (mail.darkrain42.org) with ESMTPSA id 7EAF78054 for <xmpp@ietf.org>; Thu, 26 Aug 2010 21:58:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=darkrain42.org; s=a; t=1282885087; bh=mHJNTTJ36buwSlr52niIP/G50NM93wf+63pZmBiacN0=; l=1901; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type; b=lCKCLOi+oS6GZLnEaHa+eLO3Rip4xxkW7bX6uqKkN48z/GvagLSC35dwKfUHjqcy/ zqdMoGV41Ls7X2cukER5XmGQ3wLh+dDdOyMwY+/NT32jG0FZTLkZm/DC0v9QOHtiyf sFrVg82thwTdLahDxdfMThGTsCPy5VEQWrZ+w+JaxH02IdPRYtu6NxeNFGg28IOTdb OtjbDmsRUNhPAVWwD1rNTB4wk85k3SNUY+md56v8jTfqnhsrW0aBxut/j2Rlvkm8Rz H6jwZ7Qs+xLHTGEoWwgnpliEjcy6ijWxQRZcd95Y57wmxqG3Y8QKKQwcKIcrTqr6Oc L/RzyODM17ZDQ==
Message-ID: <4C7745D9.4080507@darkrain42.org>
Date: Thu, 26 Aug 2010 21:58:01 -0700
From: Paul Aurich <paul@darkrain42.org>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: XMPP Working Group <xmpp@ietf.org>
X-Enigmail-Version: 1.1.1
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB65E8C818CBA3AB2B8EAC397"
Subject: [xmpp] Stream ID
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Aug 2010 04:57:37 -0000

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB65E8C818CBA3AB2B8EAC397
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

It seems to me that the stream header 'id' attribute was underspecified
(or at least open to misinterpretation) in rfc3920 section 4.4, as I've
encountered a few servers that do not include the XMPP Stream ID in the
server's response for a jabber:client stream.

I think it's clearly specified in the current draft of rfc3920bis, but
wonder if it's worth an implementation note or entry in Appendix D to
note that it was previously vaguer and clients may need to be able to
handle it being missing.

Cheers,
~Paul


--------------enigB65E8C818CBA3AB2B8EAC397
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJMd0XdAAoJEEkfeuGm+zD3X70P/RiQoYZ+Si1yTvgnCulDaF7b
htodPfMZQweSNp8OqXM3N8YNsHDdv5hP0nWzZyVeoiYImAZ2YhDrKchvganspEwy
xcqETZFi+L9LAZsCZ5kigCpDbBKTmTAPoZ3F1GTmgg9++hc+qYa1ko1Rl6id1Jmo
HGqEos6k/twL79lIUVdXkoLIgCFR/A4S9mzKUiAUFcM+/mGr33FnmI0j0sPoofYi
k7jUnsw3OHg/8nOjjY8Qpy4+nkhrzVK5e04Gj7Yk7HaMnqLXVEtLk7HfiEFPf/NK
zI8HbHVUzrico1N+mB12UekeT+1A3NT5iCHRmWdR6xk/iYPOoUybOhzJt1X+z32f
tQsCs4j1oC5Z6EhqTXmwXGNWxVQI2bDgnCooR15bC2oQbASHc1fjU5pokJMs6KfQ
/8hgd1KqGTPmvMd/QFgT6LTX4RhuxOOAP7jcVjZypUZqk1rTIC31GbHh8ibL4Xy4
ZFywax26Kc6gOwsqutBag3snsV+dhNpo92ChQMGPDD6XTK3T409DJjrXtYmj1ZTN
HnrDddDGapp2oRt/m80vmfLYKmzHGZ1ZOhu2QSybTFhx0Kuo4LEs5EvWP9BpTFJl
uSffzx+z2vrYWNjJdQGvpWpRjVPCkpVjzAsdj0GiMJ2DiFzzchh76U+6jceuPWyd
ymA0paiTl6Ms8W0jZ7/5
=cfcA
-----END PGP SIGNATURE-----

--------------enigB65E8C818CBA3AB2B8EAC397--

From fippo@mail.symlynx.com  Fri Aug 27 01:14:58 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 53F7F3A6B5C for <xmpp@core3.amsl.com>; Fri, 27 Aug 2010 01:14:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.576
X-Spam-Level: 
X-Spam-Status: No, score=-2.576 tagged_above=-999 required=5 tests=[AWL=0.023,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WmPzV4OMuivb for <xmpp@core3.amsl.com>; Fri, 27 Aug 2010 01:14:55 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id EDAB13A68FC for <xmpp@ietf.org>; Fri, 27 Aug 2010 01:14:54 -0700 (PDT)
Received: from [192.168.2.103] (p579DD760.dip.t-dialin.net [87.157.215.96]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7R8FGha008966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Fri, 27 Aug 2010 10:15:17 +0200
Message-ID: <4C777415.7090501@mail.symlynx.com>
Date: Fri, 27 Aug 2010 10:15:17 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <F05AC5D6-44E9-4AC7-9E3F-189251E5808B@nostrum.com>
In-Reply-To: <F05AC5D6-44E9-4AC7-9E3F-189251E5808B@nostrum.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Followup WGLC of draft-ietf-xmpp-3921bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Aug 2010 08:14:58 -0000

Am 23.08.2010 17:46, schrieb Ben Campbell:
> This is a Working Group Last Call of draft-ietf-xmpp-3921bis-12.
>
> *** This is a followup to the previous WGLC on the same draft. If you sent previous feedback, please comment as to whether you believe your comments have been resolved. ***
>
> The draft is available at the following URL:
>
> http://tools.ietf.org/html/draft-ietf-xmpp-3921bis-12
>
> The WGLC will conclude on 30 August, 2010. Please note that this is a followup review, the WGLC period is one week rather than the usual two.  Please send your comments, including nits and "this is ready to go" type comments, to the authors and the working group.

Some feedback:

Some links in the TOC do not work, such as 3.1.1, 3.1.2, 3.1.5, 3.1.6. 
The HTML anchors exist however.

4.3.2: I think it would be better to add an interoperability note 
because of the changed 'from' of the probe.

4.4.2: (sending presence after errors): do we need a note that this 
behaviour changed (in a positive way)?

4.5.2: I think the second implementation note referring to the presence 
optimization needs to be updated.

I am not sure if I will have the time to read the whole document again, 
but a little feedback is better than no feedback at all :-)

philipp

From stpeter@stpeter.im  Fri Aug 27 07:15:19 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A7DAE3A698D for <xmpp@core3.amsl.com>; Fri, 27 Aug 2010 07:15:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.299
X-Spam-Level: 
X-Spam-Status: No, score=-102.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_66=0.6, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DWisCh8Ep0IF for <xmpp@core3.amsl.com>; Fri, 27 Aug 2010 07:12:47 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id B050B3A683A for <xmpp@ietf.org>; Fri, 27 Aug 2010 07:12:47 -0700 (PDT)
Received: from squire.local (host-174-45-179-79.chy-wy.client.bresnan.net [174.45.179.79]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 183AA40074 for <xmpp@ietf.org>; Fri, 27 Aug 2010 08:15:50 -0600 (MDT)
Message-ID: <4C77C7F7.3070502@stpeter.im>
Date: Fri, 27 Aug 2010 08:13:11 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4C7745D9.4080507@darkrain42.org>
In-Reply-To: <4C7745D9.4080507@darkrain42.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Stream ID
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Aug 2010 14:15:19 -0000

On 8/26/10 10:58 PM, Paul Aurich wrote:
> It seems to me that the stream header 'id' attribute was underspecified
> (or at least open to misinterpretation) in rfc3920 section 4.4, 

I think it was very poorly specified, and thus open to
misinterpretation. By "SHOULD be used only in the XML stream header from
the receiving entity to the initiating entity" the spec writer probably
meant "MUST include in the response stream header but MUST NOT include
in the initial stream header". That's just one of many examples of
improvement in the spec between 3920 and 3920bis.

> as I've
> encountered a few servers that do not include the XMPP Stream ID in the
> server's response for a jabber:client stream.
> 
> I think it's clearly specified in the current draft of rfc3920bis, but
> wonder if it's worth an implementation note or entry in Appendix D to
> note that it was previously vaguer and clients may need to be able to
> handle it being missing.

It's not clear to me if we need an interoperability note here, but I see
no harm in adding one, so I'll do that after IETF Last Call.

Thanks!

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From bernard.aboba@gmail.com  Sat Aug 28 21:14:53 2010
Return-Path: <bernard.aboba@gmail.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E3DF93A681F for <xmpp@core3.amsl.com>; Sat, 28 Aug 2010 21:14:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zywe-k28VRh8 for <xmpp@core3.amsl.com>; Sat, 28 Aug 2010 21:14:51 -0700 (PDT)
Received: from mail-wy0-f172.google.com (mail-wy0-f172.google.com [74.125.82.172]) by core3.amsl.com (Postfix) with ESMTP id 2A9863A6784 for <xmpp@ietf.org>; Sat, 28 Aug 2010 21:14:51 -0700 (PDT)
Received: by wyi11 with SMTP id 11so5728695wyi.31 for <xmpp@ietf.org>; Sat, 28 Aug 2010 21:15:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=hfGmynXnoir6y1IT4GvpVZwcIzpMLrhFb5M3UTBJp9M=; b=oMx6YfRXo0pdoNy5VMZ4s4qMU9M3DiGDpsZiZHrI3T4+s2eJDmK1LSC23bVM2Upx3Z QKvBsmzAAVWjVA726rK0upFoUleZom/hX65TO553nz5fUZfRqJSecYlLUximjqvn9Hdl yGTFsAZJzHr3JVNQAxWcMEAcMESIfxU1HMKcY=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=jnyCZFEesNrFZOn6KhnAVsx8DtiKr4SZgoDrJJvFGAPzLQtGHJcM8qxEKwaw5WNWY7 kMCDik7XM4Ddc8oZ+dbTsTR9jw+H8asceaMp5lZXr+XLZqSdepBPzh45BoIbK02l+8HU Fv/YRpnPKCe+pRgJWMYHMskmD7MlfzbsoU/oc=
Received: by 10.227.133.7 with SMTP id d7mr3056691wbt.54.1283055322256; Sat, 28 Aug 2010 21:15:22 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.216.70.70 with HTTP; Sat, 28 Aug 2010 21:15:02 -0700 (PDT)
In-Reply-To: <4C699988.30504@stpeter.im>
References: <4C5CBCCD.5020206@stpeter.im> <4C66E74B.5040204@mail.symlynx.com> <4C699988.30504@stpeter.im>
From: Bernard Aboba <bernard.aboba@gmail.com>
Date: Sat, 28 Aug 2010 21:15:02 -0700
Message-ID: <AANLkTi=cnovfS4BJNJ0Aa8X-f0c0ynHGg=BPPbkVsGH6@mail.gmail.com>
To: xmpp@ietf.org
Content-Type: multipart/alternative; boundary=001485f723d0b5d62e048eee982a
Subject: Re: [xmpp] Fwd: I-D Action:draft-saintandre-tls-server-id-check-09.txt
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 29 Aug 2010 04:14:54 -0000

--001485f723d0b5d62e048eee982a
Content-Type: text/plain; charset=ISO-8859-1

I reviewed draft-saintandre-tls-server-id-check.

In a number of instances, this document is vague on the verification of an
SRV-ID, and in one instance, it appears to contradict RFC 4985, even though
it does
not update that document.

Section 2.1 states:

o An SRV-ID can be either direct (provided by a user) or more
typically indirect (resolved by a client) and is restricted (can
be used for only a single application).

This is consistent with RFC 4985 Section 2.1 which states:

The SRVName, if present, MUST contain a service name and a domain
name in the following form:

_Service.Name

Yet, Section 5.1 states:

When the connecting application is an interactive client, the source
domain name and service type MUST be provided by a human user (e.g.
when specifying the server portion of the user's account name on the
server or when explicitly configuring the client to connect to a
particular host or URI as in [SIP-LOC]) and MUST NOT be derived from
the user inputs in an automated fashion (e.g., a host name or domain
name discovered through DNS resolution of the source domain). This
rule is important because only a match between the user inputs (in
the form of a reference identifier) and a presented identifier
enables the client to be sure that the certificate can legitimately
be used to secure the connection.

However, an interactive client MAY provide a configuration setting
that enables a human user to explicitly specify a particular host
name or domain name (called a "target domain") to be checked for
connection purposes.

[BA] As I understand RFC 4985, the SRV-ID provided in the target certificate
is to be
matched against components (service name and domain name) of the SRV RR
obtained
via lookup within the source domain. As a result, I don't believe that RFC
4985 is
consistent with this advice (e.g. the reference identifier is not matched
against the
SRV-ID).

Section 4.1 is not as clear as it could be on this point, given that it
talks about both
matching of the source domain and the target domain:

4. When checking a reference identifier against a presented
identifier, the client (a) MUST match the source domain (or, in
some cases, target domain) of the identifiers and (b) MAY also
match the service type of the identifiers.

Implementation Note: Naturally, in addition to checking
identifiers, a client might complete further checks to ensure that
the server is authorized to provide the requested service.
However, such checking is not a matter of verifying the
application service identity presented in a certificate, and
therefore methods for doing so (e.g., consulting local policy
information) are out of scope for this document.

--001485f723d0b5d62e048eee982a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I reviewed draft-saintandre-tls-server-id-check.=A0<br>
=A0<br>
In a number of instances, this document is vague on the verification of=20
an SRV-ID, and in one instance, it appears to contradict RFC 4985, even=20
though it does=A0<br>
not update that document.=A0<br>
=A0<br>
Section 2.1 states:=A0<br>
=A0<br>
   o  An SRV-ID can be either direct (provided by a user) or more=A0<br>
      typically indirect (resolved by a client) and is restricted (can=A0<b=
r>
      be used for only a single application).=A0<br>
=A0<br>
This is consistent with RFC 4985 Section 2.1 which states:=A0<br>
=A0<br>
   The SRVName, if present, MUST contain a service name and a domain=A0<br>
   name in the following form:=A0<br>
=A0<br>
      _Service.Name=A0<br>
=A0<br>
Yet, Section 5.1 states:=A0<br>
=A0<br>
When the connecting application is an interactive client, the source=A0<br>
   domain name and service type MUST be provided by a human user (e.g.=A0<b=
r>
   when specifying the server portion of the user&#39;s account name on the=
=A0<br>
   server or when explicitly configuring the client to connect to a=A0<br>
   particular host or URI as in [SIP-LOC]) and MUST NOT be derived from=A0<=
br>
   the user inputs in an automated fashion (e.g., a host name or domain=A0<=
br>
   name discovered through DNS resolution of the source domain).  This=A0<b=
r>
   rule is important because only a match between the user inputs (in=A0<br=
>
   the form of a reference identifier) and a presented identifier=A0<br>
   enables the client to be sure that the certificate can legitimately=A0<b=
r>
   be used to secure the connection.=A0<br>
=A0<br>
   However, an interactive client MAY provide a configuration setting=A0<br=
>
   that enables a human user to explicitly specify a particular host=A0<br>
   name or domain name (called a &quot;target domain&quot;) to be checked f=
or=A0<br>
   connection purposes.=A0<br>
=A0<br>
[BA]  As I understand RFC 4985, the SRV-ID provided in the target certifica=
te is to be=A0<br>
matched against components (service name and domain name) of the SRV RR obt=
ained=A0<br>
via lookup within the source domain. As a result, I don&#39;t believe that =
RFC 4985 is=A0<br>
consistent with this advice (e.g. the reference identifier is not matched a=
gainst the=A0<br>
SRV-ID).=A0<br>
=A0<br>
Section 4.1 is not as clear as it could be on this point, given that it tal=
ks about both=A0<br>
matching of the source domain and the target domain:=A0<br>
=A0<br>
   4.  When checking a reference identifier against a presented=A0<br>
       identifier, the client (a) MUST match the source domain (or, in=A0<b=
r>
       some cases, target domain) of the identifiers and (b) MAY also=A0<br=
>
       match the service type of the identifiers.=A0<br>
=A0<br>
      Implementation Note: Naturally, in addition to checking=A0<br>
      identifiers, a client might complete further checks to ensure that=A0=
<br>
      the server is authorized to provide the requested service.=A0<br>
      However, such checking is not a matter of verifying the=A0<br>
      application service identity presented in a certificate, and=A0<br>
      therefore methods for doing so (e.g., consulting local policy=A0<br>
      information) are out of scope for this document. <br>

--001485f723d0b5d62e048eee982a--

From stpeter@stpeter.im  Mon Aug 30 13:44:28 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 262F03A6858 for <xmpp@core3.amsl.com>; Mon, 30 Aug 2010 13:44:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.599
X-Spam-Level: 
X-Spam-Status: No, score=-102.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XKj2YrYskOug for <xmpp@core3.amsl.com>; Mon, 30 Aug 2010 13:44:26 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 101883A6849 for <xmpp@ietf.org>; Mon, 30 Aug 2010 13:44:26 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 545A2400EE for <xmpp@ietf.org>; Mon, 30 Aug 2010 14:41:24 -0600 (MDT)
Message-ID: <4C7C16C8.8080601@stpeter.im>
Date: Mon, 30 Aug 2010 14:38:32 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <F05AC5D6-44E9-4AC7-9E3F-189251E5808B@nostrum.com> <4C777415.7090501@mail.symlynx.com>
In-Reply-To: <4C777415.7090501@mail.symlynx.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Followup WGLC of draft-ietf-xmpp-3921bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Aug 2010 20:44:28 -0000

Thanks for the continued feedback.

On 8/27/10 2:15 AM, Philipp Hancke wrote:
> Am 23.08.2010 17:46, schrieb Ben Campbell:
>> This is a Working Group Last Call of draft-ietf-xmpp-3921bis-12.
>>
>> *** This is a followup to the previous WGLC on the same draft. If you
>> sent previous feedback, please comment as to whether you believe your
>> comments have been resolved. ***
>>
>> The draft is available at the following URL:
>>
>> http://tools.ietf.org/html/draft-ietf-xmpp-3921bis-12
>>
>> The WGLC will conclude on 30 August, 2010. Please note that this is a
>> followup review, the WGLC period is one week rather than the usual
>> two.  Please send your comments, including nits and "this is ready to
>> go" type comments, to the authors and the working group.
> 
> Some feedback:
> 
> Some links in the TOC do not work, such as 3.1.1, 3.1.2, 3.1.5, 3.1.6.
> The HTML anchors exist however.

That's an issue with the xml2rfc tool. Besides, the canonical format is
ASCII text so we don't need to worry about anchors. ;-)

BTW, the RFC Editor might ask us to shorten the table of contents by not
showing so many levels (I'm not sure what their current policy is, but
I'll inquire).

> 4.3.2: I think it would be better to add an interoperability note
> because of the changed 'from' of the probe.

I agree that this point was unspecified in RFC 3921. However, if we
added an interoperability note for every point that is specified in
3921bis but was unspecified in 3921, the document would be way longer
than it is already. Furthermore, what is the interop issue here?

> 4.4.2: (sending presence after errors): do we need a note that this
> behaviour changed (in a positive way)?

As far as I can see, this behavior was unspecified in RFC 3921. Earlier
versions of 3921bis talked about presence errors here, but we don't need
an interoperability note about changes from one version of 3921bis to
another (once 3921bis is published as an RFC, all that will matter is
the difference between 3921 and the RFC-to-be). IMHO, naturally.

> 4.5.2: I think the second implementation note referring to the presence
> optimization needs to be updated.

What change do you propose? I removed the word "optimization" from the
note in Section 4.4.2 because it's an open question whether the behavior
described there really is an optimization, so I'd be happy to change the
note in Section 4.5.2 so that it says something like this:

      Implementation Note: Even if the user's server does not broadcast
      the user's subsequent presence notifications to contacts who are
      offline (as described under Section 4.4.2), it MUST broadcast the
      user's unavailable presence notification; if it did not do so,
      the last presence received by the contact's server would be the
      user's initial presence for the presence session, with the result
      that the contact would consider the user to be online.

I think we also need to adjust the wording of the note in Section 4.5.3,
as follows:

   If the contact's server does not broadcast subsequent presence
   notifications to users who are offline (as described under Section
   4.4.2), it MUST also update its internal representation of which
   entities are online by noting that the user is unavailable.

> I am not sure if I will have the time to read the whole document again,
> but a little feedback is better than no feedback at all :-)

Indeed!

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Mon Aug 30 13:54:21 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E00163A69F5 for <xmpp@core3.amsl.com>; Mon, 30 Aug 2010 13:54:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.299
X-Spam-Level: 
X-Spam-Status: No, score=-102.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_66=0.6, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kA+QSqX5FYa7 for <xmpp@core3.amsl.com>; Mon, 30 Aug 2010 13:54:20 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 627533A6863 for <xmpp@ietf.org>; Mon, 30 Aug 2010 13:54:16 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 83A8D400EE for <xmpp@ietf.org>; Mon, 30 Aug 2010 14:57:37 -0600 (MDT)
Message-ID: <4C7C1A95.5000003@stpeter.im>
Date: Mon, 30 Aug 2010 14:54:45 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: xmpp@ietf.org
References: <4C7745D9.4080507@darkrain42.org> <4C77C7F7.3070502@stpeter.im>
In-Reply-To: <4C77C7F7.3070502@stpeter.im>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Stream ID
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Aug 2010 20:54:22 -0000

On 8/27/10 8:13 AM, Peter Saint-Andre wrote:
> On 8/26/10 10:58 PM, Paul Aurich wrote:
>> It seems to me that the stream header 'id' attribute was underspecified
>> (or at least open to misinterpretation) in rfc3920 section 4.4, 
> 
> I think it was very poorly specified, and thus open to
> misinterpretation. By "SHOULD be used only in the XML stream header from
> the receiving entity to the initiating entity" the spec writer probably
> meant "MUST include in the response stream header but MUST NOT include
> in the initial stream header". That's just one of many examples of
> improvement in the spec between 3920 and 3920bis.
> 
>> as I've
>> encountered a few servers that do not include the XMPP Stream ID in the
>> server's response for a jabber:client stream.
>>
>> I think it's clearly specified in the current draft of rfc3920bis, but
>> wonder if it's worth an implementation note or entry in Appendix D to
>> note that it was previously vaguer and clients may need to be able to
>> handle it being missing.
> 
> It's not clear to me if we need an interoperability note here, but I see
> no harm in adding one, so I'll do that after IETF Last Call.

I've added the following note to my working copy:

      Interoperability Note: In RFC 3920, the text regarding inclusion
      of the 'id' attribute was ambiguous, leading some implementations
      to leave the attribute off the response stream header.

/psa


From stpeter@stpeter.im  Tue Aug 31 09:12:16 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AF5DE3A68D9 for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 09:12:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.549
X-Spam-Level: 
X-Spam-Status: No, score=-102.549 tagged_above=-999 required=5 tests=[AWL=0.050, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J96kavwfTdEj for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 09:12:11 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 4441E3A6827 for <xmpp@ietf.org>; Tue, 31 Aug 2010 09:12:11 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 56F34400EE for <xmpp@ietf.org>; Tue, 31 Aug 2010 10:15:36 -0600 (MDT)
Message-ID: <4C7D29F7.60908@stpeter.im>
Date: Tue, 31 Aug 2010 10:12:39 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] Fwd: Re: Review of draft-saintandre-tls-server-id-check
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Aug 2010 16:12:16 -0000

FYI. I neglected to cc xmpp@ietf.org on my reply.

/psa

-------- Original Message --------
Subject: Re: Review of draft-saintandre-tls-server-id-check
Date: Mon, 30 Aug 2010 16:44:18 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
To: Bernard Aboba <bernard_aboba@hotmail.com>
CC: ietf@ietf.org, Cyrus Daboo <cyrus@daboo.name>, tls@ietf.org,	=JeffH
<Jeff.Hodges@kingsmountain.com>, pkix@ietf.org

On 8/24/10 6:38 PM, Bernard Aboba wrote:
> I reviewed draft-saintandre-tls-server-id-check.

Thanks. To ensure appropriate review, I've copied the discussion lists
of the working groups that were asked to look at this I-D (PKIX and
TLS), as well as the author of draft-daboo-srv-email (which normatively
references this I-D).

> In a number of instances, this document is vague on the verification of
> an SRV-ID, and in one instance, it appears to contradict RFC 4985, even
> though it does not update that document.
> 
> Section 2.1 states:
> 
>    o  An SRV-ID can be either direct (provided by a user) or more
>       typically indirect (resolved by a client) and is restricted (can
>       be used for only a single application).
> 
> 
> This is consistent with RFC 4985 Section 2.1 which states:
> 
>    The SRVName, if present, MUST contain a service name and a domain
>    name in the following form:
> 
>       _Service.Name
> 
> 
> Yet, Section 5.1 states:
> 
> When the connecting application is an interactive client, the source
> domain name and service type MUST be provided by a human user (e.g.
> when specifying the server portion of the user's account name on the
> server or when explicitly configuring the client to connect to a
> particular host or URI as in [SIP-LOC])
> and MUST NOT be derived from
> the user inputs in an automated fashion (e.g., a host name or domain
> name discovered through DNS resolution of the source domain). This
> rule is important because only a match between the user inputs (in
> the form of a reference identifier) and a presented identifier
> enables the client to be sure that the certificate can legitimately
> be used to secure the connection.
> 
> However, an interactive client MAY provide a configuration setting
> that enables a human user to explicitly specify a particular host
> name or domain name (called a "target domain") to be checked for
> connection purposes.
> 
> [BA]  As I understand RFC 4985, the SRV-ID provided in the target
> certificate is to be
> matched against components (service name and domain name) of the SRV RR
> obtained
> via lookup within the source domain. As a result, I don't believe that
> RFC 4985 is
> consistent with this advice (e.g. the reference identifier is not
> matched against the
> SRV-ID).

I think the issue here is an ambivalence in the assumptions underlying
RFC 4985, because an SRV record can be used for two quite different
purposes:

1. To point from an application service name to a particular host/domain
name in the same administrative domain (e.g., _imap._example.com points
to mailhost.example.com for its IMAP service).

2. To delegate an application service name to a hosting provider outside
in the administrative domain of the application service (e.g.,
example.com delegates its IMAP service to apps.example.net).

(I freely grant that it's not always easy to tell up front which of
these is happening, and that the concept of "administrative domain" is
itself a bit vague -- e.g., what if the same provider runs both
example.com and apps.example.net?)

As I see it, RFC 4985 glosses over the foregoing distinction.

Some folks seem to like the SRV-ID construct because it enables them to
more tightly scope the certificates issued to an administrative domain,
so that they can limit a cert to usage within the context of their email
service or IM service or HTTP service or whatever (the IM cert can't be
used for the email service, etc.). That's the usage Jeff Hodges and I
had in mind for this I-D.

However, the question arises: what is the client supposed to check if an
SRV lookup for _imap._example.com yields apps.example.net? My reading of
RFC 4985 leads me to think that the certificate presented by
apps.example.net is supposed to contain an SRV-ID of _imap.example.com,
which means roughly "this certificate indicates that this provider is
authorized to provide IMAP service for the example.com domain". (How the
certification authority determines that the delegation is indeed
authorized is outside the scope of this I-D.)

That is my reading of RFC 4985 because:

1. RFC 4985 defines "Name" as "The DNS domain name of the domain where
the specified service is located." (In RFC 2782, "Name" is defined as
"The domain this RR refers to.")

2. RFC 4985 states of the name form "_Service.Name" that "The content of
the components of this name form MUST be consistent with the
corresponding definition of these components in an SRV RR according to
RFC 2782."

3. RFC 2782 defines the format of the SRV RR as follows:

   _Service._Proto.Name TTL Class SRV Priority Weight Port Target

Note well that the name form in RFC 4985 is *not* "_Service.Target", it
is "_Service.Name". Using the terminology that Jeff and I defined in
draft-saintandre-tls-server-id-check, this means that the name component
of the SRV-ID is the "source domain", not the "target domain".

Now, perhaps I am horribly mistaken about RFC 4985 and the intent is to
present an SRV-ID of the form "_Service.Target", but if so then I think
that RFC 4985 needs to be revved through a bis draft, because a plain
reading of RFC 4985 would indicate otherwise. Yes, the description of
"Name" in RFC 4985 as "the DNS domain name of the domain where the
specified service is located" might be construed as referring to the
target domain instead of the source domain (although that interpretation
hinges on the meaning of the vague word "located"), but if so then RFC
4985 is changing the definition of "Name" provided in RFC 2782. Given
that (i) RFC 4985 explicitly states that the components of the name form
"_Service.Name" MUST be consistent with the definitions in RFC 2782 and
(ii) RFC 4985 does not update RFC 2782, I think we need to assume that
"Name" in RFC 4985 does not mean "Target" from RFC 2782.

> Section 4.1 is not as clear as it could be on this point, given that it
> talks about both
> matching of the source domain and the target domain:
> 
>    4.  When checking a reference identifier against a presented
>        identifier, the client (a) MUST match the source domain (or, in
>        some cases, target domain) of the identifiers and (b) MAY also
>        match the service type of the identifiers.
> 
>       Implementation Note: Naturally, in addition to checking
>       identifiers, a client might complete further checks to ensure that
>       the server is authorized to provide the requested service.
>       However, such checking is not a matter of verifying the
>       application service identity presented in a certificate, and
>       therefore methods for doing so (e.g., consulting local policy
>       information) are out of scope for this document.

I agree that the text "or, in some cases, target domain" does not
provide enough detail. The concept here is that a user might have
explicitly "authorized" the target domain to provide application
services for the source domain, either through client configuration
(e.g., account setup that specifies an IMAP server of apps.example.net
despite the fact that the DNS domain name portion of the full username
is example.com) or user interaction (overriding an identity mismatch for
the life of the application session or permanently, which is described
as "pinning" in <http://www.w3.org/TR/2010/WD-wsc-ui-20100309>). These
matters are explained in Sections 4.6.3.1 and 5.1 of the I-D, so at the
least I think that the text in Section 4.1 needs to reference those
sections.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/


_______________________________________________
Ietf mailing list
Ietf@ietf.org
https://www.ietf.org/mailman/listinfo/ietf

From stpeter@stpeter.im  Tue Aug 31 11:21:44 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 732503A6A6D; Tue, 31 Aug 2010 11:21:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.556
X-Spam-Level: 
X-Spam-Status: No, score=-102.556 tagged_above=-999 required=5 tests=[AWL=0.043, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fjzot4M1XG85; Tue, 31 Aug 2010 11:21:42 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 6B34F3A69E9; Tue, 31 Aug 2010 11:21:42 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 7053F400EE; Tue, 31 Aug 2010 12:25:07 -0600 (MDT)
Message-ID: <4C7D4853.8020507@stpeter.im>
Date: Tue, 31 Aug 2010 12:22:11 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Bernard Aboba <bernard_aboba@hotmail.com>
References: <BLU137-W32189ED2D1B0FDFCBF639F93840@phx.gbl> <4C7C3442.9020403@stpeter.im> <BLU137-DS3BE7BD3D47980030F667A93890@phx.gbl>
In-Reply-To: <BLU137-DS3BE7BD3D47980030F667A93890@phx.gbl>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: ietf@ietf.org, stefan@aaa-sec.com, XMPP <xmpp@ietf.org>, 'Cyrus Daboo' <cyrus@daboo.name>, tls@ietf.org, pkix@ietf.org
Subject: Re: [xmpp] Review of draft-saintandre-tls-server-id-check
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Aug 2010 18:21:44 -0000

On 8/30/10 5:10 PM, Bernard Aboba wrote:
> Peter St. Andre said:
> 
> "an SRV record can be used for two quite different purposes:
> 
> 1. To point from an application service name to a particular
> host/domain name in the same administrative domain (e.g.,
> _imap._example.com points to mailhost.example.com for its IMAP
> service).
> 
> 2. To delegate an application service name to a hosting provider
> outside in the administrative domain of the application service
> (e.g., example.com delegates its IMAP service to
> apps.example.net).....
> 
> As I see it, RFC 4985 glosses over the foregoing distinction."
> 
> [BA] It took some adjustment for me, but as I understand it, the
> underlying assumption of RFC 4985 is that if the certificate is
> considered valid by RFC 5280 path validation (e.g. chains to a valid
> trust anchor, etc.) then delegations both within and outside the
> source administrative domain can be validated. This logic, if
> pursued, could apply beyond SRV RR validation, to things like NAPTR
> validation via a URI/IRI in the certificate.

If that's the logic, I'd at the least like to see a "4985bis" spec make
that clear, because IMHO it's not spelled out now.

> Scoping (EKUs, name constraints, etc.) is a different question.

Agreed.

> Peter also said:
> 
> "However, the question arises: what is the client supposed to check
> if an SRV lookup for _imap._example.com yields apps.example.net? My
> reading of RFC 4985 leads me to think that the certificate presented
> by apps.example.net is supposed to contain an SRV-ID of
> _imap.example.com, which means roughly "this certificate indicates
> that this provider is authorized to provide IMAP service for the
> example.com domain". (How the certification authority determines that
> the delegation is indeed authorized is outside the scope of this
> I-D.)
> 
> [BA] That's also my reading of RFC 4985, but I'll let others more
> knowledgeable (like the author) weigh in.

That would indeed be helpful.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Tue Aug 31 13:55:22 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 1B4EB3A6A76 for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 13:55:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.266
X-Spam-Level: 
X-Spam-Status: No, score=-102.266 tagged_above=-999 required=5 tests=[AWL=-0.267, BAYES_00=-2.599, J_CHICKENPOX_23=0.6, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lDjFBZcViVTv for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 13:55:19 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 256093A6B17 for <xmpp@ietf.org>; Tue, 31 Aug 2010 13:55:19 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 417B340337 for <xmpp@ietf.org>; Tue, 31 Aug 2010 14:58:45 -0600 (MDT)
Message-ID: <4C7D6C54.9000203@stpeter.im>
Date: Tue, 31 Aug 2010 14:55:48 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Subject: [xmpp] XML schemas
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Aug 2010 20:55:22 -0000

At the suggestion of Ben Campbell, I have checked the schemas in 3920bis
against two validators, during which I discovered some errors. Those are
now fixed in my working copy.

http://trac.tools.ietf.org/group/iesg/trac/wiki/TypicalAppsAreaIssues
also lists some best practices regarding the xs:any and xs:anyAttribute
constructions where extensibility is expected, and I have made several
small adjustments to the schemas to conform with those suggestions.

I'll complete the foregoing tasks with regard to 3921bis before
submitting a version that's ready for IETF Last Call.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From stpeter@stpeter.im  Tue Aug 31 14:40:16 2010
Return-Path: <stpeter@stpeter.im>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2EF0F3A6849 for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 14:40:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.539
X-Spam-Level: 
X-Spam-Status: No, score=-102.539 tagged_above=-999 required=5 tests=[AWL=0.060, BAYES_00=-2.599, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4ivMza3h-u8A for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 14:40:14 -0700 (PDT)
Received: from stpeter.im (stpeter.im [207.210.219.233]) by core3.amsl.com (Postfix) with ESMTP id 9CC3F3A6839 for <xmpp@ietf.org>; Tue, 31 Aug 2010 14:40:14 -0700 (PDT)
Received: from dhcp-64-101-72-245.cisco.com (dhcp-64-101-72-245.cisco.com [64.101.72.245]) (Authenticated sender: stpeter) by stpeter.im (Postfix) with ESMTPSA id 14966400EE; Tue, 31 Aug 2010 15:43:40 -0600 (MDT)
Message-ID: <4C7D76DB.70706@stpeter.im>
Date: Tue, 31 Aug 2010 15:40:43 -0600
From: Peter Saint-Andre <stpeter@stpeter.im>
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6
MIME-Version: 1.0
To: Philipp Hancke <fippo@mail.symlynx.com>
References: <F05AC5D6-44E9-4AC7-9E3F-189251E5808B@nostrum.com>	<4C777415.7090501@mail.symlynx.com> <4C7C16C8.8080601@stpeter.im> <4C7D26AB.2090000@mail.symlynx.com>
In-Reply-To: <4C7D26AB.2090000@mail.symlynx.com>
X-Enigmail-Version: 1.0.1
OpenPGP: url=http://www.saint-andre.com/me/stpeter.asc
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: XMPP <xmpp@ietf.org>
Subject: Re: [xmpp] Followup WGLC of draft-ietf-xmpp-3921bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 31 Aug 2010 21:40:16 -0000

Philipp replied off-list, but I'm replying to him on-list regarding the
points that are relevant to the group.

On 8/31/10 9:58 AM, Philipp Hancke wrote:

> Am 30.08.2010 22:38, schrieb Peter Saint-Andre:
>> Thanks for the continued feedback.
>>
>> On 8/27/10 2:15 AM, Philipp Hancke wrote:

<snip/>

>>> 4.3.2: I think it would be better to add an interoperability note
>>> because of the changed 'from' of the probe.
>>
>> I agree that this point was unspecified in RFC 3921. However, if we
>> added an interoperability note for every point that is specified in
>> 3921bis but was unspecified in 3921, the document would be way longer
>> than it is already. Furthermore, what is the interop issue here?
> 
> If servers attempt to carry out the "user is in contact's roster" check
> with a full jid, assuming that the probe 'from' is always a bare jid.

AFAIK, no servers behave that way.

> If you see any way to clarify this in a short and precise way ...

Yes, I see a way.

Change:

"if the user is in the contact's roster"

to:

"if the user's bare JID is in the contact's roster"

Which is clearer anyway (and describes all implementations AFAIK).

>>> 4.4.2: (sending presence after errors): do we need a note that this
>>> behaviour changed (in a positive way)?
>>
>> As far as I can see, this behavior was unspecified in RFC 3921. Earlier
>> versions of 3921bis talked about presence errors here, but we don't need
>> an interoperability note about changes from one version of 3921bis to
>> another (once 3921bis is published as an RFC, all that will matter is
>> the difference between 3921 and the RFC-to-be). IMHO, naturally.
> 
> RFC 3921, 5.1.2. Presence Broadcast:
> [...] (3) from whom the server has not received a presence error during
> the user's session

You're right. I missed that during a quick grep of RFC 3921.

> I think we want server developers to notice and implement that change asap.

Agreed.

Here is a proposed note:

      Interoperability Note: RFC 3921 specified that the contact's
      server would check to make sure that it had not received a
      presence error from the contact; in order to provide for more
      efficient "healing" of subscription synchronization problems, this
      specification changes the behavior to use a presence stanza of
      "unsubscribe".

>>> 4.5.2: I think the second implementation note referring to the presence
>>> optimization needs to be updated.
>>
>> What change do you propose? I removed the word "optimization" from the
>> note in Section 4.4.2 because it's an open question whether the behavior
>> described there really is an optimization, so I'd be happy to change the
>> note in Section 4.5.2 so that it says something like this:
>>
>>        Implementation Note: Even if the user's server does not broadcast
>>        the user's subsequent presence notifications to contacts who are
>>        offline (as described under Section 4.4.2), it MUST broadcast the
>>        user's unavailable presence notification; if it did not do so,
>>        the last presence received by the contact's server would be the
>>        user's initial presence for the presence session, with the result
>>        that the contact would consider the user to be online.
> 
> WFM.

Thanks.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/



From Jeff.Hodges@KingsMountain.com  Tue Aug 31 17:06:52 2010
Return-Path: <Jeff.Hodges@KingsMountain.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C12DB3A68BF for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 17:06:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.03
X-Spam-Level: 
X-Spam-Status: No, score=-102.03 tagged_above=-999 required=5 tests=[AWL=0.235, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OxJY3O2MQblj for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 17:06:51 -0700 (PDT)
Received: from cpoproxy2-pub.bluehost.com (cpoproxy2-pub.bluehost.com [67.222.39.38]) by core3.amsl.com (Postfix) with SMTP id 39B213A6886 for <xmpp@ietf.org>; Tue, 31 Aug 2010 17:06:51 -0700 (PDT)
Received: (qmail 6498 invoked by uid 0); 1 Sep 2010 00:00:42 -0000
Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by cpoproxy2.bluehost.com with SMTP; 1 Sep 2010 00:00:42 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=kingsmountain.com; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=ikK4i5aYcYp6GlfP/M+CMWSusPddQ+8pgiyiHmC77ZGvhGLzbU00DNW741pvMZgtupHj4ZuRJV+nlsYJqSpyd/Lh3cBqO4KtsZGnCCCbUDMdgDMx5SGoSufzEI8C87nd;
Received: from outbound4.ebay.com ([216.113.168.128] helo=[10.244.48.205]) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1Oqako-00075y-CL; Tue, 31 Aug 2010 18:00:38 -0600
Message-ID: <4C7D97A4.9080404@KingsMountain.com>
Date: Tue, 31 Aug 2010 17:00:36 -0700
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: ietf@ietf.org, stefan@aaa-sec.com, pkix@ietf.org, tls@ietf.org,  'Cyrus Daboo' <cyrus@daboo.name>, rbarnes@bbn.com, XMPP <xmpp@ietf.org>,  Bernard Aboba <bernard_aboba@hotmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 216.113.168.128 authed with jeff.hodges+kingsmountain.com}
Subject: Re: [xmpp] Review of draft-saintandre-tls-server-id-check
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 00:06:52 -0000

fwiw, I concur with Peter's analysis and conclusions.

=JeffH

From fippo@mail.symlynx.com  Tue Aug 31 23:38:54 2010
Return-Path: <fippo@mail.symlynx.com>
X-Original-To: xmpp@core3.amsl.com
Delivered-To: xmpp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CA4263A6908 for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 23:38:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.578
X-Spam-Level: 
X-Spam-Status: No, score=-2.578 tagged_above=-999 required=5 tests=[AWL=0.021,  BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2DwmV2Y6lohP for <xmpp@core3.amsl.com>; Tue, 31 Aug 2010 23:38:53 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by core3.amsl.com (Postfix) with ESMTP id 442943A68CE for <xmpp@ietf.org>; Tue, 31 Aug 2010 23:38:52 -0700 (PDT)
Received: from [192.168.2.103] (p579DD22B.dip.t-dialin.net [87.157.210.43]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o816dIl1029815 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <xmpp@ietf.org>; Wed, 1 Sep 2010 08:39:19 +0200
Message-ID: <4C7DF513.2080102@mail.symlynx.com>
Date: Wed, 01 Sep 2010 08:39:15 +0200
From: Philipp Hancke <fippo@mail.symlynx.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6
MIME-Version: 1.0
To: XMPP <xmpp@ietf.org>
References: <F05AC5D6-44E9-4AC7-9E3F-189251E5808B@nostrum.com>	<4C777415.7090501@mail.symlynx.com> <4C7C16C8.8080601@stpeter.im> <4C7D26AB.2090000@mail.symlynx.com> <4C7D76DB.70706@stpeter.im>
In-Reply-To: <4C7D76DB.70706@stpeter.im>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Subject: Re: [xmpp] Followup WGLC of draft-ietf-xmpp-3921bis-12
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/xmpp>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 01 Sep 2010 06:38:54 -0000

Peter Saint-Andre wrote:
<snip/>
> Change:
>
> "if the user is in the contact's roster"
>
> to:
>
> "if the user's bare JID is in the contact's roster"
>
> Which is clearer anyway (and describes all implementations AFAIK).

perfect.

>>>> 4.4.2: (sending presence after errors): do we need a note that this
>>>> behaviour changed (in a positive way)?
>>>
>>> As far as I can see, this behavior was unspecified in RFC 3921. Earlier
>>> versions of 3921bis talked about presence errors here, but we don't need
>>> an interoperability note about changes from one version of 3921bis to
>>> another (once 3921bis is published as an RFC, all that will matter is
>>> the difference between 3921 and the RFC-to-be). IMHO, naturally.
>>
>> RFC 3921, 5.1.2. Presence Broadcast:
>> [...] (3) from whom the server has not received a presence error during
>> the user's session
>
> You're right. I missed that during a quick grep of RFC 3921.
>
>> I think we want server developers to notice and implement that change asap.
>
> Agreed.
>
> Here is a proposed note:
>
>        Interoperability Note: RFC 3921 specified that the contact's
>        server would check to make sure that it had not received a
>        presence error from the contact; in order to provide for more
>        efficient "healing" of subscription synchronization problems, this
>        specification changes the behavior to use a presence stanza of
>        "unsubscribe".

Not quite. This section is about the subsequent presence broadcast, and 
unsubscribing would be overkill (that depends on the error type actually).

What about something along the lines of
RFC 3921 specified that a user's server should not include a contact 
from whom the server has received a presence error during the user's 
session in a subsequent presence broadcast. This condition was removed 
in order to achieve a more resilient exchange of presence.

cheers

philipp
