Re: [OAUTH-WG] .well-known/jwks.json and constrained-voucher and RFC7517

Warren Parad <wparad@rhosys.ch> Tue, 12 July 2022 19:46 UTC

Return-Path: <wparad@rhosys.ch>
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 D588AC14CF1F for <oauth@ietfa.amsl.com>; Tue, 12 Jul 2022 12:46:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rhosys.ch
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 MOfjvuW2dszO for <oauth@ietfa.amsl.com>; Tue, 12 Jul 2022 12:46:13 -0700 (PDT)
Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (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 2810DC157B4D for <oauth@ietf.org>; Tue, 12 Jul 2022 12:46:13 -0700 (PDT)
Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-31d85f82f0bso56258847b3.7 for <oauth@ietf.org>; Tue, 12 Jul 2022 12:46:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhosys.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EcJpotPmE2n+q/pPiphk7LHDTAvK+ONfQxJrLPtzaZM=; b=SGM9sRxbJrXcT+Tj/v7JyCQjdkEH77DJjw8kCqKg9c1rn5iRNBBKoVjtFe7QDn8PUJ 3+KZ/5FZAR+qvmaQIhdCMskhzDZ0aVxq+ROh8eN/p84S81xvPCHa5Jpw20rEvAvN+n/0 YpabtvcGXT9KdoR0ig/cutUj3DMnbiM2nsRiQNfIa0VrguCBIyZTBXVGFXDglLLGuVFJ jyAAfIIIip7uNDVIWDg1yt+cMzrJWHWu+UtjdbI9nGoSrdHjN84jNQcZzRyq9LJjMaJd BjTQpNecOe/wrNnY+NjprrTMyAsB99aaCg/ShE5ciAl+FozBgu6MHSe1u6KmEcmvsJ/k f2gw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EcJpotPmE2n+q/pPiphk7LHDTAvK+ONfQxJrLPtzaZM=; b=qq/lIjC2sV8CJTm3DA6yv09MTSfc5ISneDM5AaFa9XMaQFfthfrr0mDzyViLbyWLvh dJ1X2IAklhCSsOlBmI7tN74iI2yChC4RGncBLdTyS679dsjAGTFGH5J210V9Vlp366LD C1vlnnQ5VR7vOHN+iQWE6tYA8u/COn44K1eWR3lwsS9xZV+hPeE7IS5MdBz6g3WpS6PI Vz1dBSFsDFYHSwsDeQqacKtypHHiuawpU19X2BMq4g4hSKVsyowGkuY+C2wvE7csTh/L 2U98CfNsSM+vbevBSetfINNgEdp0TUGXhgjw9aLyZROWFXN+3U2A44W3TazI7YNFk83H C8oQ==
X-Gm-Message-State: AJIora8wnvN7dZ9zrLspT/ceB3ghJLk16dcdT7A+l6kPbtS0R/S3qkks hY2HmFr9sNsUyPr2B7zPZ/Qb49AGMxqsyPaJnrEYp61D48LR
X-Google-Smtp-Source: AGRyM1vOTREHTKbPT3zifQ0OFLT3Bur/hvP714FvkMI69xcFreIjylSLgYzPcKFl5r34k3QmB6G6hTvGE7zwDxI+fq8=
X-Received: by 2002:a0d:da04:0:b0:31c:933b:b1f with SMTP id c4-20020a0dda04000000b0031c933b0b1fmr26013209ywe.466.1657655171866; Tue, 12 Jul 2022 12:46:11 -0700 (PDT)
MIME-Version: 1.0
References: <17088.1657653966@localhost>
In-Reply-To: <17088.1657653966@localhost>
From: Warren Parad <wparad@rhosys.ch>
Date: Tue, 12 Jul 2022 21:46:01 +0200
Message-ID: <CAJot-L2UWPyNj2jwMFdwq16fNvzVV669KTtOgtM1MwXiQ5_7Gw@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: cose@ietf.org, Mark Nottingham <mnot@mnot.net>, oauth <oauth@ietf.org>, anima@ietf.org
Content-Type: multipart/alternative; boundary="000000000000adfad305e3a0ebaf"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/IwhWlwU0NTctMvVmC2tlRJ9jagk>
Subject: Re: [OAUTH-WG] .well-known/jwks.json and constrained-voucher and RFC7517
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, 12 Jul 2022 19:46:16 -0000

I don't know if this is relevant, but jwks.json isn't registered, because
it doesn't have to be at that location. The
/.well-known/openid-configuration discovery document, which is registered,
uses the jwks_uri property to specify the location of the jwks. For
instance, our product doesn't have the jwks at /.well-known/jwks.json for a
lot of different reasons. Having a discovery document that points to your
jwks makes sense, ideally you would be able to use the known discovery
document at /openid-configuration, but I don't know if that is viable or
makes sense for your context.

On Tue, Jul 12, 2022 at 9:26 PM Michael Richardson <mcr+ietf@sandelman.ca>
wrote:

>
> EXEC-SUM: /.well-known/jwks.json seems in use, but not registered
>           with IANA.   I don't know if it's appropriate for my use.
>           Seems to contain RFC7517 content.
>
>
> Hi, in draft-ietf-anima-constrained-voucher we are creating a CoAP/CBOR
> version of RFC8995 (BRSKI).  One thing that we want to avoid is any extra
> keys or certificates in the constrained voucher.  If we have certificate
> chains that *do* need to be transmitted we will use x5bag.
> As BRSKI has three parties:
>    MASA (signer), Registrar (audit/owner), Pledge(relying party/verifier)
>
> In general, the Pledge is built by the same entity as runs the MASA, and so
> the in the simplest form, the Pledge can be built with appropriate trust
> anchors.  (There could be PKI trust roots built-in, or self-signed EE)
> In the constrained situation, we can sign with a raw public key using CWT.
>
> The Registrar would ideally like to verify the signatures.
> The Registrar would in many cases get the right anchors to verify the
> signature via a supply chain integration.   There are other situations
> where
> a TOFU is appropriate.
>
> In either case, we'd like to automate the transfer of the keys from MASA
> to Registrar.
> In a supply chain integration, then an operator might validate the keys
> before they are activated, but online transfer makes a lot of sense to
> reduce
> errors, particularly as keys get bigger in a PQ world.
>
> It was suggested that if we just knew the manufacturer's URL, that
> /.well-known/jwks.json would work for us.  I think it would.  I see
> "documentation" at:
>    https://www.baeldung.com/spring-security-openid-connect (section 6)
>    https://www.baeldung.com/spring-security-oauth2-jws-jwk
>
> which seem to refer to keys in RFC7517 format.
>
> Note: We have three anchors that we might like to deploy.
>
> 1) the key that signs the RFC8366/constrained-voucher objects.
>    Could be a RPK.
>
> 2) the key that signs the IDevID certificates in the devices.
>    Most likely a RFC5280 self-signed certificate, but of course, it's a
> trust
>    anchor, so likely only the public key matters.
>
> 3) the manufacturer could have a CA trust anchor, and #1 and #2 might be
>    provided via subordinate CAs, and only #3 needs to be transfered.
>    (#1 is an EE certificate)
>
> draft-richardson-anima-masa-considerations actually discusses some of the
> options here.
>
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
>            Sandelman Software Works Inc, Ottawa and Worldwide
>
>
>
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>