Re: [Standards] Some questions on MUC / XEP-0045

2014-05-16 Thread Dave Cridland
On 16 May 2014 06:43, Christian Schudt christian.sch...@gmx.de wrote:


  2. Is the actor/ actually needed in the muc#admin namespace? There are
 no examples, but it's in the XML schema.
 
 
  Yes, see http://xmpp.org/extensions/xep-0045.html#example-90

 Example 90 is in the #user namespace.


Ah, yes, you're quite right - I can't find any use for actor/ within the
admin namespace at all.


 
  3. Can a client request multiple affiliations and get all affiliated
 users? Like:
 
  query xmlns=http://jabber.org/protocol/muc#admin;
  item affiliation=member/
  item affiliation=owner/
  item affiliation=admin/
  /query
 
  Which would return all members.
 
 
  It's not against the schema, of course, but I think that's there for
 multiple modifications - something I actually think is a bad idea. I don't
 see any support for it in the text, though.

 Actually I think, this would be fine and it also feels natural to do.
 Modifying owner/admin/member list is all the same and one could modify
 affiliations of all users in one run.
 If a client sends an updated affiliations list to the server, the server
 should not care about the users' previous affiliations anyway. So it
 doesn't know/care if the client wanted to update (previous) owners, admins
 oder members only.


The problem is that a single iq/ has atomicity guarantees, and a client
can achieve much the same thing (without the atomicity) by just sending
multiple iq/s at once. The difference is very slight to the client, but
makes a huge difference at the server end.

On reading, it doesn't make much difference, but unless it works everywhere
there's no advantage either.

Dave.


[Standards] Fwd: Minutes 20140514 (and 20140507)

2014-05-16 Thread Kevin Smith
FYI


-- Forwarded message --
From: Kevin Smith
Date: Fri, May 16, 2014 at 10:29 AM
Subject: Minutes 20140514 (and 20140507)
To: XMPP Council


20140507:
Logs: http://logs.xmpp.org/council/2014-05-07/

1) Roll call
Kev, Matt, Lance, Phillip present. Tobias absent

2) Date of next meeting
20140514

3) Any other business

Fini

20140514:

Logs: http://logs.xmpp.org/council/2014-05-14/

1) Roll call
Kev, Philipp, Lance present. Tobias present initially. Matt absent until end.

2) http://xmpp.org/extensions/diff/api/xep/0080/diff/1.7/vs/1.8rc1
Accept version 1.8?

Tobias, Kev, Fippo, Lance +1. Matt voted later and is also +1.

3) http://xmpp.org/extensions/inbox/privilege-component.html
Accept as Experimental?
[Tobias leaves here]

All to post on-list within a fortnight.

4) http://xmpp.org/extensions/inbox/signing-forms.html
Accept as Experimental?

All to post on-list within a fortnight

5) Date of next meeting
2014-05-21 15:00Z

6) Any other business
None
[Matt enters here]

Fini


Re: [Standards] New revised version of proposal: Signing Forms

2014-05-16 Thread Peter Waher
Hello Dave,

Thanks for the valuable input. Sorry for the delay in responding. I’ll address 
your comments and suggestions one at a time:

Last one on my list. :-)

First off, it's unclear why, in §2.4, PStr does not include the 'from' 
attribute if available? I also suspect it should include the 'to' only if 
given in the stanza, and finally I think your use of type should be replaced 
with form_type to avoid confusion with the stanza's type attribute.

The reason was to stick to the OAUTH algorithm as defiend for the web, where 
BStr is defined as:

BStr:=Escape(method)+''+Escape(url)+''+Escape(PStr)

(method=GET/POST; etc..)

The closest match in XMPP the method parameter has is the type attribute used 
when submitting the form, and the closest match to the url parameter is the 
to-attribute. It is the actual ‘type’ attribute that is referred to. (I’ve made 
a small change to highlight this.) The form_type parameter is already included 
in PStr:

BStr:=Escape(type)+''+Escape(to)+''+Escape(PStr)

Clarification now reads:

“The Signature Base String (BStr) is then formed concatenating Escape(type) 
(the 'type' attribute of the form used when submitting the form), Escape(to) 
(the full destination address, including resource, if any) and Escape(PStr), 
using ampersands ('') as delimiter.“

OK?

Note however, that you can include any parameter in the signature, by posting 
hidden parameters on the form.


Next, typo - Example 6 should presumably have a title of PLAINTEXT.

Thanks. Corrected.

Overall, I really think that using the FORM_TYPE here is wrong - it means the 
only forms that can be signed are form signing forms, which seems somewhat 
introspective. Instead I recommend defining a new signing indicator, perhaps a 
field SIGNED. It's not *wonderfully* clear in XEP-0068 whether additional 
generic field names such as this, or the oauth ones, can be registered in such 
a way, but we can change that to accommodate this.

The reason I feel strongly here is because I'd like to be able to potentially 
sign forms such as MUC configurations, and the current proposal essentially 
prevents this.

Yes, I was thinking about this also. I was thinking, that instead of defining a 
completely new FORM_TYPE, just to define a suffix, for instance 
“:signature:oauth1”. This would make it easier for clients to understand. 
Examples:

For signed in-band registration with form signature:
jabber:iq:register:signature:oauth1

For in-band registration with CAPTCHA:
urn:xmpp:captcha:signature:oauth1

Generic form signature:
urn:xmpp:xdata:signature:oauth1

Similarly, form types for MUC configuration, etc. could have their FORM_TYPE 
suffixed by “:signature:oauth1”.

Would that work?

I have not reviewed this document in terms of security.


On 13 May 2014 13:58, Peter Waher 
peter.wa...@clayster.commailto:peter.wa...@clayster.com wrote:
Hello

I had forgotten to add an Acknowledgements section to the previous version. 
Here, an updated version with acknowledgements. If I’ve forgotten anybody, 
please let me know.

Best regards,
Peter Waher

From: Peter Waher
Sent: den 9 maj 2014 18:12
To: standards@xmpp.orgmailto:standards@xmpp.org
Cc: XEP Editor (edi...@xmpp.orgmailto:edi...@xmpp.org)
Subject: New revised version of proposal: Signing Forms

Hello

Attached is a revised version of the proposed XEP: Signing Forms.

All input from the community and the council has been addressed, mostly minor:


• Removed links to articles expression opinions.

• Reformulated the reference to SASL in the introduction.

• A reference to Unicode Standard Annex #15, Unicode Normalization 
Forms, and NFC normalization has been added.

Please add this to the inbox.

Best regards,
Peter Waher