Corrected several examples and points in the text.
0.42011-12-12psa
Noted that sending server can be derived from 'to' address on IQ stanza, so removed serverjid field from FORM_TYPE; defined method for determining support; added further XMPP Registrar Considerations.
0.32011-12-12psa
Updated ad-hoc command with field for the sending server; added XMPP Registrar Considerations.
0.22011-12-09psa
Defined ad-hoc command for admin generation of outbound presence subscription; added security considerations.
0.12009-04-30psa
Initial published version.
0.0.12009-04-30ah/fj/psa/mr/mw
First draft, split from the incident reporting proposal.
In XMPP, rosters and presence subscriptions have been used to date only among IM users (see XMPP IMRFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence <http://tools.ietf.org/html/rfc6121>.). However, nothing prevents the application of these concepts to other XMPP entities, such as components and servers. Given that a presence subscription typically indicates some level of trust in a peer, server deployments can use the sharing of XMPP presence information as a way to indicate that a given server has a trust relationship with a peer server (informally, we can say that the two servers consider each other "buddies"). The server might then share certain kinds of additional information only with its trusted peers, for example Incident Reporting (XEP-0268)XEP-0268: Incident Reporting <https://xmpp.org/extensions/xep-0268.html>. and Entity Reputation (XEP-0275)XEP-0275: Entity Reputation <https://xmpp.org/extensions/xep-0275.html>.. The server buddy relationship can also be leveraged for additional functionality, such as Service Directories (XEP-0309)XEP-0309: Service Directories <https://xmpp.org/extensions/xep-0309.html>.
To establish such a trust relationship with a peer, a server sends a presence subscription request to the peer, just as is done between XMPP users.
]]>
A server MUST NOT send such a presence subscription request unless explicitly requested to do so by a server administrator (see below).
Upon receiving such a presence subscription request, the XMPP server software running at the peer shall either prompt the server administrator to approve the request or (if explicitly configured to accept subscriptions requests) automatically approve it. (A future version of this specification might define an approval method based on Data Forms (XEP-0004)XEP-0004: Data Forms <https://xmpp.org/extensions/xep-0004.html>..)
If the request is approved, the peer server then informs the originating server that the request has been approved.
]]>
The peer SHOULD also send a subscription request to the originating server.
]]>
The originating server would then approve that subscription request.
]]>
If an XMPP server implementation supports this usage of presence subscriptions, it MUST keep a list of approved entities, which we denote a "server roster". The implementation MAY use that roster for access control purposes defined in other specifications.
This section defines an Ad-Hoc Commands (XEP-0050)XEP-0050: Ad-Hoc Commands <https://xmpp.org/extensions/xep-0050.html>. node scoped by the Field Standardization for Data Forms (XEP-0068)XEP-0068: Field Data Standardization for Data Forms <https://xmpp.org/extensions/xep-0068.html>. FORM_TYPE specified in Service Administration (XEP-0133)XEP-0133: Service Administration <https://xmpp.org/extensions/xep-0133.html>.. Upon advancement of this specification to Draft, this section ought to be moved to XEP-0133.
The command node for this use case SHOULD be "http://jabber.org/protocol/admin#server-buddy".
A sample protocol flow for this use case is shown below.
]]>
Unless an error occurs (see the "Error Handling" section of XEP-0133), the service SHOULD return the appropriate form.
Subscribing to a Peer ServerFill out this form to subscribe your server to a peer server.http://jabber.org/protocol/admin
]]>
Note: In virtual hosting environments, the server can determine the domain name from which to send the presence subscription based on the 'to' address of the <iq/> stanza.
Notification of completion MAY include the processed data in a data form of type "result".
To advertise its support for the server buddy feature, when replying to service discovery information ("disco#info") requests a server MUST return a URN of "urn:xmpp:server-presence".
]]>
]]>
Because server "buddies" might be granted greater privileges than unknown peers, care should be taken in sending or approving presence subscription requests. In particular, a server MUST NOT send a presence subscription request unless explicitly requested to do so by a server administrator.
This document requires no interaction with the Internet Assigned Numbers Authority (IANA)The Internet Assigned Numbers Authority (IANA) is the central coordinator for the assignment of unique parameter values for Internet protocols, such as port numbers and URI schemes. For further information, see <http://www.iana.org/>..
urn:xmpp:server-presenceSupport for subscriptions to server presenceXEP-0267
]]>
Field Standardization for Data Forms (XEP-0068)XEP-0068: Field Data Standardization for Data Forms <https://xmpp.org/extensions/xep-0068.html>. defines a process for standardizing the fields used within Data Forms scoped by a particular namespace. This registration adds two more reserved fields to the 'http://jabber.org/protocol/admin' namespace defined in XEP-0133.
http://jabber.org/protocol/admin
]]>
Thanks to Kim Alvefur, Waqas Hussain, and Tobias Markmann for their feedback.