[Wimse] Re: What is an identity and section 3.2.1 of draft-ietf-wimse-arch (or must identity be the compositum of all attributes?)

Justin Richer <jricher@mit.edu> Tue, 18 June 2024 18:10 UTC

Return-Path: <jricher@mit.edu>
X-Original-To: wimse@ietfa.amsl.com
Delivered-To: wimse@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 21E08C1D6FD6 for <wimse@ietfa.amsl.com>; Tue, 18 Jun 2024 11:10:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.108
X-Spam-Level:
X-Spam-Status: No, score=-2.108 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mit.edu
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rMKZAk29j-k6 for <wimse@ietfa.amsl.com>; Tue, 18 Jun 2024 11:10:42 -0700 (PDT)
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2126.outbound.protection.outlook.com [40.107.243.126]) (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 31581C1D6FCE for <wimse@ietf.org>; Tue, 18 Jun 2024 11:10:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QLZfbj16NsJk5HbrBnCPX4Ffd9RdZR8XoIOXyDK2q5GL3EIY7v1FprviTsY71WnapNasbpzSUsWhEWNhB8kHXWEwEDiZ6BrNVkX8eS5qrDhbj0oS2RcKJV+DoqKWvoUtrY1LwHJWXv8hs1BwSbm0QKOSVN7qcpj9EF4CCG55PCMrziITiOQSuhdocaEY1lZtA1C80JFj5NmWJ3PXebY3d262w+gBFc5s5//c6lapaVX7cUxMFDQJB5pwfbZRuN4FKoz4VYD27MC6ixd4sbEJi3Ry6R6Rjegfu9e2a9LIgK/u6TY0J6ICdHsc/I3876I/kq1KYHEcEv1rvH3pSHJX+A==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=atjTYlx2+iF5VYh7HNQ1LB0w93VcOkRUFpowv0U8ctI=; b=jHXJnWpt9rGzlf2qhZqIkyBmYVh5zBRilN8sEUjExM7Qr0tQnTyVqU0Zq7w8RABwbpnIQhWaJm6Slimu6uDpgTfuYwTXHFr8vB2QVOPgsa1EFdUigxwvxnb4eC5i2qfvMin/tiSwysQCid+LkJU0aiH1irHTW8038FX/MRzzASBgDsPeJzFy39UNSinKnXGjGdnMkyqqoMioIo+rSiOy2452lW4axdcznv++474X9WxjAf4vPfznNI7OjbMP4aowcndG5Mfm6nqluj76rjC2WJx6C+ysx+1cj13N5Q80GJVuILcErAxmyDcwlSwkVRWmoeoJ2lbaKwkXdVhGEgzAnA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mit.edu; dmarc=pass action=none header.from=mit.edu; dkim=pass header.d=mit.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=atjTYlx2+iF5VYh7HNQ1LB0w93VcOkRUFpowv0U8ctI=; b=fnfhi9YDFRbKpr/P56yQNz5ZCfZwkWMVlrW5XDpnuVJQ4AxnmOFzRFqybMvKfZQlin6WxP7avYL6PYqolS/X/zSgyDxow9vBjfoiBE3E45xz1OKx7HhEcV0nrda60fIhoFcyWSdm7GOME2h/8Xn73u0REAvLNa2VC/pD+wgaIdQ=
Received: from LV8PR01MB8677.prod.exchangelabs.com (2603:10b6:408:1e8::20) by SJ0PR01MB8143.prod.exchangelabs.com (2603:10b6:a03:4e1::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.31; Tue, 18 Jun 2024 18:10:36 +0000
Received: from LV8PR01MB8677.prod.exchangelabs.com ([fe80::e7d6:999:270f:a820]) by LV8PR01MB8677.prod.exchangelabs.com ([fe80::e7d6:999:270f:a820%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 18:10:36 +0000
From: Justin Richer <jricher@mit.edu>
To: Watson Ladd <watsonbladd@gmail.com>
Thread-Topic: [Wimse] What is an identity and section 3.2.1 of draft-ietf-wimse-arch (or must identity be the compositum of all attributes?)
Thread-Index: AQHawRJqyYEz9jQxR0mBxDfSMohHA7HN03CA
Date: Tue, 18 Jun 2024 18:10:36 +0000
Message-ID: <0900E8B5-18FD-42D7-9D3F-B4E47C073061@mit.edu>
References: <CACsn0ck4tzTV7xgYPbZ-_L1rR9RUiwmrPL4Dba_maNsuq+tdTw@mail.gmail.com>
In-Reply-To: <CACsn0ck4tzTV7xgYPbZ-_L1rR9RUiwmrPL4Dba_maNsuq+tdTw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mit.edu;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: LV8PR01MB8677:EE_|SJ0PR01MB8143:EE_
x-ms-office365-filtering-correlation-id: 37c2b239-efed-462c-c447-08dc8fc1f3f4
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230037|366013|376011|4022899006|1800799021|38070700015;
x-microsoft-antispam-message-info: qLa9qWwDuW58E73RWjs0ihDz8T9uZY3uHMSGvQJwEIn2E4AzrTDrPUfx33Wrz3uPuvaqAHZk4O5lNdL+Ur4KlC6L19qmymy8CRqiAtgrimCGSdoDrXggzJtFKZbrj+WnIalrXm20/y//f/vIhR9Lco6Sg+qVqSdKyk4sqU3l8AXIflNwNFv8PeFnjJ9mo5QkHi0jRzyJXvtnyC+sPgz2KJutOh3rMeACekWvowZ3YZjo2fhsohRcexU2MzxrK1YJfGL/ZhSAaUOXINGbOE1Bo+i7jL5/NtXO75NBH5H3CJaiZn3DW7VpJEXVtFh0Nawt7JCFWupUVzND3GZKlgv476ogQ7OxG4tBEyBtWmKDjDhE+D/uPSeAyR4WwSyWDMy0IaN5E1x+uo+vG+y4HAy6oywUnnZVrZC3ySKT9hD74jPMLwekCRNDG0EZ86Zn5S1wG7ICyFkgHXHJ+YIiO2Uf7MfJC3FnJyLDGjiDb/rC2+ZJoBFynX7cwUAgR3OscPm774e5K4PE8MuqzKAsn0a2s5fESTAEHz98WvQNFUERCg+ang7ClRvqOyUOMkSngY0kcx/qRjkUtMbu+7WGYVj0qzzI3pDQSTf2PnGfBlz4DDKkIi3tNXCKVVYrxGHH+D4FPtm846N2ZVnQXFHm7hfG7/p5LBQ9BDbyZDNlJIIKal+T+mF0rcnZCHbH34z6XNy/dp0ylbVvKNyyhvh8RFuExI9p+hJCFp+WdoarGQOVo7/H/teunfUoX9SkmWwvslGQoQNy1nGcahdGrMtExz/TgOtfVY9u7F7hArWJWOvwWcAJ9hjZM+se/HaKeyz/PLQiqvWqazwT9QBnIYcAhp8LtqIWPVdxhaabxo48yIzudndW1qq97XSwniNQ+V6qyiIlCTi9iAJm3ycFeGRLV/ma5VaiFR5BHT2MRVtPOFkzu/btdArxb4pDDNyx2cmeRajlUIE0R0xQ/Sb/1GzEA4ZRiScS6U89IwT58A85/LIX0siFdjYczUPFWoub+8wGxWnMTJ+L0LdnZ4TCvb92WQ/htAfL4mMtbRttgwSTtndY6Oq+zpjFSkmo+G4o1HzcP2MgnBlBDub+W8Wp/3G1gDAcJRv8L5Q7tT2I4VqNUv/Un8iTWfXG2ORsdTy3NZtQPrMkQTzOhYlkeLBnpPe2sUPpFpJVB4CzDyG0KIY3Xk4Vw56FjDsfG5tSmUScb9KxUR0gojjyKd8+Xgr70a38wHER+ZX5eVdOXvuOdeaNXLTHUXTGpZqu1826jKWap55Ngors1fCCw9CYG/ASzmGoHv2xMqdDh1feg5U1+5PTA0t5WFRT/l8XLUBlyb7dKZ/4casoDBfFTgX4moxcn7DlPD6RtTzczV+0c59ffOKPJMxXZz4=
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV8PR01MB8677.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230037)(366013)(376011)(4022899006)(1800799021)(38070700015);DIR:OUT;SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: 2QO60aiFkgfj9vOYx8hdeM42WIEdFimdaJqVHuveko6wkGFRGMP0Q3ajeiXAVqhxUaIxzol4rvSp7z1blPqGvzQabQ8D3YUyCYAA/z2VhnvC+DYuJ/QOCmGXOfd/5pop3dT+WkZzClgbc4iZKlj/gM20oglRqfQTBVdatNfmT7InmVO8yLP7hIaYv45lkx5J69678pN4YeTsraW0WBTj+N9xFbXdsd61orO7Hn80iIJ8ikLjL+F2MoqZ3E/r3FOrUOFkWvC/b0RwczA1Ovg7FnpXo17LeftDUn7/4l4Zh6Vb99UJDucydJV31tUhRCgwB+e3UKuyDsTL/zqdRtKZt92CCv6d1ihA+Kfu8OxtGAihLtOvldgGoFhARuu40X3YlFDOQ812NOWULGuADpWCEmHjzdWbMY65bWkmSYlCnYmpq0g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Fr5LiN2u7dHPzC0YN5jALP8dY2Ci6v/pRk7fkq/IJmfwWbQy/P+MYSVcupyMi4agTR4bx4cRTnsLWXXTW3kOFfWz/acMdheL6iWh
Content-Type: multipart/alternative; boundary="_000_0900E8B518FD42D79D3FB4E47C073061mitedu_"
MIME-Version: 1.0
X-OriginatorOrg: mit.edu
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: LV8PR01MB8677.prod.exchangelabs.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 37c2b239-efed-462c-c447-08dc8fc1f3f4
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2024 18:10:36.3569 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: NPxBFT5ZGlAz6opn8oMrfQPuMnbE7LieEHJFOpuOyHydNZBzPEqRI5bNdMw/t1zH
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR01MB8143
Message-ID-Hash: APLAXZB4ZQNKYWFAQ43RMX3VXZTBWYTX
X-Message-ID-Hash: APLAXZB4ZQNKYWFAQ43RMX3VXZTBWYTX
X-MailFrom: jricher@mit.edu
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "wimse@ietf.org" <wimse@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [Wimse] Re: What is an identity and section 3.2.1 of draft-ietf-wimse-arch (or must identity be the compositum of all attributes?)
List-Id: WIMSE Workload Identity in Multi-Service Environment <wimse.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/wimse/Fjm2xPQGOwU-focF9JZIyiDC2vc>
List-Archive: <https://mailarchive.ietf.org/arch/browse/wimse>
List-Help: <mailto:wimse-request@ietf.org?subject=help>
List-Owner: <mailto:wimse-owner@ietf.org>
List-Post: <mailto:wimse@ietf.org>
List-Subscribe: <mailto:wimse-join@ietf.org>
List-Unsubscribe: <mailto:wimse-leave@ietf.org>

Thanks, Watson.

[ Chair hat off ]

Ah, monads, I should have known they’d crop up here eventually. :)

I agree that there’s a fundamental difference between "what something is" and "what something can do", and on top of that there’s also "what we call something". All the "something" in this case is a workload in its context.

In many cases, it’s tempting or even convenient to wrap these up together. After all, if I know who you are, then I should know what you can do based on that. And if your identifier — the thing I call you — gives me some of that information in a structured format, then all the better, right? This is a large part of the thinking behind the SVID concept - the name has some internal semantics that guide me towards understanding what to do with the thing that has been given that name. And this pattern has been hugely useful, since it lets you carry information about authorization through a system using something that I guarantee will be there, the identifier. That’s what I’m reading from that section in the WIMSE Arch draft — here’s a larger identity question that gets encoded into an identifier and used for authorization decisions.

But for me, WIMSE does represent an opportunity to tease this apart better than it has been in the past, while still allowing us to deliberately collapse things in cases where it makes sense.  I should be able to figure out that Jessie is cow #2 without naming her "Jessie.cow[2]". But then the question becomes, how do I carry that information? And more importantly for us here, how do I do that in a way that’s interoperable on some level?

And the question goes further, because I don’t believe that identifying the workload is where the security decisions stop. In fact, I think that’s just one input, and not even necessarily a required input, into an authorization decision. Much more important is the context of the request in which the workload is running. This goes beyond the identity of the workload itself and into the world that the identified workload finds itself in at runtime.

I am not going to pretend to have clear answers, but I do think there’s merit in pursuing these questions to find them. But that said, I do believe that there are several concepts that are separable here, which can sometimes be expressed together using the same element:

- an identifier for a workload that is readable by other workloads and systems
- the collection of attributes that uniquely identify a workload (the identifier being one of them), its "identity"
- the runtime context around a workload (request context being a big part of this)
- the set of computed access rights for a workload in a context

In my view, OAuth access tokens are just one input to the runtime context, but today they’re being used to express all of these things in different ways in different systems. I really do think that if we’re going to stop always conflating things, we need to work on fundamental differentiation.


— Justin

On Jun 17, 2024, at 7:59 PM, Watson Ladd <watsonbladd@gmail.com> wrote:

Dear wimsyists,

I must confess to never having read Leibnitz, but I think section
3.2.1 will force me to. I hope this long rambling email explains why
and elucidates some of what confuses me in WISME, and hopefully others
find out they are likewise confused.

Section 3.2.1 implies the identity must include a bunch of information
that's relevant to the problem of authorizing a request, that is
conveyed by whatever ticket brings it alongside a request.

There are two notions of identity at play here. The first is the
concept that makes one thing not like the other. The other is the name
by which we might call a thing not like the other. E.g a farmer might
have cow 1, cow 2, cow 3, or Bessie, Jessie, and Daisy. Bessie does
not convey any of the relevant information about that cow, but does
identify it uniquely among the herd. To me this is also identity, and
indeed is the identity that would be most convenient to convey. This
is where Leibnitz comes in.

Now given a request we might want to evaluate the fundamental question
of "who get to do what to whom". And here I think the distinction
between authorization and authentication has been elided a bit.
Authentication only determines the who. Authorization is about
answering the question of if the request is in fact authorized. A
token could speak only to authentication, but it could also provide
authorization information. The draft is pretty ambivalent about which:
while there is a lean towards authentication it seems the token
issuance is also supposed to be a gating function, and the token
needing to carry more than a simple identifier means that it starts to
blur the line.

Lastly there's a huge gap for me around what sort of policies make
sense. Many systems I've seen and worked with had a broad class of
services provided by various elements, and the users of such services
might be a very dynamic set. Others had a self-serve partitioning of a
class of resources allocated to each service calling in. Other times
we might have systemic policies, e.g. "Infosec says all services must
do X, which we can determine at build time, and those that don't can't
run". Expressing these policies in human understandable form argues
for a simple identifier as a human readable policy depends on such
identifier. I don't think a complex identifier works for that.

In conclusion I think we need to make an explicit choice. Either the
token carries a workload identifier (akin to a Service in K8S or
something else?) or it carries a grab bag of attested environmental
attributes over which policies run. And I think we need to figure out
what policies should be expressable and which shouldn't be.

Sincerely,
Watson Ladd

--
Astra mortemque praestare gradatim

--
Wimse mailing list -- wimse@ietf.org
To unsubscribe send an email to wimse-leave@ietf.org