Re: [Txauth] Key handle vs client id & handle

Mike Varley <mike.varley@securekey.com> Tue, 14 July 2020 17:54 UTC

Return-Path: <mike.varley@securekey.com>
X-Original-To: txauth@ietfa.amsl.com
Delivered-To: txauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D8C5C3A097D for <txauth@ietfa.amsl.com>; Tue, 14 Jul 2020 10:54:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=securekeytechnologies.onmicrosoft.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 lGvkXTqkJjst for <txauth@ietfa.amsl.com>; Tue, 14 Jul 2020 10:54:28 -0700 (PDT)
Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670117.outbound.protection.outlook.com [40.107.67.117]) (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 93E223A095A for <txauth@ietf.org>; Tue, 14 Jul 2020 10:54:28 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZWM0Um4GbkNn8Y6HDbl5VM/txiubUi9ETUrIetk/md4WCMbvnGFRStFR9jUCknIoxVOcetuS6v63WgtkdIkCAsGbDh+43GipvqpRB27MBn+Y4pgOplyky67dKJJouZTk0GNRmHTrnYjrggu141XNw0Jz8rUO78V8x8LYt49SGR/Ar10EGu8snDJhjm+bj7xNUyWG9wkP/wd2Ai3yWpgLwYp3iru316jayxK2Nvn7ZCJEyq71KmB1wAFrMrp9t/8Td+a9srArMG9VCJbKP407UxUpPdkmWE74JsW0adMTljP5kbVZdaUoCzidbz5ScIzobtWv+RGRetEEgrVql5Zs2Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wYOXMn8ZgpSe7qOnz+/jUUWcDuYfz+B3B2kvB91qNRI=; b=S58CDcde/ZW+o0xkizkv4h7R4PvN4wF+Ynm3j3sTY/lAXgNxMghqi+cVhTSc/bNBFI5q9t++kIXwUv3/i9OUxMKf2NtlDek33J79P4WVdb0hMyA5czVwsLCRjuV5BZLVcqtIlA9I56tkLB/ra95QaoLZ4zJhKLrOyY/QYF473bHf7wlL+DaWWKQqwK4cx5ZOF12aDRNN2k+x81qSpD6sddf/62PCoLvenoKHCXi9iznyb2aeIY+duvse1TbFA4ugL7jHn8dd3HPm59oTgmKbQj/lpvc3kMQm9wenvy/F026R1Iu7t9WRD9slzOFvvsZ6PO5zGQG/M4FkXk1OKHcgzA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=securekey.com; dmarc=pass action=none header.from=securekey.com; dkim=pass header.d=securekey.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=securekeytechnologies.onmicrosoft.com; s=selector1-securekeytechnologies-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wYOXMn8ZgpSe7qOnz+/jUUWcDuYfz+B3B2kvB91qNRI=; b=uWuGzDxaOV6pNwKl8BAT8jPHzPTkZfRq07zYilQ0YbBUXXydhl19DCs2IuPr6UP3M1CTQf37FFftoGvyhY8WGZoI44cwAeCZshlPAM0OngejGjoQ9KZqJoFkrJTuuoYlM9RyBMs0m1xJtZ3vWM9li+TifHK0ej4pfHBXKnGivcU=
Received: from YTOPR0101MB2316.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:20::25) by YTBPR01MB3647.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:23::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Tue, 14 Jul 2020 17:54:26 +0000
Received: from YTOPR0101MB2316.CANPRD01.PROD.OUTLOOK.COM ([fe80::c57f:32dc:ba85:19a3]) by YTOPR0101MB2316.CANPRD01.PROD.OUTLOOK.COM ([fe80::c57f:32dc:ba85:19a3%5]) with mapi id 15.20.3174.025; Tue, 14 Jul 2020 17:54:26 +0000
From: Mike Varley <mike.varley@securekey.com>
To: Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org>, Dick Hardt <dick.hardt@gmail.com>, "txauth@ietf.org" <txauth@ietf.org>, Justin Richer <jricher@mit.edu>
Thread-Topic: [Txauth] Key handle vs client id & handle
Thread-Index: AQHWWgfQI3P9P86/Z0OmlGTftB7qcQ==
Date: Tue, 14 Jul 2020 17:54:26 +0000
Message-ID: <29AAF03B-12B6-4E61-9BF4-EF951506931B@securekey.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.38.20061401
authentication-results: dmarc.ietf.org; dkim=none (message not signed) header.d=none;dmarc.ietf.org; dmarc=none action=none header.from=securekey.com;
x-originating-ip: [50.101.239.135]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 06e032f3-a714-4926-e5c0-08d8281ef325
x-ms-traffictypediagnostic: YTBPR01MB3647:
x-microsoft-antispam-prvs: <YTBPR01MB364768B7C931CCB5E1CF7700E4610@YTBPR01MB3647.CANPRD01.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 5OBqrn/l6afz4uwHMWhpjyPrfKdKZtGMUidXJGZjbneeLG4d4BYBKIrJoSfcs3PdFb2cUES7Fogg8cQYhCduTZgCRdT5BFK2g1A3p8nO3vfJqbhvt6HAJS7jQP1viyF0JCBymdNqYBPrcFmI3k2i4fiSORe7ILn7Y9Jl9/B4e2fqEUPTBAIJbv8Iz10oxg77vLozLqnPXCHqpfbFG5nw6VKnSDJUfq39tOHM2v69/o6WkezMxuVrWL8qWFJDP0EkStjVn/TuATaGw9YK8pOzN68QDeivTFZcC0F8ZkeItM2wIxaO9zN/6lUm36eyuKKiG/Sl+3G+EJ6MXWnX9+lgB5C/dNYJcARuTBIDrXRi/Ksf26D92qD2TI12gV9xhu93pL5UM4c//vtuixGQH7WEeg==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTOPR0101MB2316.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(136003)(376002)(39830400003)(346002)(366004)(36756003)(478600001)(44832011)(6512007)(2906002)(66946007)(71200400001)(8936002)(966005)(186003)(83380400001)(21615005)(66476007)(64756008)(26005)(2616005)(66556008)(66446008)(166002)(91956017)(76116006)(6506007)(53546011)(33656002)(6486002)(110136005)(8676002)(5660300002)(86362001)(45080400002)(316002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: OHuOcXBUbKRrSExeIcusCTT36lnqo8wAKUS+YXwfkkoF6piekDL434f4kExHPyRlkVrVMqdQXlAihV15rrYiBABaCdYfIYw8aL1jozTX4pOl6PAmQ8IUaE+il6QRztK/0PSt52lPKL2N1LZGcD5isTsDOhTAga6lXDGsEBHdUtDm9EuV68SMcVRcv/KuzFi5TgsBjpqQ8P5Zt/YDZsX1D5EC6rne0McRB1HLwnux7yUECdgh3jISCorhD3cQ15xOFcDd2fQ7WWKg3eSCkXm9k5dnmXmbREQFfXvHlcSgV5zb6YIMknqnFXzumeXjh/groCrqUNuXaMYed82fMKD1b9KKh7PDTyL34MyFhImubOLkMdvaothsbVQLx866HjCS7Do9blOM/wZjkTtGiE/lKOa6cLZAgL95hLL13dfQaQQp+i1a7SiCw8IPXqJ5qNbc8zP0tRrE04QvDrR+/euPlFh6yGSFC2qhkOBDt/ufdhbybzN2vIwzjKr0rCHfjbos
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_29AAF03B12B64E619BF4EF951506931Bsecurekeycom_"
MIME-Version: 1.0
X-OriginatorOrg: securekey.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: YTOPR0101MB2316.CANPRD01.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 06e032f3-a714-4926-e5c0-08d8281ef325
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jul 2020 17:54:26.5404 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: e211fbf0-7d88-4a7c-b5b5-09a66b0b7ad0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 71brR+J3wvFoUIxpqXCuVw+1UWrxfp4guwLfN2O9IjtSQvfE4ZrZoQx3RJQONyQNDFp4EIQ4hIvGCx+BfK7B+ehqkQIdRhm93atI5F7jcU4=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTBPR01MB3647
Archived-At: <https://mailarchive.ietf.org/arch/msg/txauth/yjffd25V5vzyqMkX7Um6Mm58ee0>
Subject: Re: [Txauth] Key handle vs client id & handle
X-BeenThere: txauth@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <txauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/txauth>, <mailto:txauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/txauth/>
List-Post: <mailto:txauth@ietf.org>
List-Help: <mailto:txauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/txauth>, <mailto:txauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 14 Jul 2020 17:54:31 -0000

