Re: [xmpp] New(ish) draft: Secure Messaging in XMPP

Bartosz Małkowski <bmalkowski@tigase.pl> Thu, 05 November 2015 10:12 UTC

Return-Path: <bmalkowski@tigase.pl>
X-Original-To: xmpp@ietfa.amsl.com
Delivered-To: xmpp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5A1DD1AC3E3 for <xmpp@ietfa.amsl.com>; Thu, 5 Nov 2015 02:12:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.6
X-Spam-Level:
X-Spam-Status: No, score=-1.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ooF18MScMFSe for <xmpp@ietfa.amsl.com>; Thu, 5 Nov 2015 02:12:09 -0800 (PST)
Received: from mg0.tigase.org (mg0.tigase.org [192.99.18.159]) by ietfa.amsl.com (Postfix) with ESMTP id E90871AC3E4 for <xmpp@ietf.org>; Thu, 5 Nov 2015 02:12:04 -0800 (PST)
Received: from mail.tigase.org (mail.tigase.org [198.27.120.209]) by mg0.tigase.org (Postfix) with ESMTP id 3BC50127010; Thu, 5 Nov 2015 05:12:04 -0500 (EST)
Received: from localhost (localhost [127.0.0.1]) by mail.tigase.org (Postfix) with ESMTP id 3249A140922; Thu, 5 Nov 2015 05:12:04 -0500 (EST)
X-Virus-Scanned: Debian amavisd-new at mail.tigase.org
Received: from mail.tigase.org ([198.27.120.209]) by localhost (t2.tigase.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3i6A1Zxly0k4; Thu, 5 Nov 2015 05:11:43 -0500 (EST)
Received: from [192.168.3.171] (host-86-111-123-175.tvk.torun.pl [86.111.123.175]) (Authenticated sender: bmalkow) by mail.tigase.org (Postfix) with ESMTPSA id 30CCE14049A; Thu, 5 Nov 2015 05:11:43 -0500 (EST)
Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\))
Content-Type: multipart/signed; boundary="Apple-Mail=_CCCF85A3-7ADB-4960-AB3F-0E6E32AC8B5B"; protocol="application/pgp-signature"; micalg="pgp-sha512"
X-Pgp-Agent: GPGMail 2.6b2
From: Bartosz Małkowski <bmalkowski@tigase.pl>
In-Reply-To: <CAKHUCzwFSkAY-=K_21QJXJr0P5KPfDkO+XdPsDFdMqSe_0GF-Q@mail.gmail.com>
Date: Thu, 05 Nov 2015 11:11:38 +0100
Message-Id: <5F9E4182-7149-479C-AD76-2B1E3B126E67@tigase.pl>
References: <562AA40E.40407@nostrum.com> <562AAAB1.9060906@andyet.net> <72AA7469-6C93-4C52-BAD8-99A3933FE7AC@tigase.pl> <CAKHUCzwFSkAY-=K_21QJXJr0P5KPfDkO+XdPsDFdMqSe_0GF-Q@mail.gmail.com>
To: Dave Cridland <dave@cridland.net>
X-Mailer: Apple Mail (2.3096.5)
Archived-At: <http://mailarchive.ietf.org/arch/msg/xmpp/MZej1Sdn5cp_nsgXe70kgpCaIHA>
Cc: XMPP Working Group <xmpp@ietf.org>
Subject: Re: [xmpp] New(ish) draft: Secure Messaging in XMPP
X-BeenThere: xmpp@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: XMPP Working Group <xmpp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xmpp>, <mailto:xmpp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xmpp/>
List-Post: <mailto:xmpp@ietf.org>
List-Help: <mailto:xmpp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xmpp>, <mailto:xmpp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Nov 2015 10:12:11 -0000

> Wiadomość napisana przez Dave Cridland <dave@cridland.net> w dniu 05.11.2015, o godz. 10:46:
> 
> I think you want stanzas to be encapsulated as the same stanza in order to maintain the same semantics on, for example, routing, error handling, etc.


My point of view is, that envelope is just an envelope and shouldn’t be related to content.

If I want to send <iq type=„set” id=„1"> then I just send:

<message to=„X" >
  <encrypted xmlns=„…”>
    enc(<iq to=„X” type=„set” id=„1”></iq>)
  </encrypted>
</message>

and in response I will receive

<message from=„X" >
  <encrypted xmlns=„…”>
    enc(<iq from=„X” type=„result” id=„1”></iq>)
  </encrypted>
</message>


In case of using IQ envelope for IQ stanzas: what type of stanza should have envelope if response type is error? Also error?

<iq type=„error” from=„X” id=„1">
  <encrypted xmlns=„…”>
    enc(<iq type=„error” from=„X” id=„1"/>)
  <encrypted>
</iq>

I think that envelope should be independent from content. Let it be IQ stanza or Message stanza, but the same type of envelope for all type of contents.

--
Bartosz Małkowski
Tigase Polska
xmpp:bmalkow@malkowscy.net