Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens"

vittorio.bertocci@auth0.com Wed, 25 March 2020 16:07 UTC

Return-Path: <vittorio.bertocci@auth0.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 095B83A08FF for <oauth@ietfa.amsl.com>; Wed, 25 Mar 2020 09:07:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, 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=auth0.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 UQLTwb5dT0DI for <oauth@ietfa.amsl.com>; Wed, 25 Mar 2020 09:07:00 -0700 (PDT)
Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (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 064A53A047F for <oauth@ietf.org>; Wed, 25 Mar 2020 09:06:59 -0700 (PDT)
Received: by mail-pj1-x1035.google.com with SMTP id v13so1227582pjb.0 for <oauth@ietf.org>; Wed, 25 Mar 2020 09:06:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=auth0.com; s=google; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:thread-index:content-language; bh=5I+/atPloxO5vwDYT29JfO9rpuXf2reOvGCgC0COC4I=; b=Ev68wlQowdJzB/wlB1/qoB9szCCLOx596I6WuGvWrd1eQ6H4HIxbJ/rtO32xy1NWot GgUqli5dObQiilo6hTtIOAs9Tt+5CDGPbQnPUza/1K4M4XC1wKezkUXo38iU9uudjOIG hzMVRA58UkWE9rmc+FGRWJfMTDAN4+sUfLvdp0zbFRnnZnxIcKYq9xyLN/2sUsEHWnm8 TMEMEfRbzZ0qNXluiI6ztoHyGGI5qjgixd0ALucge8QnJYInafm7C1QnQANeT+3SkJlB Y9YVTv26oiMKjBxp9L50QUU0h7X3J5ASjrz1qh4mT7xpMrs63ruFtevmGZ4PoKcKDNuI Ha5w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:thread-index:content-language; bh=5I+/atPloxO5vwDYT29JfO9rpuXf2reOvGCgC0COC4I=; b=p2trwA7HllomYMV91qmayUirN0wWZypu4HBtFWOkw/FEy8AzwzGBupXjV8AoJ0jdon s571zuyiirVZJPlQEMoX/3TPl3VM0UUtd6mpUkpJj69WZYhlzGm2TthBfPMxNJ9Hrafp q2nU9oFKpla1grIuA+1au9LveyDd6yTBbmLut8+zVZ0fiolLpcW/7XyxiDuJb6BxcQyE p3xHPYg1sMcWoVdSvfJD648jM7ntF6tkQtX+P6tF3FjudHO4LBHkR42+QvpnONr5FHkm Tfg2Vgds84pqJ/j7s0mFC50HgCwFWmoiV0+9FamUm5IcWM9r9WDJDt4aA1XnyhN+KRaJ y/JA==
X-Gm-Message-State: ANhLgQ2FGLXuHhOY4x80tJv5pXvv/+LfK8v2hrnrh71rMkQo9e4uZu6a QvVaYwxNaPeDXbbziHwjBnPPlg==
X-Google-Smtp-Source: ADFU+vtbAfM+HG3F6GGe53RPf/W1tyJX1uk8vF0DagSipN5QVdlp40ClQBqakDJQNsmJq9wszPJdHw==
X-Received: by 2002:a17:90a:324b:: with SMTP id k69mr4505230pjb.50.1585152418754; Wed, 25 Mar 2020 09:06:58 -0700 (PDT)
Received: from vibrosurface7 (c-67-171-8-60.hsd1.wa.comcast.net. [67.171.8.60]) by smtp.gmail.com with ESMTPSA id y9sm4791049pjj.17.2020.03.25.09.06.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Mar 2020 09:06:58 -0700 (PDT)
From: vittorio.bertocci@auth0.com
To: 'Brian Campbell' <bcampbell=40pingidentity.com@dmarc.ietf.org>
Cc: "'Richard Backman, Annabelle'" <richanna@amazon.com>, 'oauth' <oauth@ietf.org>
References: <AM0PR08MB37160B8A021052198699CD17FAF00@AM0PR08MB3716.eurprd08.prod.outlook.com> <01ec01d6017c$162eb2e0$428c18a0$@aueb.gr> <CAHdPCmMzRn8iYG025Vq0sQNzgZTOkQJuMJwttDgjMDLESpjptw@mail.gmail.com> <CAO_FVe5UXY4Jxd3LdG6zyXJ8B8nFKYevcHQTVJEAFSdW0ku9tg@mail.gmail.com> <52f18114-4f8e-da86-5735-4c4e8f8d2db5@aol.com> <BL0PR08MB5394CA3CB524E95EA87CD6B6AEF10@BL0PR08MB5394.namprd08.prod.outlook.com> <74da4cc3-359c-c08a-0ae5-54c8ca309f32@aol.com> <D080BE8B-BD0D-4F63-9F33-BA23C2FB42DD@amazon.com> <DM6PR08MB5402639817677AD59898CD65AECE0@DM6PR08MB5402.namprd08.prod.outlook.com> <CA+k3eCQn4GtBpD+MOgRs1FK_aJVf3X2X2UZV4Ge7+hO1CyATZg@mail.gmail.com>
In-Reply-To: <CA+k3eCQn4GtBpD+MOgRs1FK_aJVf3X2X2UZV4Ge7+hO1CyATZg@mail.gmail.com>
Date: Wed, 25 Mar 2020 09:06:58 -0700
Message-ID: <13b6101d602bf$69b8b4d0$3d2a1e70$@auth0.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_13B62_01D60284.BD5A7910"
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQHpUDYTHxkJVh4ssWS8Yidi1aurtgOePuTPAe6K2+4Cw7Q/fALxAaHcAhX/JksB9vfjsQIGwKg5AUrAuMkCaehFgKeKjcUA
Content-Language: en-us
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/FfuHRg9dZV7oLOyM5rD-Vpb5khs>
Subject: Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens"
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: Wed, 25 Mar 2020 16:07:03 -0000

Fair. I went back to the aggregated research rather than the individual emails and I did find those samples from you- thanks for pointing this out. Nonetheless, I don’t think this changes the main argument. Symmetric isn’t disallowed, it just cannot give a complete end to end solution that would increase the likelihood prompt interoperability out of the box, hence it seems meaningful to recommend it in an interop profile.

 

From: Brian Campbell <bcampbell=40pingidentity.com@dmarc.ietf.org> 
Sent: Wednesday, March 25, 2020 8:10 AM
To: Vittorio Bertocci <vittorio.bertocci@auth0.com>
Cc: Richard Backman, Annabelle <richanna@amazon.com>; oauth <oauth@ietf.org>
Subject: Re: [OAUTH-WG] WGLC on "JSON Web Token (JWT) Profile for OAuth 2.0 Access Tokens"

 

 

 

On Wed, Mar 25, 2020 at 3:53 AM Vittorio Bertocci <vittorio.bertocci=40auth0.com@dmarc.ietf.org <mailto:40auth0.com@dmarc.ietf.org> > wrote:

>4 p1: Saying asymmetric signatures are RECOMMENDED presupposes that key distribution is the implementer’s primary concern. MAC-based implementations shouldn’t be seen as some weird edge case scenario (though it’d be worth including some Security Considerations text calling out the key distribution challenges when dealing with loosely coupled ASes and RSes).

In the spirit of achieving the simplest, most actionable core interop profile, with as little left as exercise to the reader as possible, I would prefer to keep symmetric keys out of scope. 

Although you are right that MAC-based implementations have a role to play in the OAuth2 ecosystem, key distribution is a problem left to the developer to solve; and all the sample JWTs ATs I got from the providers I worked with were signed with discoverable keys.

Again, that doesn’t mean that MAC-based implementations shoulnd’t be used: only that this profile focuses on a solution that is as close to turnkey as possible for developers, and that requests as little delta as possible to providers already using JWT for their ATs.

 

I'm not trying to re-litigate the decision or question consensus but I will ask that you don't use the justification that "all the sample JWTs ATs I got from the providers I worked with were signed with discoverable keys" because I explicitly included several example JWT ATs in the samples that I provided that were using AEAD symmetric encryption, which is similar to MAC-based but with the added benefit of confidentiality of the claims payload. 

 

See also https://mailarchive.ietf.org/arch/msg/oauth/DAFccKDPJRhA5Z-vLIrx7u5XU4Q/

 

 


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.