Is client registration in scope for the protocol?

A generic way of handling clients (via ID or Handle or Key or whatever) is to have processing rule on the AS such as “if the AS recognizes the client ID (and authentication of that client ID) then it may process the request on behalf of that client. If the AS does not recognize the client ID, it must treat this as a new client registration and evaluate any authorization evidence the client provides before enabling the client and mapping policies to that client” (this means dynamic or automatic clients need to provide additional assertions / software statements whatever to register their ID.

Something like this allows for very flexible systems:
System A can be unknown to the AS but can dynamically registered each time with an appropriate software statement
System B can have a fairly stable client ID at the AS, but rotate that ID every month through automatic registration (with an assertion it got from the AS during a pre-registration for example)
System C can pre-register with the AS for a client ID because it doesn’t deal with software statements etc…
…
And even ‘StatelessAS’ can operate by never storing client IDs because it will always just rely on the software statements.

I think a client registration protocol that allows these scenarios would be very useful in GNAP, but hopefully avoiding having to define what ‘evidence’ the AS needs to accept for each scenario.

Thanks,

MV

From: Txauth <txauth-bounces@ietf.org> on behalf of Mike Jones <Michael.Jones=40microsoft.com@dmarc.ietf.org>
Date: Tuesday, July 14, 2020 at 12:18 PM
To: Dick Hardt <dick.hardt@gmail.com>, "txauth@ietf.org" <txauth@ietf.org>, Justin Richer <jricher@mit.edu>
Subject: Re: [Txauth] Key handle vs client id & handle

I agree that there are significant differences between statically and dynamically registered clients and that’s appropriate to be able to syntactically differentiate between them at runtime.  For one thing, the resource requirements at the authorization server can be very different.

We should also be thinking about how to include what the OpenID Connect Federation spec https://openid.net/specs/openid-connect-federation-1_0.html calls “Automatic Registration”.  This lets the client encode a registration request reference in the client ID, so no static or dynamic registration even occurs.  See https://openid.net/specs/openid-connect-federation-1_0-12.html#rfc.section.9.1.

                                                       -- Mike

From: Dick Hardt <dick.hardt@gmail.com>
Sent: Friday, July 10, 2020 1:17 PM
To: txauth@ietf.org; Justin Richer <jricher@mit.edu>; Mike Jones <Michael.Jones@microsoft.com>
Subject: Key handle vs client id & handle

+ Mike as he had interest in this topic

My understanding is that an existing OAuth 2 client would use their current client id as their key handle, and a dynamic client (one that was not pre-registered) would be given a key handle by the AS.

There are potentially some significant differences between a registered client, and a dynamic client to an AS.

The AS is likely to know the identity of a registered client, and have different policies between the two types of clients. For example, a registered client may have access to a 'write" scope, while a dynamic client does not.

The AS may have 100s or 1000s of registered clients, but a dynamic client may have 10Ms or 100Ms of instances, which may dictate separate storage services. Additionally, internal to the AS, which systems can write to the registered client store is going to be different than the dynamic client store.

In XYZ, subsequent calls to the AS, both registered clients and dynamic clients pass a key handle, so there is no easy way to differentiate between the two.

While the AS could embed semantics in the key handle identifier to indicate which identifiers are pre-registered vs dynamic, there are many cases where the AS does need to know the difference, so making the difference a feature of GNAP seems like a better path.



This email and any attachments are for the sole use of the intended recipients and may be privileged, confidential or otherwise exempt from disclosure under law. Any distribution, printing or other use by anyone other than the intended recipient is prohibited. If you are not an intended recipient, please contact the sender immediately, and permanently delete this email and its attachments.