Re: [OAUTH-WG] Proof-of-Possession Key Semantics for JWTs spec addressing final shepherd comment

Anthony Nadalin <tonynad@microsoft.com> Thu, 05 November 2015 04:45 UTC

Return-Path: <tonynad@microsoft.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 929CE1B3417 for <oauth@ietfa.amsl.com>; Wed, 4 Nov 2015 20:45:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
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 o1dU9NPXNHbw for <oauth@ietfa.amsl.com>; Wed, 4 Nov 2015 20:45:52 -0800 (PST)
Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0133.outbound.protection.outlook.com [65.55.169.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 455D81A89FB for <oauth@ietf.org>; Wed, 4 Nov 2015 20:45:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dEVoe094cP74cKJAIs9g3oTf891EvoeB60r28EVzOhU=; b=hkjbqkH5u7iOrqXl+t0GCEcXZcQqJ/N+8IgPwyeomrGGCzeoqs6EILk0N86QZZcGAK8NmMU9c51m7Sq/a4TXDNXpo94KMCjG0Qciar3f0yfqCT2uWFHKg5xR24sSHdgAaAvqSCDCifaO/z7obvAF52wpe0wTpBBu/mhI5rmHIEA=
Received: from BN3PR0301MB1234.namprd03.prod.outlook.com (10.161.207.22) by BN3PR0301MB1233.namprd03.prod.outlook.com (10.161.207.21) with Microsoft SMTP Server (TLS) id 15.1.312.18; Thu, 5 Nov 2015 04:45:49 +0000
Received: from BN3PR0301MB1234.namprd03.prod.outlook.com ([10.161.207.22]) by BN3PR0301MB1234.namprd03.prod.outlook.com ([10.161.207.22]) with mapi id 15.01.0312.014; Thu, 5 Nov 2015 04:45:49 +0000
From: Anthony Nadalin <tonynad@microsoft.com>
To: John Bradley <ve7jtb@ve7jtb.com>, Justin Richer <jricher@mit.edu>
Thread-Topic: [OAUTH-WG] Proof-of-Possession Key Semantics for JWTs spec addressing final shepherd comment
Thread-Index: AdEXFgZ+9CN0zPNjS1iUuZ0RolJO4QAA29mAAAA+4ZAADhjrAAAADBnAAANhSAAACJh0gAAAIrkAAABAqwAAAA9iQA==
Date: Thu, 5 Nov 2015 04:45:49 +0000
Message-ID: <BN3PR0301MB12343B9AA4D6842E09D6A5BFA6290@BN3PR0301MB1234.namprd03.prod.outlook.com>
References: <BY2PR03MB442F6667C49F8CF260D504DF52A0@BY2PR03MB442.namprd03.prod.outlook.com> <D2605993.2210B%kepeng.lkp@alibaba-inc.com> <BY2PR03MB4423CADD0E9897848961B99F52A0@BY2PR03MB442.namprd03.prod.outlook.com> <CA+k3eCRW=ggajMeL1z2cvLDkou9XsLMupicH-5HyDkadj0_o_g@mail.gmail.com> <BY2PR03MB44262EA4616E08287A91DB1F52A0@BY2PR03MB442.namprd03.prod.outlook.com> <563AA216.5010109@gmx.net> <A926F104-1624-4F32-9246-662594E66F5E@ve7jtb.com> <89A6E4DE-263B-4DB4-8882-54FA7103C721@mit.edu> <82079E8A-2AC8-4A42-9AF7-77FF2A3CAFC2@ve7jtb.com>
In-Reply-To: <82079E8A-2AC8-4A42-9AF7-77FF2A3CAFC2@ve7jtb.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=tonynad@microsoft.com;
x-originating-ip: [133.93.34.100]
x-microsoft-exchange-diagnostics: 1; BN3PR0301MB1233; 5:JdKxScvtDvTrkBekjBfLhtG3DQSQemQtk2e0VvZ3Ki8kJGcw/4V0Xg30JxKiNTFesYjm9GJWEcg40fDFwCLRT3OzoZa5KVcUBRoZci/7npy7ijcoAnHgfY89ytWJAgSkNqzrSeL64PgusOZvE+rTqA==; 24:VEEVNuKndd891qbSBIkNWDL+mK/e3Sn2opAfXnxmk0SudMmj+dNlwXeKvr75UNr+7rDj/9MRyHHONvlCzFdvrEzuG/KfgO5N0kX8YU1jAgw=; 20:QASuknmSP/I4kmFx/y8wZXRfI5yGpKdEmMn2bkn8khvEwVZ6ZR6/0zquxB32lqSklqTReIK1+WiUQAiJ1EqzhQ==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1233;
x-microsoft-antispam-prvs: <BN3PR0301MB1233107D2E8530E320303285A6290@BN3PR0301MB1233.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(240460790083961)(189930954265078)(108003899814671);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425024)(601004)(2401047)(520078)(5005006)(8121501046)(3002001)(10201501046)(61426024)(61427024); SRVR:BN3PR0301MB1233; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0301MB1233;
x-forefront-prvs: 0751474A44
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(479174004)(71364002)(52604005)(24454002)(199003)(377454003)(51914003)(189002)(13464003)(86362001)(2900100001)(102836002)(5008740100001)(66066001)(87936001)(76576001)(5004730100002)(11100500001)(10090500001)(77096005)(2950100001)(5007970100001)(15975445007)(74316001)(5003600100002)(93886004)(92566002)(122556002)(10400500002)(40100003)(81156007)(5002640100001)(97736004)(8990500004)(230783001)(5001960100002)(189998001)(19580395003)(5005710100001)(99286002)(10290500002)(5001770100001)(19580405001)(575784001)(33656002)(2171001)(76176999)(101416001)(54356999)(105586002)(50986999)(106356001)(86612001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0301MB1233; H:BN3PR0301MB1234.namprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2015 04:45:49.7168 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1233
Archived-At: <http://mailarchive.ietf.org/arch/msg/oauth/fyiMJtg_dyLCxO8FkyvTCJXMByc>
Cc: "<oauth@ietf.org>" <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Proof-of-Possession Key Semantics for JWTs spec addressing final shepherd comment
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth/>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Nov 2015 04:45:55 -0000

Not sure why you think its weaker as it would be a wrapped key that the hardware produces 

-----Original Message-----
From: OAuth [mailto:oauth-bounces@ietf.org] On Behalf Of John Bradley
Sent: Wednesday, November 4, 2015 8:43 PM
To: Justin Richer <jricher@mit.edu>
Cc: <oauth@ietf.org> <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Proof-of-Possession Key Semantics for JWTs spec addressing final shepherd comment

In the asymmetric case the use of a HSM or secure element is the argument for the client selecting the public key.   In those cases the client is doing the key gen in hardware so one hopes it is OK.   In the symetric case the client generating the key is weaker (as in I can’t think of any really good reason).


> On Nov 5, 2015, at 1:35 PM, Justin Richer <jricher@mit.edu> wrote:
> 
> I’d argue that it’s best practice, and in line with other parts of OAuth, if we assume the server generates it in the normal case (issuer -> presenter). Client generated token keys should be an exception, especially in the asymmetric case.
> 
> — Justin
> 
>> On Nov 5, 2015, at 1:32 PM, John Bradley <ve7jtb@ve7jtb.com> wrote:
>> 
>> Agreed the only real difference is the quality of the key.  If the server generates it, then it knows that the client is not using the fixed hex value of DEADBEEF for everything.
>> 
>> John B.
>>> On Nov 5, 2015, at 9:25 AM, Hannes Tschofenig <hannes.tschofenig@gmx.net> wrote:
>>> 
>>> I agree that the effect is the same. From a security point of view 
>>> there is only an impact if one of the two parties is in a better 
>>> position to generate random numbers, which is the basis for 
>>> generating a high entropy symmetric key.
>>> 
>>> On 11/04/2015 11:51 PM, Mike Jones wrote:
>>>> Thanks for the detailed read, Brian.  You’re right that in the 
>>>> symmetric case, either the issuer or the presenter can create the 
>>>> symmetric PoP key and share it with the other party, since the effect is equivalent.
>>>> I suspect that both the key distribution draft and this draft 
>>>> should be updated with a sentence or two saying that either 
>>>> approach can be taken.  Do others concur?
>>>> 
>>>> 
>>>> 
>>>>                                                          -- Mike
>>>> 
>>>> 
>>>> 
>>>> *From:*Brian Campbell [mailto:bcampbell@pingidentity.com]
>>>> *Sent:* Thursday, November 05, 2015 7:48 AM
>>>> *To:* Mike Jones
>>>> *Cc:* Kepeng Li; oauth@ietf.org
>>>> *Subject:* Re: [OAUTH-WG] Proof-of-Possession Key Semantics for 
>>>> JWTs spec addressing final shepherd comment
>>>> 
>>>> 
>>>> 
>>>> +1 for the diagrams making the document more understandable.
>>>> 
>>>> One little nit/question, step 1 in both Symmetric and Asymmetric 
>>>> keys shows the Presenter sending the key to the Issuer. It's 
>>>> possible, however, for the key to be sent the other way. Presenter 
>>>> sending it to the Issuer is probably preferred for asymmetric, 
>>>> especially if the client can secure the private keys in hardware. 
>>>> But I don't know if one way or the other is clearly better for 
>>>> symmetric case and PoP key distribution currently has it the other 
>>>> way <https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2ftools.ietf.org%2fhtml%2fdraft-ietf-oauth-pop-key-distribution-02%23section-4.2&data=01%7c01%7ctonynad%40microsoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=UgZEoqQiaUk9VdYpSQRvUeVVOQgIUg3UmAr18oQ7GtI%3d>.
>>>> Should the intro text somehow mention the possibility that the 
>>>> Issuer could create the key and send it to the Presenter?
>>>> 
>>>> I know it's only the introduction but it was just something that 
>>>> jumped out at me.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On Wed, Nov 4, 2015 at 9:04 AM, Mike Jones 
>>>> <Michael.Jones@microsoft.com <mailto:Michael.Jones@microsoft.com>> wrote:
>>>> 
>>>> Thanks for suggesting the diagrams, Kepeng. They make the document 
>>>> more understandable.
>>>> 
>>>> -- Mike
>>>> 
>>>> -------------------------------------------------------------------
>>>> -----
>>>> 
>>>> *From: *Kepeng Li <mailto:kepeng.lkp@alibaba-inc.com>
>>>> *Sent: *‎11/‎5/‎2015 12:57 AM
>>>> *To: *Mike Jones <mailto:Michael.Jones@microsoft.com>; 
>>>> oauth@ietf.org <mailto:oauth@ietf.org>
>>>> *Subject: *Re: Proof-of-Possession Key Semantics for JWTs spec 
>>>> addressing final shepherd comment
>>>> 
>>>> Thank you Mike.
>>>> 
>>>> 
>>>> 
>>>> The diagrams look good to me.
>>>> 
>>>> 
>>>> 
>>>> Kind Regards
>>>> 
>>>> Kepeng
>>>> 
>>>> 
>>>> 
>>>> *发件人**: *Mike Jones <Michael.Jones@microsoft.com 
>>>> <mailto:Michael.Jones@microsoft.com>>
>>>> *日期**: *Thursday, 5 November, 2015 12:32 am
>>>> *至**: *"oauth@ietf.org <mailto:oauth@ietf.org>" <oauth@ietf.org 
>>>> <mailto:oauth@ietf.org>>
>>>> *抄送**: *Li Kepeng <kepeng.lkp@alibaba-inc.com 
>>>> <mailto:kepeng.lkp@alibaba-inc.com>>
>>>> *主题**: *Proof-of-Possession Key Semantics for JWTs spec addressing 
>>>> final shepherd comment
>>>> 
>>>> 
>>>> 
>>>> Proof-of-Possession Key Semantics for JWTs draft -06 addresses the 
>>>> remaining document shepherd comment – adding use case diagrams to 
>>>> the introduction.
>>>> 
>>>> 
>>>> 
>>>> The updated specification is available at:
>>>> 
>>>> ·        https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2ftools.ietf.org%2fhtml%2fdraft-ietf-oauth-proof-of-possession-06&data=01%7c01%7ctonynad%40microsoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=6hE6dOO0I1%2ffF005rVknyOFHuB18gdpZg9dftExLtCw%3d
>>>> 
>>>> 
>>>> 
>>>> An HTML formatted version is also available at:
>>>> 
>>>> ·       
>>>> https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fse
>>>> lf-issued.info%2fdocs%2fdraft-ietf-oauth-proof-of-possession-06.htm
>>>> l&data=01%7c01%7ctonynad%40microsoft.com%7c9456670075d04a51f85508d2
>>>> e59ba294%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=EQd4rUcuyqdSP
>>>> gmibtcfjMpJm6RWWwCZC85%2bCboEs54%3d
>>>> 
>>>> 
>>>> 
>>>>                                                          -- Mike
>>>> 
>>>> 
>>>> 
>>>> P.S.  This note was also posted at 
>>>> https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fself-issued.info%2f%3fp%3d1471&data=01%7c01%7ctonynad%40microsoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=TMfX1tG5qucl%2be2KVpyMBuj72ZQ%2f%2bEKGoTyJyf%2bfJi4%3d and as @selfissued <https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2ftwitter.com%2fselfissued&data=01%7c01%7ctonynad%40microsoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=LfFAjchzCTh0x%2fY9hr0W%2fSohPGgb0JVjL%2f2Az%2f12BCg%3d>.
>>>> 
>>>> 
>>>> _______________________________________________
>>>> OAuth mailing list
>>>> OAuth@ietf.org <mailto:OAuth@ietf.org> 
>>>> https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fww
>>>> w.ietf.org%2fmailman%2flistinfo%2foauth&data=01%7c01%7ctonynad%40mi
>>>> crosoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91
>>>> ab2d7cd011db47%7c1&sdata=ND3ydaXOsPMsoRhE0Uyq0uznGy6MdYOLZQJHLhEQKJ
>>>> s%3d
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> OAuth mailing list
>>>> OAuth@ietf.org
>>>> https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fww
>>>> w.ietf.org%2fmailman%2flistinfo%2foauth&data=01%7c01%7ctonynad%40mi
>>>> crosoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91
>>>> ab2d7cd011db47%7c1&sdata=ND3ydaXOsPMsoRhE0Uyq0uznGy6MdYOLZQJHLhEQKJ
>>>> s%3d
>>>> 
>>> 
>>> _______________________________________________
>>> OAuth mailing list
>>> OAuth@ietf.org
>>> https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fwww
>>> .ietf.org%2fmailman%2flistinfo%2foauth&data=01%7c01%7ctonynad%40micr
>>> osoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91ab2
>>> d7cd011db47%7c1&sdata=ND3ydaXOsPMsoRhE0Uyq0uznGy6MdYOLZQJHLhEQKJs%3d
>> 
>> _______________________________________________
>> OAuth mailing list
>> OAuth@ietf.org
>> https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fwww.
>> ietf.org%2fmailman%2flistinfo%2foauth&data=01%7c01%7ctonynad%40micros
>> oft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91ab2d7c
>> d011db47%7c1&sdata=ND3ydaXOsPMsoRhE0Uyq0uznGy6MdYOLZQJHLhEQKJs%3d
> 

_______________________________________________
OAuth mailing list
OAuth@ietf.org
https://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fwww.ietf.org%2fmailman%2flistinfo%2foauth%0a&data=01%7c01%7ctonynad%40microsoft.com%7c9456670075d04a51f85508d2e59ba294%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=BLqSuDjWLY72fGm0UrpLwxQVnamMelggJeOpYJESVFs%3d