Re: [stir] JWT/JSON (was - Re: Review of: draft-ietf-stir-passport-05)

Christer Holmberg <christer.holmberg@ericsson.com> Fri, 05 August 2016 20:03 UTC

Return-Path: <christer.holmberg@ericsson.com>
X-Original-To: stir@ietfa.amsl.com
Delivered-To: stir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CA72212D18B for <stir@ietfa.amsl.com>; Fri, 5 Aug 2016 13:03:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.22
X-Spam-Level:
X-Spam-Status: No, score=-4.22 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, 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 HqCNcjntvWMa for <stir@ietfa.amsl.com>; Fri, 5 Aug 2016 13:03:14 -0700 (PDT)
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 945D212D15E for <stir@ietf.org>; Fri, 5 Aug 2016 13:03:14 -0700 (PDT)
X-AuditID: c1b4fb3a-c7bff700000009bd-d2-57a4f0fd124c
Received: from ESESSHC003.ericsson.se (Unknown_Domain [153.88.183.27]) by (Symantec Mail Security) with SMTP id DD.92.02493.DF0F4A75; Fri, 5 Aug 2016 22:03:12 +0200 (CEST)
Received: from ESESSMB208.ericsson.se ([169.254.8.233]) by ESESSHC003.ericsson.se ([153.88.183.27]) with mapi id 14.03.0301.000; Fri, 5 Aug 2016 22:03:09 +0200
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: "dcrocker@bbiw.net" <dcrocker@bbiw.net>, Paul Kyzivat <pkyzivat@alum.mit.edu>
Thread-Topic: [stir] JWT/JSON (was - Re: Review of: draft-ietf-stir-passport-05)
Thread-Index: AQHR7ySIy1H2XpMJyEWAavhfF7EeSqA6ynym
Date: Fri, 05 Aug 2016 20:03:09 +0000
Message-ID: <7594FB04B1934943A5C02806D1A2204B4BBB1D69@ESESSMB208.ericsson.se>
References: <07e0eb16-6758-cdf1-c571-1f1ed768e741@dcrocker.net> <D3C152B2.1A69BA%jon.peterson@neustar.biz> <b096b541-c8af-9617-c9d7-5a1beb5230e8@dcrocker.net> <D3C16040.1A6A09%jon.peterson@neustar.biz> <d66d91f0-9ea2-6295-e749-e48ea37b4892@dcrocker.net> <cfd714ce-6145-1b60-aca2-ae702a8c133d@dcrocker.net> <7594FB04B1934943A5C02806D1A2204B4771FF73@ESESSMB209.ericsson.se> <5fdf4ad3-1528-3d79-6bdb-b5eb350e5c2a@alum.mit.edu> <dbb24381-55fd-fa64-d32b-fcc50265ccab@dcrocker.net> <7594FB04B1934943A5C02806D1A2204B47723C55@ESESSMB209.ericsson.se>, <503738d8-c166-dfc1-d153-338d56b844c1@dcrocker.net>
In-Reply-To: <503738d8-c166-dfc1-d153-338d56b844c1@dcrocker.net>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Content-Type: multipart/alternative; boundary="_000_7594FB04B1934943A5C02806D1A2204B4BBB1D69ESESSMB208erics_"
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIIsWRmVeSWpSXmKPExsUyM2K7tC7jxyXhBmvZLX5/+sBmsWLDAVaL 5Wu3MTkwe/x9/4HJ49LOk2weS5b8ZApgjuKySUnNySxLLdK3S+DK2Hp7LnvBVcuKVVNaGRsY txl0MXJySAiYSGxbNYeti5GLQ0hgPaPEquuLmCCcxYwSF3+/A3I4ONgELCS6/2mDNIgIBEvs ObGLDSTMLKAs8W+3PUhYWCBQYuXWFSwQJUESJ1+8ZIewjST23VwEZrMIqEhc27WOCcTmFfCV mDd5JyvEqscsEnc2rQEr4hRwkJi8awKYzSggJvH91BqwBmYBcYmmLytZIY4WkFiy5zwzhC0q 8fLxP1aImnyJb3//MUIsEJQ4OfMJywRG4VlI2mchKZuFpAwibiDx5f1tKFtbYtnC18wQtr5E 9/vTTMjiCxjZVzGKFqcWF+emGxnppRZlJhcX5+fp5aWWbGIERtTBLb+tdjAefO54iFGAg1GJ h1fhypJwIdbEsuLK3EOMEhzMSiK8h94BhXhTEiurUovy44tKc1KLDzFKc7AoifP6v1QMFxJI TyxJzU5NLUgtgskycXBKNTAuEp/OfTvOjEPMZfLdHz61GyfaOvHG/j048+jpua9Lp/qxxpTe C0ueedCgdt7FrhDTncZzwwMazh6xPeN2Old4Z7VpcpiUtqhNfWZkymGWuw4S5XOXe8ywnTXV T+HO6beF2Xzn3584dyiA1/uax4JzQbuvFJQrtnrNX/ti+u6jEgfyMh9PepenxFKckWioxVxU nAgASul1Z6QCAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/stir/anAJ79JDG0a7kz29b03EjsTy2yA>
Cc: "stir@ietf.org" <stir@ietf.org>
Subject: Re: [stir] JWT/JSON (was - Re: Review of: draft-ietf-stir-passport-05)
X-BeenThere: stir@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Secure Telephone Identity Revisited <stir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stir>, <mailto:stir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/stir/>
List-Post: <mailto:stir@ietf.org>
List-Help: <mailto:stir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stir>, <mailto:stir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 05 Aug 2016 20:03:17 -0000

