[OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD-JWT architecture feedback)
Dick Hardt <dick.hardt@gmail.com> Sun, 22 September 2024 14:12 UTC
Return-Path: <dick.hardt@gmail.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 19659C180B41 for <oauth@ietfa.amsl.com>; Sun, 22 Sep 2024 07:12:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.104
X-Spam-Level:
X-Spam-Status: No, score=-7.104 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 KFsHA4M7RkLn for <oauth@ietfa.amsl.com>; Sun, 22 Sep 2024 07:12:52 -0700 (PDT)
Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 31AA7C151997 for <oauth@ietf.org>; Sun, 22 Sep 2024 07:12:52 -0700 (PDT)
Received: by mail-yb1-xb29.google.com with SMTP id 3f1490d57ef6-e1a7e54b898so2807125276.2 for <oauth@ietf.org>; Sun, 22 Sep 2024 07:12:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727014371; x=1727619171; darn=ietf.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IUQXMeiDYz+Zc++DM+kh28uKrfU0flSwHfSE0X8SvRw=; b=hV1cowXfyVTFoQQFv0q+UPX4Kv/RV6I0mfRT7Et3JHpSQ6IO1Ht40+/FpMVdPZEhyG jsGL/7WV6VMsXzRmL6PPXu3nNMS4urzBpqvmDMfDRSHU6QMSCZS5k0WAAZiQKiM9sn4G +f2F16MBxk6TnxzPAZSM0caB7n5lpFvQBR9rBXjSHtkjcPK/QSeDWgMBVH3bCl26TFMM StZpc13KQ9novNC7wVP+lnvKylTvv1I/dFs+anoyvfYMfE//qthgS5dvjFf6/BmC/m/O Ux9Ho2cv8R2cI8CTfhpb+dLQW/l2jLSPCUp/TZJ0DBpLPB62P8Y/5rYMn6ocb/o2TqV2 fZ8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727014371; x=1727619171; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IUQXMeiDYz+Zc++DM+kh28uKrfU0flSwHfSE0X8SvRw=; b=RKXj4ZzNMCQ7RW6Gj5jWvL8nH8cb5cZnAPGYM2BXEvFq5mx9veixkho80+p8Jx8SOz 4qbR8zVW6W1whKF78SPohdWReykIZaIhkPqCTbziWvrrfkz2zlOEZ9EHW/lQHgPldGsG 2pSPqE/QlY7cQrIZiXfW9fExLc5qFginq34L64lBbsKIByR+8BuWtyHktafLcTCNevAY oI4mqXW2Y5R09WuwiGUYxCi5xKl2UEDwPp4FSC66RGnCG9q4rBJ2jMt9JX5G/QjLX/8q DcSeas2812BCSyrWzUSCAGtRZrRIysJ1vOBrKf2pzSYSijxO0N2YVDANBoFirxO62Z1A eIpw==
X-Forwarded-Encrypted: i=1; AJvYcCVyYErZJWQv5KKy0j2zxPuP5aJuXmgtJc0SvBn3TA1C9xEIxsu+X2FYzS2ecTdIesSiGyFZPg==@ietf.org
X-Gm-Message-State: AOJu0YwXPqaqkhIn8CxqYc1EIbbT+bU1uqRhi4NNJ+KJIC3UZWbe4VVK h0mSbpKspol57kiyWd+csOjCPIURzSqzcgEihPff8Ih5qWRupOBKPYPzOX8b6+6wJPegt/erZCm ccZTGRoV+7xTiRR4YQGvMgRq5kCyxezF2twE=
X-Google-Smtp-Source: AGHT+IHTkq+DQ6Usd8SjOa8FGMPHJfTrd17wfEt5b9Bp23n4Hi0Z62XcEp0NcjHGRhrsV+kZHNcL2M0DCbHfViMmF9Q=
X-Received: by 2002:a05:690c:d91:b0:61b:1e81:4eb8 with SMTP id 00721157ae682-6dff270f373mr58629937b3.9.1727014371259; Sun, 22 Sep 2024 07:12:51 -0700 (PDT)
MIME-Version: 1.0
References: <CAD9ie-s9kricU8_VBBucQMob-n1jWN5xHd5Ymck=biUWqpH9yQ@mail.gmail.com> <e64eb21d-1ef4-4352-9c74-ffbb853ce3da@danielfett.de> <CAD9ie-t9jLMG5aROCR-EOuCYh19F2r67-C0Puw2OF4GEcvBc2g@mail.gmail.com> <SJ0PR02MB7439E7A8C62588FB6BBABA97B76D2@SJ0PR02MB7439.namprd02.prod.outlook.com>
In-Reply-To: <SJ0PR02MB7439E7A8C62588FB6BBABA97B76D2@SJ0PR02MB7439.namprd02.prod.outlook.com>
From: Dick Hardt <dick.hardt@gmail.com>
Date: Sun, 22 Sep 2024 16:12:15 +0200
Message-ID: <CAD9ie-tOsd3wM6mXNFWqd-UNMG-4GaMCiZQ7H6Xw_5JNUrGQPA@mail.gmail.com>
To: Michael Jones <michael_b_jones@hotmail.com>
Content-Type: multipart/alternative; boundary="0000000000001efc920622b5deb9"
Message-ID-Hash: U35YS6I3DFAPKFRD2YHAWEKDQOSHE4DB
X-Message-ID-Hash: U35YS6I3DFAPKFRD2YHAWEKDQOSHE4DB
X-MailFrom: dick.hardt@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-oauth.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "oauth@ietf.org" <oauth@ietf.org>, "kristina@sfc.keio.ac.jp" <kristina@sfc.keio.ac.jp>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Reply-To: Dick.Hardt@gmail.com
Subject: [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD-JWT architecture feedback)
List-Id: OAUTH WG <oauth.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/AM89HVnes5Yxz0lB_CyieqgeVEo>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Owner: <mailto:oauth-owner@ietf.org>
List-Post: <mailto:oauth@ietf.org>
List-Subscribe: <mailto:oauth-join@ietf.org>
List-Unsubscribe: <mailto:oauth-leave@ietf.org>
I am trying to make a few points. My reference to the BCP was on the recommendation to do explicit typing. I'm suggesting that the sd-jwt document state that include "typ" is a requirement, and to be explicit in what that value should be. I would suggest that value be "sd-jwt" The "application+" mechanism was already deployed when we wrote the BCP -- too late to change that. But sd-jwt is a new token format and can learn from implementation challenges in the past. On Sat, Sep 21, 2024 at 9:17 PM Michael Jones <michael_b_jones@hotmail.com> wrote: > Actually, the JWT BCP (which we were both authors of) does not recommend > using a single media type. Rather, it recommends using a specific media > type suffix in the “typ” values > <https://www.rfc-editor.org/rfc/rfc8725.html#name-use-explicit-typing>: > > When explicit typing is employed for a JWT, it is *RECOMMENDED* that a > media type name of the format "application/example+jwt" be used, where > "example" is replaced by the identifier for the specific kind of JWT. > > > > SD-JWT is doing the same thing, recommending the use of the media type > suffix “+sd-jwt”. > > > > This enables more fine-grained explicit typing. For instance, when doing > explicit typing for an SD-JWT in the Example use case, the “typ” value > would be “example+sd-jwt”. This can then be distinguished from an SD-JWT > for the Other use case, which would use the “typ” value “other+sd-jwt” – > meeting the goal of explicit typing. > > > > -- Mike > > > > *From:* Dick Hardt <dick.hardt@gmail.com> > *Sent:* Saturday, September 21, 2024 9:16 AM > *To:* Daniel Fett <mail@danielfett.de> > *Cc:* oauth@ietf.org; kristina@sfc.keio.ac.jp > *Subject:* [OAUTH-WG] Re: SD-JWT architecture feedback > > > > … > > > > *Explicit Typing* > > Why leave the typing in the header to be determined by the application > (10.11), and not just be 'sd-jwt' and be REQUIRED? > > We had extensive discussions around typing, please refer to the following > issues: > > - https://github.com/oauth-wg/oauth-selective-disclosure-jwt/issues/267 > > - https://github.com/oauth-wg/oauth-selective-disclosure-jwt/issues/327 > > - https://github.com/oauth-wg/oauth-selective-disclosure-jwt/issues/345 > > > > Those issues don't really address the point. > > > > Per RFC 8725: JSON Web Token Best Current Practices (rfc-editor.org) > <https://www.rfc-editor.org/rfc/rfc8725.html#name-use-explicit-typing> -- > the best practice would be to have a single type that would allow a library > to know it is an SD-JWT. If additional context is needed, perhaps that > should be a different header property? >
- [OAUTH-WG] SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Re: SD-JWT architecture feedback Warren Parad
- [OAUTH-WG] Re: SD-JWT architecture feedback Daniel Fett
- [OAUTH-WG] Re: SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Leading underscores in SD-JWT Claim Na… Michael Jones
- [OAUTH-WG] Explicit typing of SD-JWTs (was SD-JWT… Michael Jones
- [OAUTH-WG] Re: Leading underscores in SD-JWT Clai… Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt
- [OAUTH-WG] Re: Leading underscores in SD-JWT Clai… Rohan Mahy
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… David Waite
- [OAUTH-WG] Re: SD-JWT architecture feedback Rohan Mahy
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Rohan Mahy
- [OAUTH-WG] Re: SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Re: Leading underscores in SD-JWT Clai… Brian Campbell
- [OAUTH-WG] Array Disclosure (was SD-JWT architect… Denis
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Kristina Yasuda
- [OAUTH-WG] Re: SD-JWT architecture feedback Brian Campbell
- [OAUTH-WG] Re: SD-JWT architecture feedback Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Brian Campbell
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Brian Campbell
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Rohan Mahy
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Brian Campbell
- [OAUTH-WG] Re: Explicit typing of SD-JWTs (was SD… Dick Hardt