Re: [OAUTH-WG] [UNVERIFIED SENDER] Re: [UNVERIFIED SENDER] RE: Cryptographic hygiene and the limits of jwks_uri

Dick Hardt <dick.hardt@gmail.com> Sat, 11 January 2020 02:35 UTC

Return-Path: <dick.hardt@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 1A08412002E for <oauth@ietfa.amsl.com>; Fri, 10 Jan 2020 18:35:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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 WB6nvO7iQL1s for <oauth@ietfa.amsl.com>; Fri, 10 Jan 2020 18:35:52 -0800 (PST)
Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 15286120018 for <oauth@ietf.org>; Fri, 10 Jan 2020 18:35:52 -0800 (PST)
Received: by mail-lf1-x12b.google.com with SMTP id 203so2901201lfa.12 for <oauth@ietf.org>; Fri, 10 Jan 2020 18:35:51 -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=1VWjxQMBNUIYzMEkYItKDeNOPXo8KmBy01CFu4mvy0k=; b=oMq6c1MW9eGvcLFJUrwIuz1/KYPCVc+Utu67tsEGTJmSP9TyUwDWdyHup/mxeLU26p xF+Nz28GnPfLy/kJoAAokQPBgaqt72SHA0x9955QeE/W3n8fhcjk1oiEYlxdzfCoNl4/ pHcFH8Dt9r/BuSe7MI9k7De8fqavJ/K/6IHS//9TrUSmbw27I8xhiYoWZWto1w2YdpL1 83otXzOdUmzAAoJX67YifJBqU2G+9XMpxkvfEK5rz1hgY0J0wPP64RnAzkFvYemC4w43 828jm4UxckaUR3Ldkg8336UtnsHSuHe1R4m8VO/K55+A3kqpUX2HTA5gMD4C2jbDqCBx CFEg==
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=1VWjxQMBNUIYzMEkYItKDeNOPXo8KmBy01CFu4mvy0k=; b=TisNeeeriyiI6ZBqFzeXlfNLynYjfiGmnNMjHaSv3WdVDqT/fyaYJ2Oyamu1HPaSKM zKfX0qm1TX7uMLEtaS+CCYgof1kmjkypRbrDiR9K9bernXLMzHZ7VghlzwNE8EB391Cz sxdadw56as3EUr6FGwMeKFvEH8RyNaWNZlhqEIP1tk29GzvBURXC9eK7YibaUd+GCf6D YGjpHTktCCs9flSeEchLX4EI9EnySg+URxfErOLLOkdje6ba6zaV/41LK+PAKweN7wwC zPHLzDp8P6JZ7RyXikYvNUBFA6Rt4jsSUi4iYIMWJS+z4Ai9wBu/aZ5m+lycH7wQsusO 46vw==
X-Gm-Message-State: APjAAAU7dD5vi+ISuLbQW/r4M/SJmw0zh0p7+40kcrNgHdKixRbYQmKf PuuodxP4pe51qWzX76NHrCeKGHMSGf0T7xszKL8=
X-Google-Smtp-Source: APXvYqxjXVi/AIu6KIcoN7ov/CG0e8SrHP2+VzStkxlVm7d0kQ429CDE/9mX1wMFruG2Atj2vaOMhjvzYxihaCBmKiQ=
X-Received: by 2002:ac2:50cc:: with SMTP id h12mr4126663lfm.29.1578710150258; Fri, 10 Jan 2020 18:35:50 -0800 (PST)
MIME-Version: 1.0
References: <CAGBSGjpFMKTCNYgeh4p7Nyh6urTbmQ0qYFHPUa+OX51Hj88UVg@mail.gmail.com> <23D54EBE-359C-40FF-8204-9F03E45D09E9@forgerock.com> <CAD9ie-vCzedTkdb-GXBVgahFb1jZcA9NdUfb0rsOAqrtup95cg@mail.gmail.com> <CAD9ie-u52XjXYd8RiMgOYFpLVd7fhiBOMLOwECD3u60ygovZRw@mail.gmail.com> <99A2BC24-C265-48DB-9353-4CE4105ED435@amazon.com>
In-Reply-To: <99A2BC24-C265-48DB-9353-4CE4105ED435@amazon.com>
From: Dick Hardt <dick.hardt@gmail.com>
Date: Fri, 10 Jan 2020 18:35:38 -0800
Message-ID: <CAD9ie-uhoLP55h8OUaaGNyqezGazeE_1LzVRp9xQZH8omWLptg@mail.gmail.com>
To: "Richard Backman, Annabelle" <richanna@amazon.com>
Cc: Neil Madden <neil.madden@forgerock.com>, Aaron Parecki <aaron@parecki.com>, oauth <oauth@ietf.org>, Mike Jones <Michael.Jones@microsoft.com>
Content-Type: multipart/alternative; boundary="000000000000b5a68a059bd41962"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/jo3D33c5EOEdiJuFr3StDAHb8YM>
Subject: Re: [OAUTH-WG] [UNVERIFIED SENDER] Re: [UNVERIFIED SENDER] RE: Cryptographic hygiene and the limits of jwks_uri
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: Sat, 11 Jan 2020 02:35:55 -0000

For new extensions, giving the key uri a new name would seem to work the
same as we have different names for different endpoints.