Hi Dave,

I don't know whether the WG has yet decided whether there will be options and alternatives (i.e. whether sending of claims/headers will be mandatory, optional or forbidden) - so we don't yet know whether there will be an "if" :)

But, if there will be an "if", 4424bis needs to describe how to correctly handle the different options and alternatives.

Regards,

Christer

Sent from my Windows Phone
________________________________
From: Dave Crocker<mailto:dhc@dcrocker.net>
Sent: ‎05/‎08/‎2016 17:20
To: Christer Holmberg<mailto:christer.holmberg@ericsson.com>; Paul Kyzivat<mailto:pkyzivat@alum.mit.edu>
Cc: stir@ietf.org<mailto:stir@ietf.org>
Subject: Re: [stir] JWT/JSON (was - Re: Review of: draft-ietf-stir-passport-05)

Christer,


On 8/4/2016 11:45 PM, Christer Holmberg wrote:
>
> The receiver needs to be able to parse JSON if the sender includes the
> claims, in order to verify the signature.

Alternatives and options make specifications more complex and often
introduce potential non-determinacies.  So the 'if' that you cite is not
a small matter.

In practical terms, the 'if' means that verifiers must be able to parse
json as well as encode it.


> Also, whatever headers we include, I assume the receiver should be able
> to parse them.
>
> But, parsing JSON is not a difficult thing to do, and there are
> available libraries for those who don't want to implement the parser
> themselves.

Just to make sure this sub-thread retains its context:  I did not
comment on the choice of JSON/JWT in the actual review.  It's not an
irrational or horrible choice.

But it does add overhead.  It adds it to the effort needed to understand
the specifications.  And it adds it to the software.  (It might also add
it to the execution of the software, but I suspect that is, at worst, a
negligible difference here.)

One of the more deceptive parts of writing standards is the seduction of
"is not a difficult thing to do".  In most cases where that sort of
comment is offered, it is quite true.  The problem is with incremental
complexities.  A not-difficult here; a not-difficult there... They
really do mount up.

By way of example, having to send the reader off to become proficient in
two additional specifications is not a small increment in developmental
overhead, especially when those specification have no natural -- ie,
pre-occurring -- relevance to the current work.

d/
--

   Dave Crocker
   Brandenburg InternetWorking
   bbiw.net