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

Neil Madden <neil.madden@forgerock.com> Tue, 02 August 2022 09:16 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 56EB1C15C502 for <oauth@ietfa.amsl.com>; Tue, 2 Aug 2022 02:16:54 -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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=unavailable 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 C2ROIASpO8Jq for <oauth@ietfa.amsl.com>; Tue, 2 Aug 2022 02:16:49 -0700 (PDT)
Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (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 4DDA2C15C526 for <oauth@ietf.org>; Tue, 2 Aug 2022 02:16:25 -0700 (PDT)
Received: by mail-wr1-x42d.google.com with SMTP id v3so16135065wrp.0 for <oauth@ietf.org>; Tue, 02 Aug 2022 02:16:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=forgerock.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=2HOswH3Et68UPmhHceGn1vmNmK+CXZAxjGhKK8oUPs8=; b=bjW0OVbNFU2gEVQvCMvY4k3aCq8Bt78LqMDPnYIvjzp8ptvinNrJq1/skCboP/qKr6 Hun1fDlrdCX1S1pJvvoYGorCXYoJd3vAHGsbmO26Kq7JSUvYsifHHTXkF4U75vcIXmc8 f/1VrOHHnEhRZFvpPW30R8qAPNpNCeO+eOWoU=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=2HOswH3Et68UPmhHceGn1vmNmK+CXZAxjGhKK8oUPs8=; b=PlVzh+A+xD0m/ff1RYHgJg9tiCT3y3jMgodsqo4zCiUJAmloLKQdDQ/AIAHOAEAkSJ Yy4b3v0Zj5CU2JkQSidhD7PwyksAIM1wxl5obol8H6SIIou2RIQXX2jZ8M4GVF3/rfpG /EicA24UUZeJeM5G6oD0JcPtQhW4iH9U2oH3S62dp9p4yxQc4TRN7vC+UkGB+BL6JuyW MvUvaQ5dyfl+GHZ/9wBTYMWaQnj8s6CimVmLZ+IyzK6rdf3KkY9NDinvzQJzGQM0Ao7G GcTPju5Cg8o1XF71tHKwO8vn+u9EpRxZcf11PqNw8vku8KApqlBMOk2A1uTIZcPFiA73 htkQ==
X-Gm-Message-State: ACgBeo0ipVvGTouxLRXo9PyXaOqZ4LBjjck7ebkjEeF6TtLa/8yTpFCF 6GTKd3Er1irkhfZpChCM5YUcn4r4o0sFyQ==
X-Google-Smtp-Source: AA6agR5IWmDikptilCIidwVF+rZ3BU/nlLdCwtRVhXSDkCG6gIds2WQXTmPydArqjZyqmD04P0y1bg==
X-Received: by 2002:adf:d08d:0:b0:220:6b8a:140d with SMTP id y13-20020adfd08d000000b002206b8a140dmr3212216wrh.272.1659431783254; Tue, 02 Aug 2022 02:16:23 -0700 (PDT)
Received: from smtpclient.apple ([195.224.190.250]) by smtp.gmail.com with ESMTPSA id e1-20020a05600c4e4100b003a4bb3f9bc6sm12519015wmq.41.2022.08.02.02.16.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Aug 2022 02:16:22 -0700 (PDT)
From: Neil Madden <neil.madden@forgerock.com>
Message-Id: <61F6B160-8CA8-4DB2-9F0A-DB81037AC495@forgerock.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_040EE70B-4551-42B9-84BD-86A56252CB26"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\))
Date: Tue, 02 Aug 2022 10:16:21 +0100
In-Reply-To: <MN2PR00MB08930D8DCA347979CB77E4D9E59D9@MN2PR00MB0893.namprd00.prod.outlook.com>
Cc: oauth <oauth@ietf.org>
To: Kristina Yasuda <Kristina.Yasuda=40microsoft.com@dmarc.ietf.org>
References: <CADNypP9xSXWKV=0nj803fW9xdqgguLWLOpMMQd0Uw3P16LQpfQ@mail.gmail.com> <MN2PR00MB08930D8DCA347979CB77E4D9E59D9@MN2PR00MB0893.namprd00.prod.outlook.com>
X-Mailer: Apple Mail (2.3696.100.31)
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/Hf_A6mt9pblsOE8KBAcW4tzHv0E>
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 09:16:54 -0000

> 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