From ae81873b4cef54f587c635aa53d69c2c317dd6ed Mon Sep 17 00:00:00 2001 From: Peter Saint-Andre Date: Thu, 5 Jul 2012 15:29:55 -0600 Subject: [PATCH] 0.4 --- xep-0297.xml | 55 +++++++++++++++++++++++++++++----------------------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/xep-0297.xml b/xep-0297.xml index 21d4479d..8d219d8b 100644 --- a/xep-0297.xml +++ b/xep-0297.xml @@ -6,12 +6,11 @@
- Message Forwarding - This document defines a protocol to forward a message from one entity to another. + Stanza Forwarding + This document defines a protocol to forward a stanza from one entity to another. &LEGALNOTICE; 0297 Experimental - 2012-03-09 Standards Track Standards @@ -21,13 +20,18 @@ forwarding - - Matthew - Wild - me@matthewwild.co.uk - me@matthewwild.co.uk - + &mwild; &ksmith; + + 0.4 + 2012-07-05 + mw + +

Added recommendation that forwarded messages as part of another specification should be nested under an + element of that protocol's namespace.

+

Adapted text to indicate that stanzas other than messages may be forwarded. Updated title to reflect this.

+
+
0.3 2011-07-11 @@ -55,20 +59,20 @@
-

There are many situations is which an entity needs to forward a previously sent message to another entity, such as forwarding an interesting message to a friend, or a server forwarding stored messages from an archive. Here we specify a simple encapsulation method for such forwarded messages. This format can be used in other specifications requiring the forwarding of messages, or used in isolation for a user to forward a message to another user (rather like email forwards).

+

There are many situations is which an entity needs to forward a previously sent stanza to another entity, such as forwarding an interesting message to a friend, or a server forwarding stored messages from an archive. Here we specify a simple encapsulation method for such forwards. This format can be used in other specifications requiring the forwarding of stanzas, or used in isolation for a user to forward a message to another user (rather like email forwards).

-

Several properties are desirable when forwarding messages:

+

Several properties are desirable when forwarding stanzas:

  • The original sender and receiver should be identified.
  • Extension payloads should be included (not only a message <body/>
  • -
  • It should be possible to annotate the message (e.g. with a timestamp) without ambiguity as to the original message.
  • -
  • It should allow features such as encryption or signing of the original message to survive the forwarding.
  • +
  • It should be possible to annotate the stanza (e.g. with a timestamp) without ambiguity as to the original stanza contents.
  • +
  • It should allow features such as encryption or signing of the original stanza to survive the forwarding.
- +

Let us suppose that a Romeo receives a message from Juliet:

    -
  • Forwarded messages SHOULD include all relevant child elements of the original message by default. +
  • Forwarded stanzas SHOULD include all relevant child elements of the original stanza by default. However, an implementation MAY omit elements it deems irrelevant and safe to discard. An example - would be omitting &xep0085; elements which typically do not make sense outside the context of a - conversation session. However it should be noted that removing such elements can invalidate any - digital signature on a stanza. If preserving a signature is important in the context this extension - is used then child elements SHOULD NOT be removed.
  • + would be omitting &xep0085; elements from <message> stanzas which typically do not make sense + outside the context of a conversation session. However it should be noted that removing such + elements can invalidate any digital signature on a stanza. If preserving a signature is important + in the context this extension is used then child elements SHOULD NOT be removed.
  • The forwarding entity SHOULD add a <delay/> child to the <forwarded/> element to indicate to the recipient the date/time that the forwarding entity received the original - message. The format of this element is described in &xep0203;.
  • + stanza. The format of this element is described in &xep0203;.
  • The namespace of the forwarded stanza MUST be preserved (this is typically 'jabber:client'). If no 'xmlns' is set for the stanza then as per XML namespacing rules it would inherit the 'urn:xmpp:forward:0' namespace, which is wrong.
  • @@ -114,19 +118,22 @@ outer <message/> SHOULD contain a body (even if empty) and a receiving client should pay particular attention to ensure it renders both the sender's text and the forwarded message unambiguously. +
  • When a forwarded stanza forms part of an encapsulating protocol, the <forwarded/> element + SHOULD be a child of a tag of that protocol, and SHOULD NOT be included as a direct child of the + transmitted stanza.
-

Forwarding messages can reveal information about the original sender, including possible presence leaks as well as the message payloads themselves. Any extensions using this format must therefore consider the implications of this.

+

Forwarding stanzas can reveal information about the original sender, including possible presence leaks as well as the stanza payloads themselves. Any extensions using this format must therefore consider the implications of this.

Forwarding can either be used as-is, or in the context of another specification, with different security considerations:

-

Receipt of a forwarded message from a third-party does not guarantee that the original message was actually received, or that the content has not been modified, by the forwarder. Integrity of the original message can only be determined through digital signing mechanisms such as described in &xep0285; and &xep0290;.

-

Considering the above an end-user client should take special care in its rendering of a forwarded message to ensure that the user cannot mistake it for a message received directly from the original sender.

+

Receipt of a forwarded stanza from a third-party does not guarantee that the original stanza was actually received, or that the content has not been modified, by the forwarder. Integrity of the original stanza can only be determined through digital signing mechanisms such as described in &xep0285; and &xep0290;.

+

Considering the above an end-user client should take special care in its rendering of forwarded stanzas, such as forwarded messages, to ensure that the user cannot mistake it for a message received directly from the original sender.

An entity SHOULD NOT trust that forwards are genuine when receiving them unprovoked (i.e. outside the scope of another specification).

-

While security considerations are ultimately dependent upon the specifications using the format defined herein, forwarding introduces scope for message forgery such that authors of derivative specifications will need to address security considerations themselves. These need to cover which entities a client should accept forwards from, and which entities those are permitted to forward messages for. For example, a specification may choose to only trust forwards if they are received from the user's client, another client on the bare JID, or the user's server.

+

While security considerations are ultimately dependent upon the specifications using the format defined herein, forwarding introduces scope for stanza forgery such that authors of derivative specifications will need to address security considerations themselves. These need to cover which entities a client should accept forwards from, and which entities those are permitted to forward stanzas for. For example, a specification may choose to only trust forwards if they are received from the user's client, another client on the bare JID, or the user's server.