Re: [OAUTH-WG] Call for adoption - SD-JWT

Neil Madden <neil.madden@forgerock.com> Tue, 02 August 2022 22:09 UTC

Return-Path: <neil.madden@forgerock.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 542D5C1594AD for <oauth@ietfa.amsl.com>; Tue, 2 Aug 2022 15:09:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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, MIME_QP_LONG_LINE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=forgerock.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 TZnD5UiO1ta8 for <oauth@ietfa.amsl.com>; Tue, 2 Aug 2022 15:09:27 -0700 (PDT)
Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3651DC1594A9 for <oauth@ietf.org>; Tue, 2 Aug 2022 15:09:27 -0700 (PDT)
Received: by mail-wm1-x330.google.com with SMTP id b6so7829970wmq.5 for <oauth@ietf.org>; Tue, 02 Aug 2022 15:09:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forgerock.com; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=8JxeiU83GZhT4VBotGOq9YDMppCGJvFMKcDxrsxbfzI=; b=ax2x4UdN9iKwYQJGD5MPGFf9miDVUTVeDxsiGIWDRL9focrToFX4l+9qBvob8qmZrN mxUA551CLXF6zfPINaJbKgeg7y/BrhAZPJCPvg6szJ8k/zwBPrXJj0hOHXsNPwq0JQwG GO1tHMmjQgk9poQENBhZrY9aRrc5lVghfVl8M=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=8JxeiU83GZhT4VBotGOq9YDMppCGJvFMKcDxrsxbfzI=; b=qtCGpo/jZYiAz2uPr/0idcsrebEmx+4NMinJbQWl/sO8IMLyY1II73OjRL2bs1GHm1 ABFd9khCChspEBb6U6Hth4kZfwYGZH3wI2EWBo2LcQSE5m80BqRIK2rwMa4jEV6WCMCt 5M9j2VqMItEyvtRcQ0e9q7qmgySyMUAwvg0R2AsUo3xAiNuEJIdszTAcnJ7hMt7iAAs0 +fhgUN7V9TIvXzhKw4mFAZ4uPbQW0J/Fin6UeCgcGHR+DKsFQ2L9WhgkJK/4jHD8zRPe O8EpAiazuVlltlt3VEDRMQObsHgqUaR0iv+mAlf8A3P+VinhYDuC9g6Pe02NfWzrSug4 1eng==
X-Gm-Message-State: ACgBeo1JoxEXaob2tTawXC50qkzXmDl3vqW5aGm4NA2TWDdVM4tKXXSu KWCd5CjUjvdOhy5truYKDn1RCKxrQmHvQZOkHGAw7eUm8mb1R7EfCA/A/C6rKRfHAQblfucz71C 04ytSwyZJPyAKYiN6/9v0V0721j5IZfGiBJ6+fLw4gDPPD0kLy7oCHhjvelnTYrXdCqPe
X-Google-Smtp-Source: AA6agR4DxaNJUFafWzgBKFW/lasVaL0t50zEwvQBNozDdz0Yy3YR7tue4ooP0W5iCXqbokzrLIqIvQ==
X-Received: by 2002:a1c:f209:0:b0:3a4:f42c:9ffb with SMTP id s9-20020a1cf209000000b003a4f42c9ffbmr569765wmc.62.1659478165483; Tue, 02 Aug 2022 15:09:25 -0700 (PDT)
Received: from smtpclient.apple (181.213.93.209.dyn.plus.net. [209.93.213.181]) by smtp.gmail.com with ESMTPSA id m127-20020a1c2685000000b003a30af0ec83sm46898wmm.25.2022.08.02.15.09.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Aug 2022 15:09:24 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail-30297F4E-8305-4FA9-AEF9-5C3CB1EAC2C6"
Content-Transfer-Encoding: 7bit
From: Neil Madden <neil.madden@forgerock.com>
Mime-Version: 1.0 (1.0)
Date: Tue, 02 Aug 2022 23:09:23 +0100
Message-Id: <471EFFB6-935D-4251-813A-E77A8A70A4BE@forgerock.com>
References: <SA2PR00MB10023E6A909909FB190E2C50F59D9@SA2PR00MB1002.namprd00.prod.outlook.com>
Cc: Kristina Yasuda <Kristina.Yasuda=40microsoft.com@dmarc.ietf.org>, oauth <oauth@ietf.org>
In-Reply-To: <SA2PR00MB10023E6A909909FB190E2C50F59D9@SA2PR00MB1002.namprd00.prod.outlook.com>
To: Mike Jones <Michael.Jones@microsoft.com>
X-Mailer: iPhone Mail (19G71)
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/FL2DK8C3jGhaf8xck7ImV4u4ajc>
Subject: Re: [OAUTH-WG] Call for adoption - SD-JWT
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 02 Aug 2022 22:09:31 -0000

> On 2 Aug 2022, at 21:04, Mike Jones <Michael.Jones@microsoft.com> wrote:
> 
> 
> Neil, you wrote:
> "SD-JWT is not simpler. Anyway, I think I have learnt enough from this thread, we don’t have to keep arguing the same points. I think the claims of combinatorial explosion are somewhat exaggerated and I don’t see compelling evidence of a real world need for selective disclosure in OAuth, so I don’t support this draft."
>  
> Speculatively issuing JWTs with combinations of claims because they might be used in the future might be a fine strawman proposal to score debating points but is hardly a practical engineering solution.

