Re: [OAUTH-WG] DPoP followup II: confirmation style

Filip Skokan <panva.ip@gmail.com> Thu, 03 December 2020 09:43 UTC

Return-Path: <panva.ip@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 49D303A0DE4 for <oauth@ietfa.amsl.com>; Thu, 3 Dec 2020 01:43:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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_IMAGE_RATIO_06=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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=gmail.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 P9LnJg5h87gC for <oauth@ietfa.amsl.com>; Thu, 3 Dec 2020 01:43:13 -0800 (PST)
Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) (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 251373A0DE1 for <oauth@ietf.org>; Thu, 3 Dec 2020 01:43:13 -0800 (PST)
Received: by mail-yb1-xb29.google.com with SMTP id x2so1423270ybt.11 for <oauth@ietf.org>; Thu, 03 Dec 2020 01:43:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+0C+8/oUgX9JQmxjdxZAmeWhnf4tDKDby7G8cKU3mdQ=; b=Ij19PPNNFdAL+mS0YaAAx9MnwL7FzBEGuneckeIzFUifPB39w0QPaD+VLws4ZvEB9K pOxAxQJE+4fJFw1sPkiCl/BEWMCrZ8/iEatF5hbnzXf5BL3Ms8JnT7xv4+xaL+jILnAv pywv2bdbwD3iJPch/6fwZ4W702qpi62cXi3gmSpMRQI9bV4Z0krUzOeEeZYgUlRV+ffY /qIv40T3ZiQ+TsOJw0PPhhlrD6CBl6RZnNpS3maMep8Lipyb3Elb6uLizyoP3jAfJ5OL Iku658BKVc+bwJP3YFRuzZbQmOzomN6bAhGA+EgM5Uv4iYVK56Q9XsQylF3pAeaMrib0 dHzg==
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=+0C+8/oUgX9JQmxjdxZAmeWhnf4tDKDby7G8cKU3mdQ=; b=AI/pMtOFut+qOiFVbK8QpGdxi7YE3btQm41T8ljzFpPJjg6scUKlcB+09/Z9bbzvyU f62ilTACEfwdcO9qr2c+MkGa6Gs8Gw8KIHRcz2N+KK64D1FBrzfUaHNhAmWkveZM4c0U 6ua60VIaPBBQD2LtC+5kXYnh9wLGmSOKtckzO7QyF9YdQSrFL0yUtqL4entEmnR9a1KA D9VPgALaBS4pMyBWGwOmRcFxBgx7ueyxtd+YTd9nuF8wHIZY0nMlOuM9shraoLK6GXzn k4rJk9Y8YHAzUmnvnXVruYvYc5EVflUZTl/Uro7hDRXOEJCVrDIhTMfMtF1kY2apyaWN 0xLg==
X-Gm-Message-State: AOAM5319AALMMu78Ne5IPBbuMWEZLjh4XbQBbltSt5iJoKZQjTfHwK52 OjLKHQy4QEVKKEm47rhvsC4Wf0NannDVAnIPjg==
X-Google-Smtp-Source: ABdhPJxTgVieDnoLAYAopYaHZ0keRrVsGVg11Vy+SlkCG62J/cN1EEnl1gkmKyMifS4AuuK0EekMlTiNa9GuR9dplNE=
X-Received: by 2002:a25:74d6:: with SMTP id p205mr3336225ybc.254.1606988591681; Thu, 03 Dec 2020 01:43:11 -0800 (PST)
MIME-Version: 1.0
References: <CA+k3eCTtE_S5J77R-XkYdWqe0rn_55jT5b=w9MiT+LXJ7OAvUQ@mail.gmail.com>
In-Reply-To: <CA+k3eCTtE_S5J77R-XkYdWqe0rn_55jT5b=w9MiT+LXJ7OAvUQ@mail.gmail.com>
From: Filip Skokan <panva.ip@gmail.com>
Date: Thu, 03 Dec 2020 10:42:35 +0100
Message-ID: <CALAqi_8GauVLDx5efszYW861G_k9e7QcKo_d0a1-CDPSS5AJJQ@mail.gmail.com>
To: Brian Campbell <bcampbell=40pingidentity.com@dmarc.ietf.org>
Cc: oauth <oauth@ietf.org>
Content-Type: multipart/related; boundary="0000000000002ab1cc05b58c30d3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/D3o84qxgWTAWSX0-6rTd6azV-ow>
Subject: Re: [OAUTH-WG] DPoP followup II: confirmation style
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: Thu, 03 Dec 2020 09:43:15 -0000

Hi Brian, everyone,

implementers always have many ways to mess up if they don't follow the
normative requirements and verification steps we spell out for them in the
document - in dpop's case they could e.g. accept HMAC signed tokens with an
`oct` key.

Pushing the JWK in a JWT Access Token will also increase its size, in case
of RSA keys by a lot, we could say we recommend to use ES* or EdDSA keys
when JWT AT size is a concern but then EdDSA is not available in Web
Cryptography API and the available ES curves have some negative energy
<https://safecurves.cr.yp.to/> around them so it would feel weird
recommending them, better to stick our head in the sand for this one.

I'm in favour of leaving the confirmation style as-is.

Best,
*Filip*


On Wed, 2 Dec 2020 at 23:29, Brian Campbell <bcampbell=
40pingidentity.com@dmarc.ietf.org> wrote:

> There were a few items discussed somewhat during the recent interim
> <https://datatracker.ietf.org/meeting/interim-2020-oauth-16/session/oauth>
> that I committed to bringing back to the list. The slide below (also
> available with some typos and omitted words as slide #18 from the interim
> presentation
> <https://datatracker.ietf.org/meeting/interim-2020-oauth-16/materials/slides-interim-2020-oauth-16-sessa-dpop-01.pdf>)
> is the second one. To summarize (by basically repeating the content of the
> slide): It’s been suggested that, for resource access, having the JWK in
> the header of the DPoP proof JWT makes it too easy to just use that key to
> validate the signature and miss checking the binding to the AT’s cnf/jkt
> hash, which undermines the value of doing the binding in the first place.
> As I see it, there are two options here and I'd like to gauge WG consensus
> on which to move forward with.
>
>    1. It’s fine as is (AS/RS symmetry is nice, it's the same way
>    confirmation works in MTLS/TB, and the binding check is kinda fundamental
>    to the whole thing so it's not unreasonable to expect implementers to do it)
>    2. For resource access, put the full JWK in the AT’s confirmation and
>    omit it from the proof (less error prone, no hash function needed for
>    confirmation, somewhat less data overall between the two artifacts)
>
>
>
> [image: Slide18.jpg]
>
>
>
>
> *CONFIDENTIALITY NOTICE: This email may contain confidential and
> privileged material for the sole use of the intended recipient(s). Any
> review, use, distribution or disclosure by others is strictly prohibited.
> If you have received this communication in error, please notify the sender
> immediately by e-mail and delete the message and any file attachments from
> your computer. Thank you.*_______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>