No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0170.xml 7.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Recommended Order of Stream Feature Negotiation</title>
  10. <abstract>This document specifies a recommended order for negotiation of XMPP stream features.</abstract>
  11. &LEGALNOTICE;
  12. <number>0170</number>
  13. <status>Active</status>
  14. <type>Informational</type>
  15. <sig>Standards</sig>
  16. <approver>Council</approver>
  17. <dependencies>
  18. <spec>XMPP Core</spec>
  19. <spec>XEP-0077</spec>
  20. <spec>XEP-0079</spec>
  21. <spec>XEP-0138</spec>
  22. </dependencies>
  23. <supersedes/>
  24. <supersededby/>
  25. <shortname>N/A</shortname>
  26. &stpeter;
  27. <revision>
  28. <version>1.0</version>
  29. <date>2007-01-04</date>
  30. <initials>psa</initials>
  31. <remark><p>Per a vote of the XMPP Council, advanced status to Active.</p></remark>
  32. </revision>
  33. <revision>
  34. <version>0.5</version>
  35. <date>2006-12-06</date>
  36. <initials>psa</initials>
  37. <remark><p>Per Council feedback, removed section on deprecated jabber:iq:auth protocol.</p></remark>
  38. </revision>
  39. <revision>
  40. <version>0.4</version>
  41. <date>2006-08-02</date>
  42. <initials>psa</initials>
  43. <remark><p>Modified recommended order of for server-to-server negotiations if service provisioning requires dialback after TLS negotiation.</p></remark>
  44. </revision>
  45. <revision>
  46. <version>0.3</version>
  47. <date>2006-01-24</date>
  48. <initials>psa</initials>
  49. <remark><p>Split into client-to-server and server-to-server sections; specified recommended order of server-to-server negotiations.</p></remark>
  50. </revision>
  51. <revision>
  52. <version>0.2</version>
  53. <date>2006-01-16</date>
  54. <initials>psa</initials>
  55. <remark><p>Changed order of SASL and stream compression to reflect list discussion.</p></remark>
  56. </revision>
  57. <revision>
  58. <version>0.1</version>
  59. <date>2006-01-11</date>
  60. <initials>psa</initials>
  61. <remark><p>Initial version.</p></remark>
  62. </revision>
  63. <revision>
  64. <version>0.0.1</version>
  65. <date>2006-01-10</date>
  66. <initials>psa</initials>
  67. <remark><p>First draft.</p></remark>
  68. </revision>
  69. </header>
  70. <section1 topic='Introduction' anchor='intro'>
  71. <p>During its formalization of the core Jabber protocols, the IETF's XMPP WG introduced the concept of XML stream features. While the order in which features shall be negotiated is clearly defined for the features specified in &rfc3920; and &rfc3921;, the number of possible features is open-ended (which is why the &REGISTRAR; maintains a registry of stream features). This document specifies the recommended order for negotiation of various stream features.</p>
  72. </section1>
  73. <section1 topic='Client-to-Server Recommendations' anchor='c2s'>
  74. <section2 topic='Standard XMPP Features' anchor='c2s-xmpp'>
  75. <p>The XMPP RFCs define an ordering for the features defined therein, namely:</p>
  76. <ol>
  77. <li>TLS</li>
  78. <li>SASL</li>
  79. <li>Resource binding</li>
  80. </ol>
  81. <p>That order MUST be followed if no other stream features are negotiated.</p>
  82. </section2>
  83. <section2 topic='Stream Compression' anchor='c2s-compress'>
  84. <p>&xep0138; is negotiated when it is not possible to set up TLS compression for whatever reason. It seems safest to negotiate stream compression after negotiation of both TLS (to safely complete the negotiation) and SASL (to prevent certain denial-of-service attacks caused by consumption of server resources for compression before the connecting entity is authenticated). Therefore the following order is RECOMMENDED:</p>
  85. <ol>
  86. <li>TLS</li>
  87. <li>SASL</li>
  88. <li>Stream compression</li>
  89. <li>Resource binding</li>
  90. </ol>
  91. </section2>
  92. <section2 topic='In-Band Registration' anchor='c2s-register'>
  93. <p>The &xep0077; protocol can be used to establish an account before logging in. That step would be completed before SASL because an entity cannot authenticate if it does not first create an account. Therefore the following order is RECOMMENDED:</p>
  94. <ol>
  95. <li>TLS</li>
  96. <li>In-band registration</li>
  97. <li>SASL</li>
  98. <li>Resource binding</li>
  99. </ol>
  100. <p>If both stream compression and in-band registration are negotiated, the following order is RECOMMENDED:</p>
  101. <ol>
  102. <li>TLS</li>
  103. <li>In-band registration</li>
  104. <li>SASL</li>
  105. <li>Stream compression</li>
  106. <li>Resource binding</li>
  107. </ol>
  108. </section2>
  109. </section1>
  110. <section1 topic='Server-to-Server Recommendations' anchor='s2s'>
  111. <section2 topic='Standard XMPP Features' anchor='s2s-xmpp'>
  112. <p>The XMPP RFCs define an ordering for the features defined therein, namely:</p>
  113. <ol>
  114. <li>TLS</li>
  115. <li>SASL</li>
  116. </ol>
  117. <p>That order MUST be followed if no other stream features are negotiated.</p>
  118. </section2>
  119. <section2 topic='Dialback' anchor='s2s-dialback'>
  120. <p>RFC 3920 requires SASL negotiation after TLS negotiation. When the certificate presented by the initiating entity makes reference to a trusted root certification authority, SASL negotiation provides meaningful authentication. In that case, the order shown above is recommended.</p>
  121. <p>However, it is possible that the initiating entity will present a self-signed certificate or a certificate whose associated root certification authority is not trusted by the receiving entity. In this situation, service provisioning policies at the receiving entity may dictate the use of server dialback in order to provide a stronger level of trust for the server-to-server stream (where such trust is essentially trust in the underlying Domain Name System), even though server dialback explicitly does not provide authentication. In this case, the following order is RECOMMENDED:</p>
  122. <ol>
  123. <li>TLS</li>
  124. <li>Dialback</li>
  125. </ol>
  126. </section2>
  127. <section2 topic='Stream Compression' anchor='s2s-compress'>
  128. <p>&xep0138; is negotiated when it is not possible to set up TLS compression for whatever reason. It seems safest to negotiate stream compression after negotiation of both TLS (to safely complete the negotiation) and SASL (to prevent certain denial-of-service attacks). Therefore the following order is RECOMMENDED:</p>
  129. <ol>
  130. <li>TLS</li>
  131. <li>SASL</li>
  132. <li>Stream compression</li>
  133. </ol>
  134. <p>If stream compression is negotiated in addition to TLS and dialback, it is RECOMMENDED to negotiate it after both TLS and dialback:</p>
  135. <ol>
  136. <li>TLS</li>
  137. <li>Dialback</li>
  138. <li>Stream compression</li>
  139. </ol>
  140. </section2>
  141. </section1>
  142. <section1 topic='Security Considerations' anchor='security'>
  143. <p>The order of negotiated stream features has security implications and may be security-critical. In particular, TLS MUST be negotiated first.</p>
  144. </section1>
  145. <section1 topic='IANA Considerations' anchor='iana'>
  146. <p>This document requires no interaction with &IANA;.</p>
  147. </section1>
  148. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  149. <p>This document requires no interaction with the XMPP Registrar.</p>
  150. </section1>
  151. </xep>