Why would it be speculative? 

>   Whereas SD-JWT meets the needs of JSON-based use cases for selective disclosure using the issuer/holder/verifier pattern, including those for ISO Mobile Driver's Licenses.

As far as I can see mobile driving licenses are the *only* concrete use case that has been mentioned so far. Did I miss one?

Given that the goal is to reproduce “the user experience of presenting credentials in-person”, let’s look at one. My driving license lists the following information:

* a unique driver id (which itself encodes part of my name, dob, and a male/female bit)
* full name
* address
* date and country of birth
* license issuer, issued-at and expiry dates
* the categories of vehicle I’m entitled to drive

ISO mobile drivers’ licenses are supposed to be unlinkable so the driver ID is out. The expiry and issued-at probably shouldn’t be able to be selectively non-disclosed. So that only leaves 5 fields: full name, address, date of birth, country of birth, and categories of vehicle. 

So even if you issued a separate JWT for each field, that’s only 5 JWTs. Why is that not practical? 

— Neil

>  
> That's why I support adoption.
>  
>                                                        -- Mike
>  
> From: OAuth <oauth-bounces@ietf.org> On Behalf Of Neil Madden
> Sent: Tuesday, August 2, 2022 2:16 AM
> To: Kristina Yasuda <Kristina.Yasuda=40microsoft.com@dmarc.ietf.org>
> Cc: oauth <oauth@ietf.org>
> Subject: Re: [OAUTH-WG] Call for adoption - SD-JWT
>  
>  
> On 2 Aug 2022, at 03:20, Kristina Yasuda <Kristina.Yasuda=40microsoft.com@dmarc.ietf.org> wrote:
>  
> I support adoption.
>  
> To add some color. 
>  
> One of the use-cases is a flow where issuance of a user credential (collection of user claims) is decoupled from presentation (where both issuance and presentation of a user credential are done using extensions of OAuth flows). The goal of this decoupling is to avoid “issuer call home”, where the user can send a user credential directly to the RP, without RP needing to contact the Issuer directly.
>  
> So what’s the plan for revocation in this scenario? Something like OCSP Stapling? Short-lived tokens? Either way, the client will need to go back to the issuer regularly.
> 
> 
> So the motivations are not limited to offline scenarios, but are applicable to the scenarios that want to recreate in the online environment, the user experience of presenting credentials in-person.
>  
> I’m not sure why this would be a goal. Presenting credentials in person is subject to many constraints that just don’t apply in the digital world.
> 
> 
>  
> Driver’s Licence just happens to be an example familiar to many, and there is no reason it cannot be a diploma, or an employee card, or a training certificate, etc. But it is worth highlighting that SD-JWT work becomes critical if we are to enable ISO-compliant mobile Driver Licences expressed in JSON to enable online scenarios and make life of the Web developers easier (as opposed processing data encoded as CBOR and signed as a COSE message). Selective disclosure is a requirement in many government issued credentials, while the usage of advanced cryptography is not always encouraged by the national cybersecurity agencies.
>  
> I’m not sure what any of this has to do with OAuth?
>  
>  
> Regarding an approach where issuer issues multiple JWTs of a same type but with different subset of claims, it is not an ideal way to do selective disclosure with JWTs (type as a way to differentiate credential with one data structure/syntax from another). It complicates implementations that try to provide RP-U unlinkability (RPs cannot collude to track the user). The simplest way to achieve unlinkability with JWTs without using advanced cryptography is to issue multiple credentials of the same type but with varying use identifiers and enable pairwise identifiers per RP. Now there are multiple copies of each JWT with subset of claims of the same type. This greatly complicates presentation of these credentials too – since credentials are of the same type, now wallet needs to manage the combination of a subset of claims + pairwise identifier…
>  
> The same is needed in SD-JWT - the wallet needs to manage pairwise identifiers and which subset of claims to disclose.
> 
> 
>  
> What if the implementation also wants predicates property, where age_over_XX boolean is sent instead of a birthdate string? The simplest way to do predicates with JWTs without using advanced cryptography is to have issuers to issue multiple age_over_xx booleans so that an appropriate one can be selectively disclosed to the RP. How many “JWTs with subset of claims” does the issuer needs to issue to account for all possible age requirements? Note that it’s not just age_over_21 to start gambling, it’s also age_over_65 to get pension benefits. 
>  
> Being over 65 also proves that you are over 21.
>  
>  
> Managing the combinatorial explosion of sets of claims in speculatively issued JWTs, many of which will never be used, seems unwieldy, to say the least. "A conventional JWT with a subset of claims" approach could be taken in some implementations, but it should not prevent a simpler, extensible alternative of SD-JWT.
>  
> SD-JWT is not simpler. Anyway, I think I have learnt enough from this thread, we don’t have to keep arguing the same points. I think the claims of combinatorial explosion are somewhat exaggerated and I don’t see compelling evidence of a real world need for selective disclosure in OAuth, so I don’t support this draft.
> 
> 
>  
>  
> Finally, as Giuseppe pointed out, an option to blind claim names is on the table. As discussed on this list previously, we should analyze privacy properties of the mechanism and decide if we want to mandate it – which can be discussed after the adoption.
>  
> Best,
> Kristina
>  
>  
> — Neil