CBOR versus HTTP Message Signature

Anders Rundgren <anders.rundgren.net@gmail.com> Mon, 19 December 2022 06:15 UTC

Return-Path: <ietf-http-wg-request+bounce-httpbisa-archive-bis2juki=lists.ie@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 08DDDC14F719 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Dec 2022 22:15:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.051
X-Spam-Level:
X-Spam-Status: No, score=-5.051 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4XV7x2zO4W4t for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Sun, 18 Dec 2022 22:15:22 -0800 (PST)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3148CC14F6EB for <httpbisa-archive-bis2Juki@lists.ietf.org>; Sun, 18 Dec 2022 22:15:21 -0800 (PST)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1p79OW-006ZR9-0q for ietf-http-wg-dist@listhub.w3.org; Mon, 19 Dec 2022 06:13:00 +0000
Resent-Date: Mon, 19 Dec 2022 06:13:00 +0000
Resent-Message-Id: <E1p79OW-006ZR9-0q@lyra.w3.org>
Received: from mimas.w3.org ([128.30.52.79]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <anders.rundgren.net@gmail.com>) id 1p79OU-006ZQC-AO for ietf-http-wg@listhub.w3.org; Mon, 19 Dec 2022 06:12:58 +0000
Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <anders.rundgren.net@gmail.com>) id 1p79OS-00F54J-TV for ietf-http-wg@w3.org; Mon, 19 Dec 2022 06:12:57 +0000
Received: by mail-wr1-x42f.google.com with SMTP id w15so7558850wrl.9 for <ietf-http-wg@w3.org>; Sun, 18 Dec 2022 22:12:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=VUf/vtzfs+fB/Xsug389w3QickpOYSrWe7SX1ada9O4=; b=CedZF1mOxbwP8zjA7xkN8rzo75NyFwjo+QNJ/mGYxDkclOlbGThpblnq111sNAgxwn IQtBmZGjdrBwH6c26WhDhAwbz1BzOdXG35weEPOmEH8GlB4EecF3ZbNtHk/zBWt/sSj0 OT17YS61lPtYgegQV2pK1feY3C5oMPmoNyv4ks/Mkef+Pajrct2AVTIzqMmApDHGlzPl i8EEl3xB5CNAbHe75o3lTX/AryyYprCozQok7lw6M9qjFh+DqeAmMi+2bNYHtZoOLd8G cOoPjqx0azlUXsgvb8l9EmFzA10nxMAzeTjMzuMGrxXfe0i5nxO+9secI5conqwfZEPQ b/ZQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VUf/vtzfs+fB/Xsug389w3QickpOYSrWe7SX1ada9O4=; b=g6rlsZACIkZPvrFfx7kX/c59Z0oOrrFj8hoNfT5QpB1AJu2GFtFaJsOHQIkzEmxTYD 6f09WMeftE/6stQeGCN0aIkuaeAEFA6/PseOqOP+T+Bh48jDIC25q5wdcZL7hcux/n8h PlVY53ioRakazcodT2OSdtbs4v555HPuPaf7A/uwAQn+txA5aao9wyTTHzLixSUBESi5 TkPgfShCVt9FqvfPcw4NLOLJuSIYyWKZcLj3WX8rkfxGZqWbYB74DaD+4RZJws16Nu2Q 0whRU02BtdwSdUyk0u3xqaEKyVwApmIA5rQ2wig9RxtOHyGF7TVxCZv68+RFowdWQpP0 SheA==
X-Gm-Message-State: ANoB5plJRD2V46ljm2jBZGTXUKavQOMk18aEO5OP0nn+pNdO9N8Y6jJL GvFnXNyo3WUArAK+Z5pR5rbUjkZPsYc=
X-Google-Smtp-Source: AA0mqf5i32QWRVKbet0kgapyeohZr2iMFBZwfT8+rMqD7uIYgtoN658jkSgurGvUgJwliA/Spk6yTw==
X-Received: by 2002:a5d:4ac3:0:b0:242:31bc:e009 with SMTP id y3-20020a5d4ac3000000b0024231bce009mr22974232wrs.2.1671430364279; Sun, 18 Dec 2022 22:12:44 -0800 (PST)
Received: from ?IPV6:2a01:e34:ec4e:5670:84f9:21f3:ad95:2078? ([2a01:e34:ec4e:5670:84f9:21f3:ad95:2078]) by smtp.googlemail.com with ESMTPSA id e15-20020a5d65cf000000b00241d21d4652sm8995403wrw.21.2022.12.18.22.12.43 for <ietf-http-wg@w3.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 18 Dec 2022 22:12:43 -0800 (PST)
Message-ID: <930cc3b5-7d12-16cb-3538-d31545de8f54@gmail.com>
Date: Mon, 19 Dec 2022 07:12:42 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0
To: HTTP Working Group <ietf-http-wg@w3.org>
References: <CAD9ie-uvOK_-JxDjtZrPXGqdHUSYFNdKsaGKp6jNNhZB5bVXuA@mail.gmail.com> <9A670797-BEF3-41A5-A73F-3715F1617EF0@amazon.com>
Content-Language: en-US
From: Anders Rundgren <anders.rundgren.net@gmail.com>
In-Reply-To: <9A670797-BEF3-41A5-A73F-3715F1617EF0@amazon.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=anders.rundgren.net@gmail.com; helo=mail-wr1-x42f.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=anders.rundgren.net@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-6.1
X-W3C-Hub-Spam-Report: 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1p79OS-00F54J-TV 0eae7a838551580ef3f6d9e29c850b2f
X-Original-To: ietf-http-wg@w3.org
Subject: CBOR versus HTTP Message Signature
Archived-At: <https://www.w3.org/mid/930cc3b5-7d12-16cb-3538-d31545de8f54@gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40658
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <https://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Dear List,
I hope you don't mind me elaborating a bit on an alternative to the current IETF WG item.
A decode ago I converted from XML/XSD to JSON.
Now I have converted to CBOR for many reasons including support for a wider set of data items, and last but not least deterministic serialization.

If you put all these things together you can obtain similar results as with HTTP Signatures, but in a package that may better match the rest of a typical system.

https://github.com/cyberphone/cbor-everywhere#signed-http-requests


There are probably not many who are prepared scrapping their huge investments in JSON based systems.  JSON also remains the [currently] only viable alternative for browser based applications.

Cheers,
Anders