add abilty to discover entites that add stanza-ids and follow the rules

This commit is contained in:
Daniel Gultsch 2016-10-29 19:41:47 +02:00 committed by Sam Whited
parent ac8cf918ee
commit 6248facf3b
1 changed files with 31 additions and 0 deletions

View File

@ -23,6 +23,14 @@
<supersededby/>
<shortname>stanza-id</shortname>
&flow;
<revision>
<version>0.4</version>
<date>2016-10-30</date>
<initials>dg</initials>
<remark>
<p>Add ability to discover support</p>
</remark>
</revision>
<revision>
<version>0.3.0</version>
<date>2016-10-29</date>
@ -125,6 +133,29 @@
<li>The value of the 'by' attribute MUST be the XMPP address of the entity assigning the unique and stable stanza ID. Note that XMPP addresses are normalized as defined in &rfc6122;</li>
</ol>
</section1>
<section1 topic='Discovering Support' anchor='disco'>
<p>An entity that follows the business rules, especially the rule on overriding the ID in elements where the by atttribute matches the entities own XMPP address, SHOULD announce the 'urn:xmpp:sid:0' namespace in its disco features allowing other entities to verify that those business rules are properly enforced.</p>
<example caption='Client sends service discovery request to server'><![CDATA[
<iq from='romeo@montague.tld/garden'
id='somethingrandom'
to='montague.tld'
type='get'>
<query xmlns='http://jabber.org/protocol/disco#info' />
</iq>
]]></example>
<example caption='Servers includes the stanza ID namespace in its features'><![CDATA[
<iq from='montague.tld'
to='romeo@montague.tld/garden'
id='somethingrandom'
type='result'>
<query xmlns='http://jabber.org/protocol/disco#info'>
<feature var='urn:xmpp:sid:0'/>
</query>
</iq>
]]></example>
</section1>
<section1 topic='Security Considerations' anchor='security'>
<p>The value of the 'id' attribute should not provide any further information besides the opaque ID itself. Entities observing the value MUST NOT be able to infer any information from it, e.g. the size of the message archive. The value of 'id' MUST be considered a non-secret value.</p>
</section1>