The cow is out of the barn for current work though.
ᐧ

On Fri, Jan 10, 2020 at 1:22 PM Richard Backman, Annabelle <
richanna@amazon.com> wrote:

> Having different JWKS URIs in the metadata document for different purposes
> would address the issue, but I’m not sure off-hand if we can clearly
> delineate purposes in a robust way without making it too complicated. So it
> may be correct for the working group to accept the situation for what it is.
>
>
>
> However, if we do that then we need to stop pretending that “use different
> keys” is a viable option. That tool needs to be tossed out of the toolbox,
> because our specifications do not allow implementers to do that in a
> meaningful way. The fact that we’ve used that argument despite this
> limitation demonstrates that this is a non-obvious result of the trust
> model we’ve adopted. If we stick with that model, we need to be more
> conscious of this issue in our future work. Some documents will need
> Security Considerations that draw attention to it, others may need more
> attention. We also need to recognize that we will be ruling out certain
> types of deployments, and certain use cases.
>
>
>
> –
>
> Annabelle Richard Backman
>
> AWS Identity
>
>
>
>
>
> *From: *Dick Hardt <dick.hardt@gmail.com>
> *Date: *Friday, January 10, 2020 at 11:00 AM
> *To: *Neil Madden <neil.madden@forgerock.com>
> *Cc: *Aaron Parecki <aaron@parecki.com>, oauth <oauth@ietf.org>, Mike
> Jones <Michael.Jones@microsoft.com>, "Richard Backman, Annabelle" <
> richanna@amazon.com>
> *Subject: *[UNVERIFIED SENDER] Re: [OAUTH-WG] [UNVERIFIED SENDER] RE:
> Cryptographic hygiene and the limits of jwks_uri
>
>
>
> To restate my previous point, we may not be able to change what is
> currently specified and deployed, but we can for future extensions such as
> RAR and PAR.
>
>
>
> To paraphrase Annabelle, this ship may have already sailed.
>
>
>
> On Fri, Jan 10, 2020 at 10:52 AM Dick Hardt <dick.hardt@gmail.com> wrote:
>
> The metadata document is declarative, and can easily be yet another
> separate role in the AS.
>
>
>
> In large organizations, different people are empowered different roles, so
> the team owning the metadata document could be different from the team
> generating ID tokens, and different from the team generating JWTs.
>
>
>
>
>
> On Fri, Jan 10, 2020 at 10:27 AM Neil Madden <neil.madden@forgerock.com>
> wrote:
>
> The problem with specifying a property on the key itself is that a
> microservice might lie about what it’s keys are for. I think you either
> need separate documents or some separate metadata mapping uses to key ids.
>
>
>
> — Neil
>
>
>
> On 10 Jan 2020, at 18:19, Aaron Parecki <aaron@parecki.com> wrote:
>
> !
>
> Can the keys in the document at the jwks_uri indicate what they are for?
> Either by adding other top-level properties next to "keys" or by specifying
> a property on a key itself? At least that way implementations that expect
> just one value of jwks_uri wouldn't have to change.
>
>
>
> Aaron
>
>
>
>
>
>
>
> On Fri, Jan 10, 2020 at 12:16 PM Dick Hardt <dick.hardt@gmail.com> wrote:
>
> Yes. Thanks for clarifying.
>
> ᐧ
>
>
>
> On Fri, Jan 10, 2020 at 10:14 AM Torsten Lodderstedt <
> torsten@lodderstedt.net> wrote:
>
> You mean additional JWKS URIs, for example?
>
>
>
> Am 10.01.2020 um 19:09 schrieb Dick Hardt <dick.hardt@gmail..com
> <dick.hardt@gmail.com>>:
>
> Perhaps I am misunderstanding what Annabelle was getting at, but having
> more than one key in the metadata document would solve the the issue. IE,
> extensions would define their own key instead of using the same one.
>
>
>
> The metadata document itself was an extension.
>
>
>
>
>
> On Fri, Jan 10, 2020 at 9:58 AM Torsten Lodderstedt <
> torsten@lodderstedt.net> wrote:
>
>
>
> > Am 10.01.2020 um 18:23 schrieb Dick Hardt <dick.hardt@gmail.com>:
> >
> > As OAuth 2.0 has been extended, the AS is now also an OpenID Connect
> Provider, and the access token is being defined. These extensions have
> assumed all of this functionality is a monolith.
> >
> > I'm not suggesting that we MUST make changes to existing extensions, but
> design future extensions so that an implementation can separate duties if
> desired.
>
> How do you envision this to work? As you said, OAuth 2.0 is built on the
> assumption the AS is (at least logically) a monolith. All extension were
> built on that underlying assumption. I don’t see how an arbitrary extension
> can relax that assumption and still be compatible with the rest (just
> revisit the discussion re PAR and keys).
>
> I think we should accept this design assumption, in the same way we should
> accept form encoding as request format instead of JSON, for OAuth 2.0
> extensions.
>
> OAuth 3.0 could explicitely be developed with different architectures in
> mind.
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>
> --
>
> ----
>
> Aaron Parecki
>
> aaronparecki.com
>
> @aaronpk <http://twitter.com/aaronpk>
>
>
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>
>