Re: [COSE] Stephen Farrell's Discuss on draft-ietf-cose-msg-20: (with DISCUSS and COMMENT)

Göran Selander <goran.selander@ericsson.com> Tue, 08 November 2016 08:34 UTC

Return-Path: <goran.selander@ericsson.com>
X-Original-To: cose@ietfa.amsl.com
Delivered-To: cose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0A577129B21; Tue, 8 Nov 2016 00:34:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.221
X-Spam-Level:
X-Spam-Status: No, score=-4.221 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=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 yLsGRvl8l01w; Tue, 8 Nov 2016 00:34:41 -0800 (PST)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 25991129B4F; Tue, 8 Nov 2016 00:34:40 -0800 (PST)
X-AuditID: c1b4fb3a-45dfe700000070a2-f3-58218e1d1b9a
Received: from ESESSHC003.ericsson.se (Unknown_Domain [153.88.183.27]) by (Symantec Mail Security) with SMTP id 99.B8.28834.D1E81285; Tue, 8 Nov 2016 09:34:39 +0100 (CET)
Received: from ESESSMB303.ericsson.se ([169.254.3.133]) by ESESSHC003.ericsson.se ([153.88.183.27]) with mapi id 14.03.0319.002; Tue, 8 Nov 2016 09:34:37 +0100
From: Göran Selander <goran.selander@ericsson.com>
To: Jim Schaad <ietf@augustcellars.com>, 'Stephen Farrell' <stephen.farrell@cs.tcd.ie>, 'Justin Richer' <jricher@mit.edu>
Thread-Topic: [COSE] Stephen Farrell's Discuss on draft-ietf-cose-msg-20: (with DISCUSS and COMMENT)
Thread-Index: AQHSJ/5+PpYzxQEGkUCV86lFjxObP6Cv0hiAgArxbwCAAAG5AIABAk0AgAjA9ICAACEUAIABTcyAgAAt+4CAAJfEAIAIKMiA
Date: Tue, 08 Nov 2016 08:34:37 +0000
Message-ID: <D4474614.6C35F%goran.selander@ericsson.com>
References: <147665141739.25813.4419576200342341528.idtracker@ietfa.amsl.com> <029401d227f7$5cdb7fa0$16927ee0$@augustcellars.com> <e9ca5f76-e0a1-2824-4ddc-b74c416c2f0f@cs.tcd.ie> <822A08BC-5710-48E6-BCC7-AC86A554EFEC@mit.edu> <476D703F-727E-49D9-89C1-F6FD1092D55E@mit.edu> <94353594-ef7c-d909-605a-391ef2502c68@cs.tcd.ie> <D436AB37.6B4EB%goran.selander@ericsson.com> <066401d23474$a3659580$ea30c080$@augustcellars.com> <da41c9c9-6eb1-99da-227f-e37af69f0349@cs.tcd.ie> <07f701d2352c$134c3400$39e49c00$@augustcellars.com> <995E9BD0-E43D-401C-830C-45B72F8ED064@ericsson.com> <08bb01d2358e$f30ba320$d922e960$@augustcellars.com>
In-Reply-To: <08bb01d2358e$f30ba320$d922e960$@augustcellars.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.6.9.160926
x-originating-ip: [153.88.183.146]
Content-Type: text/plain; charset="utf-8"
Content-ID: <66132935E956B84CAD83CFD74818D036@ericsson.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMIsWRmVeSWpSXmKPExsUyM2K7tK58n2KEQfMLIYt3W/cxWkzbOpXV ovfRbUaLGX8mMlusnv6dzWLDtZesFtP3XmN3YPfYOGc6m8fa7qtsHkuW/GTyaDpzlDmAJYrL JiU1J7MstUjfLoEro2vFDfaCNZoVm8/tZm9gXKLRxcjJISFgIvH6ZgNbFyMXh5DAOkaJOfv7 mSCcxYwSsz98ZgWpYhNwkXjQ8IgJxBYRqJb4v7gZrIhZYCOjxKIPC1hAEsICqRJXWs9BFaVJ nHg8hRHCzpPY0LwfLM4ioCKx9ulksKG8AhYS6+9MYofY1soq0XRhB1gDp4CDxJMV19hAbEYB MYnvp9aANTMLiEvcejKfCeJuAYkle84zQ9iiEi8f/wMaysEhKqAnseZ+GERYSeLHhkssIGFm AU2J9bv0IaZYS9yd+QRqoqLElO6H7BDnCEqcnPmEZQKj+Cwky2YhdM9C0j0LSfcsJN0LGFlX MYoWpxYX56YbGemlFmUmFxfn5+nlpZZsYgRG7cEtv612MB587niIUYCDUYmH98M0hQgh1sSy 4srcQ4wSHMxKIrxKnYoRQrwpiZVVqUX58UWlOanFhxilOViUxHnNVt4PFxJITyxJzU5NLUgt gskycXBKNTDKhalvlzm+oPAUv/mK018i3z1YXKzhY/GN5+uky2vFZhx6s9J9o4/8KZfwNptG 5tvnfvs0XZmo6u2d8GPmet0Vh486PHu7+Ne0sjUXAhIDp9yexZCn3H3zqfitVZc2n7mw9jVn 1JfdSosPTvdz1S7YaJrGcWXf6S+HO7es/Dx/RXadzJzi6N8nw5RYijMSDbWYi4oTATYsKkTW AgAA
Archived-At: <https://mailarchive.ietf.org/arch/msg/cose/6UBekjVwWDnrm_OAptnzxu9VYvY>
Cc: "cose-chairs@ietf.org" <cose-chairs@ietf.org>, "cose@ietf.org" <cose@ietf.org>, 'The IESG' <iesg@ietf.org>, "draft-ietf-cose-msg@ietf.org" <draft-ietf-cose-msg@ietf.org>
Subject: Re: [COSE] Stephen Farrell's Discuss on draft-ietf-cose-msg-20: (with DISCUSS and COMMENT)
X-BeenThere: cose@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: CBOR Object Signing and Encryption <cose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cose>, <mailto:cose-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cose/>
List-Post: <mailto:cose@ietf.org>
List-Help: <mailto:cose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cose>, <mailto:cose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 08 Nov 2016 08:34:45 -0000


