Re: [OAUTH-WG] Followup on draft-ietf-oauth-token-exchange-12.txt

Mike Jones <Michael.Jones@microsoft.com> Thu, 17 May 2018 13:26 UTC

Return-Path: <Michael.Jones@microsoft.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0A7B912EAF6 for <oauth@ietfa.amsl.com>; Thu, 17 May 2018 06:26:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 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_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.com
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 iqFfah18IiXe for <oauth@ietfa.amsl.com>; Thu, 17 May 2018 06:26:11 -0700 (PDT)
Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0132.outbound.protection.outlook.com [104.47.34.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 28BA012DB6D for <oauth@ietf.org>; Thu, 17 May 2018 06:26:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VyoYNCinopP1GZTia8Flqup4l1K+AzjKBFKxkWd+h4s=; b=YJKIaaMSdLiXrqQ6u2GeF0lOHopBFNp6pKeyhCpshi8Ic7H5R2hOin/Q1IgGzoNQmq//eJZeY22kLaN1HO+eK7pa3AWRcdfCfMO6O7vypDZ239yXang9ujXFcH3UswdA0incuPj/0yOTmIyAHGR/D6JOEvi17ibIRcHSdPy59gY=
Received: from SN6PR00MB0301.namprd00.prod.outlook.com (52.132.117.155) by SN6PR00MB0415.namprd00.prod.outlook.com (52.132.118.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.814.0; Thu, 17 May 2018 13:26:05 +0000
Received: from SN6PR00MB0301.namprd00.prod.outlook.com ([fe80::e982:2d7:adba:3cf6]) by SN6PR00MB0301.namprd00.prod.outlook.com ([fe80::e982:2d7:adba:3cf6%2]) with mapi id 15.20.0820.000; Thu, 17 May 2018 13:26:05 +0000
From: Mike Jones <Michael.Jones@microsoft.com>
To: Bill Burke <bburke@redhat.com>, Brian Campbell <bcampbell@pingidentity.com>
CC: oauth <oauth@ietf.org>
Thread-Topic: [OAUTH-WG] Followup on draft-ietf-oauth-token-exchange-12.txt
Thread-Index: AQHT04kMYSOXZXkjckeL5mvf+b6Pp6QHHXqAgALYHoCAKSjwgIAA6oMAgAAT9vA=
Date: Thu, 17 May 2018 13:26:04 +0000
Message-ID: <SN6PR00MB03015D1AAF670587060EE199F5910@SN6PR00MB0301.namprd00.prod.outlook.com>
References: <CABcZeBNQaqg3wFuo=w3h4k+bB44pEPnoR-zZYM+AR7YDA=O8Gg@mail.gmail.com> <CA+k3eCRDyn7-1KEVYai8b-G_bLQZGTgiS2VFG9W3NWy2Ttu-nw@mail.gmail.com> <ef06d115-b178-16c3-76ca-4693d273ae41@free.fr> <CA+k3eCTeBqPHTs_vUrFOcEOT3CHJptJN8m3_M3LDYyL=WrL5BA@mail.gmail.com> <CABRXCmxSY75_tSA6uE4jtMMeX4aXOGEzWBLhkKXOOgg9ZUNNuA@mail.gmail.com>
In-Reply-To: <CABRXCmxSY75_tSA6uE4jtMMeX4aXOGEzWBLhkKXOOgg9ZUNNuA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [2001:1b18:a3:300:f151:33fc:5438:4b81]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; SN6PR00MB0415; 7:E8hKpShGrX9AzmCwG3WhQaFmEy8/5EYmBnr0lcNbkL4aaM7jvmOZSxCBrAy/BQ+YNIrcmpMAcb7WWwO/IPQspgrukOMoBmQHuHJ7f5yAAL1vfrFy1L0amQa1GO54k/7P+jCKhZY9f3N0fZm4Cztx/jxnsTncWCj/FVo6r1INYVIX1j4nY9Bq/mn0LrmiGEPdBIEwV3lvjPapwBUS+lx3Mqdssc+lEMBsEmdD4dtvYSQxfkLV4WiV7p54JFJiGybb; 20:ffMoqBSZHN/MpyQueO1Ob1pDxwVFmM5T6pqXQQoH8m8nPe1zqMrpJkW4XnGM7eVKU+HJq/tUjXMi3BFp+weCXxKddA/JzCA9cIKkue5DvMHtazw5ZceLqCwpKT4c4WQk+3MrTHk6VLy9cosdrInLiDXE2LGwTzpe4Pc0JoRqL1I=
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7193020); SRVR:SN6PR00MB0415;
x-ms-traffictypediagnostic: SN6PR00MB0415:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.Jones@microsoft.com;
x-microsoft-antispam-prvs: <SN6PR00MB04150E5EA63C566D7AE29D71F5910@SN6PR00MB0415.namprd00.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(191636701735510);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(2017102700009)(2017102701064)(6040522)(2401047)(8121501046)(5005006)(2017102702064)(20171027021009)(20171027022009)(20171027023009)(20171027024009)(20171027025009)(20171027026009)(2017102703076)(3002001)(10201501046)(3231254)(2018427008)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:SN6PR00MB0415; BCL:0; PCL:0; RULEID:; SRVR:SN6PR00MB0415;
x-forefront-prvs: 067553F396
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(376002)(346002)(396003)(39380400002)(366004)(199004)(189003)(13464003)(102836004)(59450400001)(46003)(6506007)(53546011)(68736007)(8936002)(76176011)(93886005)(97736004)(3660700001)(99286004)(8676002)(3280700002)(81166006)(81156014)(7696005)(186003)(74316002)(86612001)(2906002)(305945005)(476003)(5660300001)(7736002)(22452003)(86362001)(110136005)(5890100001)(446003)(11346002)(5250100002)(316002)(486006)(72206003)(33656002)(25786009)(6116002)(10290500003)(966005)(14454004)(478600001)(4326008)(9686003)(6246003)(53936002)(229853002)(10090500001)(6306002)(55016002)(6436002)(2900100001)(8990500004)(105586002)(106356001)(15866825006); DIR:OUT; SFP:1102; SCL:1; SRVR:SN6PR00MB0415; H:SN6PR00MB0301.namprd00.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: kQtqJBu5y5BGdIpXvbqAVEQDQSSMGS6UW0H5kdrbJ2VbNYlj128Z38uM18W/yUFNxG1lzX1cvXn5kii7UvhzeHUgl/huJAo7qAUboySdUX/Af+x5R+RDpBs5C3RagGg6hOxn9MKOUk45FIClSCCENB5Be4JUB1RiLgt4Q8ICCFZ/UJ38guQQdBC5ItMLpzBY
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Office365-Filtering-Correlation-Id: 03f6c7c5-43c7-432e-e8ed-08d5bbf9bdeb
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 03f6c7c5-43c7-432e-e8ed-08d5bbf9bdeb
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2018 13:26:04.9077 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR00MB0415
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/l2y9YCltEJmskhtrCzMJMl04SwQ>
Subject: Re: [OAUTH-WG] Followup on draft-ietf-oauth-token-exchange-12.txt
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.22
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, 17 May 2018 13:26:15 -0000

Moving the actor claim to a separate specification would only make things more complicated for developers.  There already plenty of OAuth specs.  Needlessly adding another one will only make related things harder to find.

Just like in the JWT [RFC 7519] spec itself in which use of all the claims is optional, use of the actor claim in this spec.  If you don't need it, don't use it.  Just because some won't use it is no better an argument for moving it to a different spec than the argument that JWT should have defined each of its claims in different specs.  That would have made things harder, not easier.

				-- Mike

-----Original Message-----
From: OAuth <oauth-bounces@ietf.org> On Behalf Of Bill Burke
Sent: Thursday, May 17, 2018 2:11 PM
To: Brian Campbell <bcampbell@pingidentity.com>
Cc: oauth <oauth@ietf.org>
Subject: Re: [OAUTH-WG] Followup on draft-ietf-oauth-token-exchange-12.txt

My personal opinion is that I'm glad this actor stuff is optional.
For one, none of our users have asked for it and really only do simple exchanges.  Secondly, the rules for who can exchange what for what is controlled and defined within our AS.  Makes things a lot simpler on the client.  I kind of wish the actor stuff would be defined in a separate specification.  I don't see us implementing it unless users start asking us to.

On Wed, May 16, 2018 at 6:11 PM, Brian Campbell <bcampbell@pingidentity.com> wrote:
> Well, it's already called the "actor claim" so the claimed part is 
> kind of implied. And "claimed actor claim" is a rather awkward. 
> Really, all JWT claims are "claimed something" but they don't include 
> the "claimed" bit in the name. RFC 7519, for example, defines the 
> subject claim but not the claimed subject claim.
>
> On Fri, Apr 20, 2018 at 11:38 AM, Denis <denis.ietf@free.fr> wrote:
>>
>> Brian,
>>
>> Eric said: "what is the RP supposed to do when they encounter it? 
>> This seems kind of under specified".
>>
>> After reading your explanations below, it looks like the RP can do 
>> anything he wants with the "actor".
>> It is a "claimed actor" and, if we keep the concept, it should be 
>> called as such. Such a claim cannot be verified.
>> A RP could copy and paste that claim in an audit log. No standard 
>> action related to the content of such a claim can be specified in the 
>> spec. If the content of a "claimed actor" is used by the RP, it 
>> should be only used as an hint and thus be subject to other 
>> verifications which are not specified in this specification.
>>
>> Denis
>>
>> Eric, I realize you weren't particularly impressed by my prior 
>> statements about the actor claim but, for lack of knowing what else 
>> to say, I'm going to kind of repeat what I said about it over in the 
>> Phabricator tool and add a little color.
>>
>> The actor claim is intended as a way to express that delegation has 
>> happened and identify the entities involved. Access control or other 
>> decisions based on it are at the discretion of the consumer of the 
>> token based on whatever policy might be in place.
>>
>> There are JWT claims that have concise processing rules with respect 
>> to whether or not the JWT can be accepted as valid. Some examples are "aud"
>> (Audience), "exp" (Expiration Time), and "nbf" (Not Before) from RFC 7519.
>> E.g. if the token is expired or was intended for someone or something 
>> else, reject it.
>>
>> And there are JWT claims that appropriately don't specify such 
>> processing rules and are solely statements of fact or circumstance. 
>> Also from RFC 7519, the "sub" (Subject) and "iat" (Issued At) claims are good examples of such.
>> There might be application or policy specific rules applied to the 
>> content of those kinds of claims (e.g. only subjects from a 
>> particular organization are able to access tenant specific data or, 
>> less realistic but still possible, disallow access for tokens issued 
>> outside of regular business
>> hours) but that's all outside the scope of a specification's 
>> definition of the claim.
>>
>> The actor claim falls into the latter category. It's a way for the 
>> issuer of the token to tell the consumer of the token what is going 
>> on. But any action to take (or not) based on that information is at 
>> the discretion of the token consumer. I honestly don't know it could 
>> be anything more. And don't think it should be.
>>
>> There are two main expected uses of the actor claim (that I'm aware 
>> of
>> anyway) that describing here might help. Maybe. One is a human to 
>> human delegation case like a customer service rep doing something on 
>> behalf of an end user. The subject would be that user and the actor 
>> would be the customer service rep. And there wouldn't be any chaining 
>> or nesting of the actor. The other case is so called service chaining 
>> where a system might exchange a token it receives for a new token 
>> that it can use to call a downstream service. And that service in 
>> turn might do another exchange to get a new token suitable to call 
>> yet another downstream service. And again and so on and turtles all 
>> the way. I'm not necessarily endorsing that level of granularity in 
>> chaining but it's bound to happen somewhere/sometime. The nested 
>> actor claim is able to express that all that has happened with the 
>> top level or outermost one being the system currently using the token 
>> and prior systems being nested.. What actually gets done with that 
>> information is up to the respective systems involved. There might be 
>> policy about what system is allowed to call what other system that is 
>> enforced. Or maybe the info is just written to an audit log 
>> somewhere. Or something else. I don't know. But whatever it is application/deployment/policy dependent and not specifiable by a spec.
>>
>>
>>
>>
>>
>>
>> On Fri, Apr 13, 2018 at 6:38 PM, Eric Rescorla <ekr@rtfm.com> wrote:
>>>
>>> Hi folks,
>>>
>>> I've gone over draft-ietf-oauth-token-exchange-12 and things seem 
>>> generally OK. I do still have one remaining concern, which is about 
>>> the actor claim. Specifically, what is the RP supposed to do when 
>>> they encounter it? This seems kind of underspecified.
>>>
>>> In particular:
>>>
>>> 1. What facts am I supposed to know here? Merely that everyone in
>>>    the chain signed off on the next person in the chain acting as them?
>>>
>>> 2. Am I just supposed to pretend that the person presenting the token
>>>    is the identity at the top of the chain? Say I have the
>>>    delegation A -> B -> C, and there is some resource which
>>>    B can access but A and C cannot, should I give access?
>>>
>>> I think the first question definitely needs an answer. The second 
>>> question I guess we could make not answer, but it's pretty hard to 
>>> know how to make a system with this left open..
>>>
>>> -Ekr
>>>
>>>
>>> _______________________________________________
>>> OAuth mailing list
>>> OAuth@ietf.org
>>> https://www.ietf.org/mailman/listinfo/oauth
>>>
>>
>>
>> CONFIDENTIALITY NOTICE: This email may contain confidential and 
>> privileged material for the sole use of the intended recipient(s). 
>> Any review, use, distribution or disclosure by others is strictly 
>> prohibited..  If you have received this communication in error, 
>> please notify the sender immediately by e-mail and delete the message 
>> and any file attachments from your computer. Thank you.
>>
>> _______________________________________________
>> OAuth mailing list
>> OAuth@ietf.org
>> https://www.ietf.org/mailman/listinfo/oauth
>>
>>
>>
>> _______________________________________________
>> OAuth mailing list
>> OAuth@ietf.org
>> https://www.ietf.org/mailman/listinfo/oauth
>>
>
>
> CONFIDENTIALITY NOTICE: This email may contain confidential and 
> privileged material for the sole use of the intended recipient(s). Any 
> review, use, distribution or disclosure by others is strictly 
> prohibited..  If you have received this communication in error, please 
> notify the sender immediately by e-mail and delete the message and any 
> file attachments from your computer. Thank you.
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>



--
Bill Burke
Red Hat

_______________________________________________
OAuth mailing list
OAuth@ietf.org
https://www.ietf.org/mailman/listinfo/oauth