Re: [OAUTH-WG] Omit "jwk" (or use "kid" instead) in DPoP Proof?

Takahiko Kawasaki <taka@authlete.com> Tue, 08 September 2020 14:23 UTC

Return-Path: <taka@authlete.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 38B6D3A1400 for <oauth@ietfa.amsl.com>; Tue, 8 Sep 2020 07:23:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=authlete-com.20150623.gappssmtp.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 77K2tGlbPtTl for <oauth@ietfa.amsl.com>; Tue, 8 Sep 2020 07:23:32 -0700 (PDT)
Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 235903A1420 for <oauth@ietf.org>; Tue, 8 Sep 2020 07:23:31 -0700 (PDT)
Received: by mail-wr1-x42a.google.com with SMTP id a17so19308442wrn.6 for <oauth@ietf.org>; Tue, 08 Sep 2020 07:23:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=authlete-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BhDZf+TWrMxVUbzET4ByEkVjLsykgd1q59Njb4z7510=; b=qpxhasxaYKnXE6cApeDwkOlsq61W9qDivPeteNwn5cYWNaO5+KV5OXiuv0bqTKxxdo PmthLcJcf269FdgmUELf+ElSSkwSJtZQXnvs1XcFbR/6ZMG6zmp3VYpVFytWud4FdauT UZazh5LbVIhgt78OPtAh8jys+y0LbVeOy79XlSadzOiJ8o0aGQnlkeG/NkdgXFzZXKt6 jYhsFXcXvxG8ViWJlcyPMyzvA7vdRLmcQXKp+vMrKqeXW8J/4uEnBiqCGidLGj2ssg0k vhKAsnrCY+dsuj2di3hWfSFNRyGoC81hfV9MHJU+5Zo7OiKKSJi/o6OhpHx7ZjFkOmUj hFYg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BhDZf+TWrMxVUbzET4ByEkVjLsykgd1q59Njb4z7510=; b=HHlS9u8y+z9QXu4+YeKL801ma0ttBY9yVY3SFHEI0qft1WS6l1VLxSuRoR8VR/qLOq vSIkKdr2uk81ctI90RDwUczJtIowrzz5j/9RF5bS+VsXfnoMFU4AoNHrkBG+H9HwexwC LFufduLYcjQabGsh9JG191G39Wk9KROXdwoGfDYWMy7/NgBJGcjMOOT5Wtkua9nhc84z bxUfEdRdEqUsz0WgKr9jEAatCPXrPsv/kNp8m0ZTm1yApWBf+oKjsRM23Hxx6eOlJY+n 27t8BlvPT4ewYdpajcyGbN9pa1X5vPZrg6VvUJShzcuw2Nd0zFGq9Uvy+cZrA4A6HU0T idJA==
X-Gm-Message-State: AOAM532VWeHhwjYglIW140cqr+Gxl6aKFoekTqYLrWeIpEx3CfZJP46X qnjZpMnegzG3B8bfPz+g56y7uKLIpZWCwHY5Yd/0IQ==
X-Google-Smtp-Source: ABdhPJz/A9UL/fGERUrs3QOMQV81x84U4K6l/ljmN97+DEg6smy2rXDwmCQ3oXlMvVP12IZtAK12vUjXWZUbMTIJiQc=
X-Received: by 2002:adf:f50a:: with SMTP id q10mr26775261wro.319.1599575009956; Tue, 08 Sep 2020 07:23:29 -0700 (PDT)
MIME-Version: 1.0
References: <TY1PR01MB1466E7D4AF21EA5C56467E6AE5290@TY1PR01MB1466.jpnprd01.prod.outlook.com>
In-Reply-To: <TY1PR01MB1466E7D4AF21EA5C56467E6AE5290@TY1PR01MB1466.jpnprd01.prod.outlook.com>
From: Takahiko Kawasaki <taka@authlete.com>
Date: Tue, 08 Sep 2020 23:23:18 +0900
Message-ID: <CAHdPCmNg7AUE9tXoBWCUHg5wxUHwnvsdOMMS7owcjVP2hrUpMw@mail.gmail.com>
To: toshio9.ito@toshiba.co.jp
Cc: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000042a8d505aece14a3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/QXfLseiBlrx_WKGro09rqa-aGEA>
Subject: Re: [OAUTH-WG] Omit "jwk" (or use "kid" instead) in DPoP Proof?
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
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, 08 Sep 2020 14:23:34 -0000

To enable each "instance" of a client application to use a key pair which
is dedicated to the instance, the public key needs to be included in the
DPoP proof. On the other hand, in the scenario you described, all instances
of the client application have to share one key pair. If client application
instances don't have to share one key pair, it's better.

Illustrated DPoP (OAuth Access Token Security Enhancement)
https://medium.com/@darutk/illustrated-dpop-oauth-access-token-security-enhancement-801680d761ff

Best Regards,
Takahiko Kawasaki

On Tue, Sep 8, 2020 at 6:29 PM <toshio9.ito@toshiba.co.jp> wrote:

> Hi all,
>
> In section 4.1 of draft-ietf-oauth-dpop-01, the "jwk" header parameter is
> REQUIRED. However, there are some cases where "jwk" is not necessary in
> theory.
>
> For example, consider a case where the client is registered with the
> Authorization Server, and its one and only public key is also registered
> with
> the AS. In that case, when the AS receives a request on Token endpoint, it
> can
> just use the public key registered for the client to verify the DPoP Proof.
> There is no need to send the public key in DPoP Proof.
>
> The same goes for requests to the Resource Server, if the AS and RS share
> the
> storage for clients' public keys. Things are a little difficult if the AS
> and RS
> are separate. Probably the Access Token or its introspection result have to
> include the public key (instead of its thumbprint as described in section
> 7).
>
> If the client registers multiple keys with the AS, it needs to specify
> which key
> it uses to sign the DPoP Proof. However, there is still no absolute need
> to send
> the whole key in DPoP Proof. Instead, the client could use "kid" header
> parameter to specify the key.
>
> Daniel Fett once mentioned the above case in the GitHub issue #26 [*1],
> but I'm
> not sure what happened to the discussion. There was also a comment on the
> latest
> draft about the "jwk" header parameter [*2]. I agree with using the same
> DPoP
> Proof structure for requests to AS and RS, but I think there are some cases
> where we can omit "jwk" in BOTH requests. Making "jwk" OPTIONAL would allow
> those cases to reduce some messaging overhead.
>
> I'd like to hear your opinions about it.
>
>
> [*1]:
> https://github.com/danielfett/draft-dpop/issues/26#issuecomment-480701746
> [*2]:
> https://mailarchive.ietf.org/arch/msg/oauth/smwsONA6c4H2UICcZMzb8Yv2QRc/
>
>
> Best regards,
> Toshio Ito
>
> -------------
> Toshio Ito
> Research and Development Center
> Toshiba Corporation
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>