[jose] Re: I-D Action: draft-ietf-jose-json-web-proof-12.txt

Simo Sorce <simo@redhat.com> Wed, 05 November 2025 18:38 UTC

Return-Path: <simo@redhat.com>
X-Original-To: jose@mail2.ietf.org
Delivered-To: jose@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 2C29083C7CB7 for <jose@mail2.ietf.org>; Wed, 5 Nov 2025 10:38:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M5fjRmxL6NFC for <jose@mail2.ietf.org>; Wed, 5 Nov 2025 10:38:41 -0800 (PST)
Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 9A4A683C7CB1 for <jose@ietf.org>; Wed, 5 Nov 2025 10:38:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762367921; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FLvYptxAkXOmfqvAy25Gbwpyqi6I+UjcfChZS3HiU8s=; b=QeVLjDAUqOvyob4W3IMvieZV+UvJ/WaCie+34Pkx9qFdjUv/gXauZuosuTdtnkNqL0u84E MNalgiK1S2I+yWeQlLvdy2Ggfvnb8pUsYuq+PlZCUKn59fGEqJJRXkKDXHEOR7gmljHe7n vc01ZpVFjDjOH3gbFue0vBljwUI7L5c=
Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-492-KRLT5XX_OI2YOOiswzTaYw-1; Wed, 05 Nov 2025 13:38:39 -0500
X-MC-Unique: KRLT5XX_OI2YOOiswzTaYw-1
X-Mimecast-MFC-AGG-ID: KRLT5XX_OI2YOOiswzTaYw_1762367919
Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4eba120950fso1898941cf.2 for <jose@ietf.org>; Wed, 05 Nov 2025 10:38:39 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762367919; x=1762972719; h=mime-version:user-agent:content-transfer-encoding:organization :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FLvYptxAkXOmfqvAy25Gbwpyqi6I+UjcfChZS3HiU8s=; b=scEpJQNi0F/WElvcY3GlzkYxP1A14XsGu+zoE1sRCNeAwM+DQhW7DW6NB9+kn68kEx RcGpnJHG774l3kocF2hu6CFO9upWR/rHsK9oFYWot42MC0OcO29TxjWX394uZSid4/eH ygkHjdbryOu2fzxN5OfvOHbr0IztrScEKGJQoGGPR2vQRXgJxB234UPCeUuXThPU3jd5 PDboNJw8lEIKl7z6eiPOHiJKzxFK/fVR+1ObLwhp+hWgWftIlEIceuGv9OP2OqrWPodw xxviuFnpwMGvVKNeN7MSZBrOqdKS2ps5KJZry0MAhfsXttiZniKspWE3+fwCSSvJdMl1 gWlw==
X-Gm-Message-State: AOJu0Yz3AD4CNVReyorI+V4aXoD/8cmC/8e/mXjrUHxifVdUYhvmRB8q PnEkh0QLLfJjDMg3D6RC94/JLbVZwE6Qwz84VpbPpDcbSKMuN2ZK1lMpOOhV9QfwyizyKYEeA2X hovi+jRFqsROsj8pvF4j6GZmUsTZLpRzZ8H/5ib4eV8msLFKZVNMvOg==
X-Gm-Gg: ASbGncvycrr7/FB7m8YYzjdDurYxYdMfdA+UTHiuIKK83DKz6AoHWkMF5FHik7oLPW+ xwI3lr+Db3jE2LGOIfWTiU3a3qbv0XHy7z4cUsmolKai0KlDFQcgLsUhMQYGvyJkWw5KQyiDMkm qB75J3f9wdGZxQH4s4qdbSqnz8XXwxw4+U7PmLldjR2goLh9y4zmKT/tx5JFjTUXpaTmci7Ka+e Lt9NY1kt8rpHo3A8DOTo2PhJxKLHexLcm3g8zqgsDghynZ48bmYds8mrVxDkqoKhz9W3XncHgp0 Zbuoto96UstHSbGuMTx+aKBHqxvdLIeMKQREoronR+vSfYCJ7ZXIveEV7Q1IfCEKisNwKQ==
X-Received: by 2002:ac8:7f4b:0:b0:4eb:a24d:8c17 with SMTP id d75a77b69052e-4ed72354a98mr47036911cf.31.1762367918933; Wed, 05 Nov 2025 10:38:38 -0800 (PST)
X-Google-Smtp-Source: AGHT+IGWqwSWyo5UtS0oAAnyd68dC9fvhjDegZ8TW+L+Qql6rQk2u/HZpls/W+e5gi0nPCKFUnHMgQ==
X-Received: by 2002:ac8:7f4b:0:b0:4eb:a24d:8c17 with SMTP id d75a77b69052e-4ed72354a98mr47036671cf.31.1762367918509; Wed, 05 Nov 2025 10:38:38 -0800 (PST)
Received: from m8.users.ipa.redhat.com ([2603:7000:9400:fe80::318]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4ed813ea493sm733871cf.32.2025.11.05.10.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Nov 2025 10:38:37 -0800 (PST)
Message-ID: <ceac4ede9adac3fcc0ebc770a4476cd57b71945b.camel@redhat.com>
From: Simo Sorce <simo@redhat.com>
To: David Waite <david=40alkaline-solutions.com@dmarc.ietf.org>
Date: Wed, 05 Nov 2025 13:38:37 -0500
In-Reply-To: <8F38BEF8-F635-4001-A594-F9648139A85A@alkaline-solutions.com>
References: <176230476293.658394.8309587942982495635@dt-datatracker-5df8666cb-7l4w5> <2fff93e711e621960abe362cebd58b16a2080b6c.camel@redhat.com> <8F38BEF8-F635-4001-A594-F9648139A85A@alkaline-solutions.com>
Organization: Red Hat
User-Agent: Evolution 3.56.2 (3.56.2-2.fc42)
MIME-Version: 1.0
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: MKwamE2kfGY9GKsfeZR1xJtynngAzq_6_KMWo0PFalo_1762367919
X-Mimecast-Originator: redhat.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: 2DSBI462JN5KI3VPGUHRUEPN3BWIPJNL
X-Message-ID-Hash: 2DSBI462JN5KI3VPGUHRUEPN3BWIPJNL
X-MailFrom: simo@redhat.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-jose.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: jose@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [jose] Re: I-D Action: draft-ietf-jose-json-web-proof-12.txt
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/jose/SJB4NfeclnCRIgnhDspMRl_mDAw>
List-Archive: <https://mailarchive.ietf.org/arch/browse/jose>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Owner: <mailto:jose-owner@ietf.org>
List-Post: <mailto:jose@ietf.org>
List-Subscribe: <mailto:jose-join@ietf.org>
List-Unsubscribe: <mailto:jose-leave@ietf.org>

Hi David,

Having both COSE and JOSE specifications in the same documents is also
problematic.

The last few documents I read are much harder to parse due to the focus
constantly shifting from one to the other. Not only it is harder for an
implementer that needs to implement only on or the other to follow the
document, it also risks conflating and confusing matters where the two
protocols differ.

I would strongly suggest paired documents instead where each only
discusses the either JOSE or COSE implementation requirements, but of
course with potential calls over to the other document for common
rationales. The registries are separate anyway so paired documents
would work well both for expert review and processing.

If paired documents are technically difficult I would urge to at least
organize documents with a common abstract, and then two completely
distinct sections, one for JOSE and one for COSE, so the implementer
can follow either one or the other branch according to what their
implementation domain is.

I am actively reading these documents and they are very tedious and
hard to parse having to constantly check if they are referencing JPT vs
CPT or sometimes both every other paragraph.

I really don't care about COSE and CBOR and these latest developments
make reading, interpreting and implementing these specifications for
the goal of implementing a JOSE library, much harder.

HTH,
Simo.

On Wed, 2025-11-05 at 10:05 -0700, David Waite wrote:
> Hello Simo!
> 
> The expectation is that within a particular application, one or the other would be chosen. As such, implementors also would be expected for the most part to target one or the other as mandated by the application domain. I think it would be appropriate adding text to that effect.
> 
> The JOSE WG is chartered to create CBOR representations of JWP and JPT, and to leverage COSE and CWT where feasible. The changes in the scope of these documents largely come to different header data serialization for CBOR-encoded JWP, different payload data serialization when creating CPT, and media types to distinguish JSON from CBOR. Several headers also have slightly different representations (but the same semantics) under the assumption of leveraging JOSE vs COSE infrastructure.
> 
> Editorially, the decision was made to keep JSON and CBOR in the same documents to better illustrate when there are differences and to simplify creation of common registries, but also as a conscious choice to not represent CBOR serialization as being a secondary or lesser goal when the work is being done under JOSE rather than COSE.
> 
> -DW
> 
> > On Nov 5, 2025, at 8:05 AM, Simo Sorce <simo=40redhat.com@dmarc.ietf.org> wrote:
> > 
> > FWIW as an implementer of the JOSE suite of algorithms and protocols I
> > am *not* in favor of adding a binary serialization (CBOR) to JOSE, as
> > it is completely antithetical to the rest of the specification and
> > would force implementations to add a completely new and complex parsing
> > and serialization subsystem that is fundamentally different from the
> > rest of the protocol.
> > 
> > On Tue, 2025-11-04 at 17:06 -0800, internet-drafts@ietf.org wrote:
> > > Internet-Draft draft-ietf-jose-json-web-proof-12.txt is now available. It is a
> > > work item of the Javascript Object Signing and Encryption (JOSE) WG of the
> > > IETF.
> > > 
> > >   Title:   JSON Web Proof
> > >   Authors: David Waite
> > >            Michael B. Jones
> > >            Jeremie Miller
> > >   Name:    draft-ietf-jose-json-web-proof-12.txt
> > >   Pages:   33
> > >   Dates:   2025-11-04
> > > 
> > > Abstract:
> > > 
> > >   The JOSE set of standards established JSON-based container formats
> > >   for Keys, Signatures, and Encryption.  They also established IANA
> > >   registries to enable the algorithms and representations used for them
> > >   to be extended.  Since those were created, newer cryptographic
> > >   algorithms that support selective disclosure and unlinkability have
> > >   matured and started seeing early market adoption.  The COSE set of
> > >   standards likewise does this for CBOR-based containers, focusing on
> > >   the needs of environments which are better served using CBOR, such as
> > >   constrained devices and networks.
> > > 
> > >   This document defines a new container format similar in purpose and
> > >   design to JSON Web Signature (JWS) and COSE Signed Messages called a
> > >   _JSON Web Proof (JWP)_.  Unlike JWS, which integrity-protects only a
> > >   single payload, JWP can integrity-protect multiple payloads in one
> > >   message.  It also specifies a new presentation form that supports
> > >   selective disclosure of individual payloads, enables additional proof
> > >   computation, and adds a Presentation Header to prevent replay.
> > > 
> > > The IETF datatracker status page for this Internet-Draft is:
> > > https://datatracker.ietf.org/doc/draft-ietf-jose-json-web-proof/
> > > 
> > > There is also an HTML version available at:
> > > https://www.ietf.org/archive/id/draft-ietf-jose-json-web-proof-12.html
> > > 
> > > A diff from the previous version is available at:
> > > https://author-tools.ietf.org/iddiff?url2=draft-ietf-jose-json-web-proof-12
> > > 
> > > Internet-Drafts are also available by rsync at:
> > > rsync.ietf.org::internet-drafts
> > > 
> > > 
> > > _______________________________________________
> > > jose mailing list -- jose@ietf.org
> > > To unsubscribe send an email to jose-leave@ietf.org
> > 
> > -- 
> > Simo Sorce
> > Distinguished Engineer
> > RHEL Crypto Team
> > Red Hat, Inc
> > 
> > _______________________________________________
> > jose mailing list -- jose@ietf.org
> > To unsubscribe send an email to jose-leave@ietf.org

-- 
Simo Sorce
Distinguished Engineer
RHEL Crypto Team
Red Hat, Inc