On 2016-11-03 05:58, "Jim Schaad" <ietf@augustcellars.com> wrote:

>
>
>> -----Original Message-----
>> From: Göran Selander [mailto:goran.selander@ericsson.com]
>> Sent: Wednesday, November 02, 2016 12:55 PM
>> To: Jim Schaad <ietf@augustcellars.com>
>> Cc: Stephen Farrell <stephen.farrell@cs.tcd.ie>; Justin Richer
>><jricher@mit.edu>;
>> cose-chairs@ietf.org; draft-ietf-cose-msg@ietf.org; The IESG
>><iesg@ietf.org>;
>> cose@ietf.org
>> Subject: Re: [COSE] Stephen Farrell's Discuss on
>>draft-ietf-cose-msg-20: (with
>> DISCUSS and COMMENT)
>> 
>> 
>> 
>> > On 2 nov. 2016, at 18:11, Jim Schaad <ietf@augustcellars.com> wrote:
>> >
>> >
>> >
>> >> -----Original Message-----
>> >> From: Stephen Farrell [mailto:stephen.farrell@cs.tcd.ie]
>> >> Sent: Tuesday, November 01, 2016 2:16 PM
>> >> To: Jim Schaad <ietf@augustcellars.com>; 'Justin Richer'
>><jricher@mit.edu>
>> >> Cc: cose-chairs@ietf.org; cose@ietf.org; 'The IESG' <iesg@ietf.org>;
>>draft-
>> ietf-
>> >> cose-msg@ietf.org
>> >> Subject: Re: Stephen Farrell's Discuss on draft-ietf-cose-msg-20:
>>(with
>> DISCUSS
>> >> and COMMENT)
>> >>
>> >>
>> >> Hiya,
>> >>
>> >>> On 01/11/16 19:17, Jim Schaad wrote:
>> >>> Another thread dealing with this issue includes
>> >>> https://www.ietf.org/mail-archive/web/cose/current/msg00981.html  -
>> >>> basically the subject is 'make "alg" field optional'
>> >>>
>> >>> Usual suspects (Göran, Ludwig, Francesca) on one side, me and a
>> >>> couple of others on the other side.  Interestingly the antis
>>included
>> >>> Mike who argued for this in the JOSE.
>> >>
>> >> Heh. To be honest, I'm not sure what's best here. Normally if
>> >> it were just my design tastes against the WGs, I'd happily
>> >> fold. But in this case we have an appendix that says how to
>> >> not do what's a MUST in the body of the spec. And I suspect
>> >> that this could damage interop depending on whether or not
>> >> libraries follow the MUST or not.
>> >>
>> >> Do we think there's a way to square this circle and somehow
>> >> get rid of the appendix to get to a result folks can all use?
>> >
>> > I wish I knew.  The fact that the CORE draft is not even complying
>>with how
>> the appendix is saying to do things almost leads me to think that we
>>should just
>> kill that section of the appendix and re-evaluate things.
>
>I may have misinterpreted what Göran said and this may not be the case.
>

Sorry for the delay, we have had some offline discussions.

I think the core of the problem is the desire to use COSE for multiple
purposes, in particular: 1) 1-pass stateless message forwarding and 2)
stateful message forwarding in a session; each with its requirements on
message fields. In the former case it is necessary to send the algorithm,
but not in the latter. In the latter it is necessary to send a
session/context identifier but not in the former, and moreover there is no
such field is defined in the current draft. We therefore used  'kid' for
this purpose contradicting   its intended use which led to this
discussion. But for that particular case it is easy to resolve: We can
simply defining a label for a session/context identifier, replace ‘kid’
and there are no contradictions with the current body or appendix. So I
withdraw my previous comment.

This does not solve the general issue with the appendix contradicting the
body, but I don’t think that is possible to solve if we want to support
multiple ‘modes’ of operation: Either we define explicitly different
modes, and what is required/allowed in terms of message fields for these
modes, or we define one mode and acknowledge that there may be other
modes. 

(Compare Groucho Marx: "Those are my principles, and if you don't like
them... well, I have others.” :-)

Göran