Re: signatures vs sf-date

Lucas Pardue <lucaspardue.24.7@gmail.com> Tue, 24 January 2023 01:27 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 5FEF5C15E406 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2023 17:27:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.749
X-Spam-Level:
X-Spam-Status: No, score=-2.749 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, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_BLOCKED=0.001, 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 l1st2PI8YKsS for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Mon, 23 Jan 2023 17:27:48 -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 E2D2DC15DD5D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Mon, 23 Jan 2023 17:27:46 -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 1pK85z-006mrH-4L for ietf-http-wg-dist@listhub.w3.org; Tue, 24 Jan 2023 01:27:31 +0000
Resent-Date: Tue, 24 Jan 2023 01:27:31 +0000
Resent-Message-Id: <E1pK85z-006mrH-4L@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 <lucaspardue.24.7@gmail.com>) id 1pK85x-006mqK-Uy for ietf-http-wg@listhub.w3.org; Tue, 24 Jan 2023 01:27:29 +0000
Received: from mail-oa1-x32.google.com ([2001:4860:4864:20::32]) by mimas.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <lucaspardue.24.7@gmail.com>) id 1pK85w-00EObQ-Ji for ietf-http-wg@w3.org; Tue, 24 Jan 2023 01:27:29 +0000
Received: by mail-oa1-x32.google.com with SMTP id 586e51a60fabf-15085b8a2f7so16131705fac.2 for <ietf-http-wg@w3.org>; Mon, 23 Jan 2023 17:27:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4AUURAbqZMWVXLF2Iy/TNDbSY7lWdY1pWIYDMGPoFsY=; b=qZPP3lUGZC3DIq0P69ZobZoyWWD5oUhZJdInc0Q/ooHPwKiv8S2V6WtWz/jEkcsnL9 rnQUBppcQH9tl5ffzOwr0xmDJP3m4+0GtEGUhMyy93pBSf0AnyKMtAOn1N7AlgFzbsN7 Zk0jq0M2fLaFiD8RAWG27XJCqNX6Kx00tqPmqeAa/h0a/IDkE0uTvYcuXZfN8xoukyhT vvOR/u5Xg+xaxUDma2xnxnhhx0mf14BS8CtrGb0FRgeg1RMaEnuPJ5RCxEYYuRoj1tJd UyCYmoYl4ps0qZn3zIArpUjFh8r5LWZdTeNPIAAjrNl9LSiADGruOEa0wcYnPzdn2NNm tTpQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4AUURAbqZMWVXLF2Iy/TNDbSY7lWdY1pWIYDMGPoFsY=; b=NXuoPeBhfxQmbEhiEOR/64il1qCHjC031LM6W2OdvI/B9XqTaaUTSP7a4S6Q8rmDyK voyISpUgZQJwW3FnMhf2UYvV6UKYMjI8b3e/93c9PVmA/gq4YGbBXOOtmEE8BD96y2hP PAl9Bi+cZVct3daHZUt0+Ccg96V4sce9gwsmChk6RtLGugBjQOJ8gfjGtkJz7lbfdcY9 OBtEJPcuYarLt7SsnV2P6ZEFFjGVUs87cOW9MxunFPRZCRGBNGnBafO/gYfMdLYCjw8B bkAw8FuqaRA+yfwsoR5+3CCzBmmubTgaTvzc2gBeyN7PZ7Jdh5VxC/h+WXL1XksqZdgB 4Ojg==
X-Gm-Message-State: AFqh2krFcGsnCOnPB6I8Lay33lIBv3nGWe800Aa+cxmLmvJtcLz2w3DO Gx+mRzx8GobWWk9GXHWKSUkn8p1Txmf1YqomQCg=
X-Google-Smtp-Source: AMrXdXthG7WhaQ8fHKV/yvMFVSzg+kYe2ciZd95Qch7RduOFaTpR2tleHdjF/1FvaJwHKU8iQHMIjTRoTH3rXSNAj/M=
X-Received: by 2002:a05:6870:6605:b0:14f:bdc3:ab23 with SMTP id gf5-20020a056870660500b0014fbdc3ab23mr2498078oab.240.1674523637315; Mon, 23 Jan 2023 17:27:17 -0800 (PST)
MIME-Version: 1.0
References: <2070c8e0-98d6-7b63-77c3-550bcd661397@gmx.de> <8b547e17-1f24-ff1f-90d1-ec4c974de88f@gmx.de> <FEA9B22C-B3AC-48D0-B4AC-64BADB8E8F18@mnot.net> <a4cae48c-960f-0edb-33c5-19e01b7e4093@gmx.de> <CALGR9oZMYhB8MXZzJHjb1QM+x7f3w_bENDLDqr39+BR5=t5r3w@mail.gmail.com> <4e63a31d-1168-2736-53f1-13b80a03dd05@gmx.de> <262F3422-22EC-4AA6-803C-B45CEA8DAE87@mnot.net>
In-Reply-To: <262F3422-22EC-4AA6-803C-B45CEA8DAE87@mnot.net>
From: Lucas Pardue <lucaspardue.24.7@gmail.com>
Date: Tue, 24 Jan 2023 01:27:06 +0000
Message-ID: <CALGR9obds85hyv-mUbOUqShOesbLWcm=SwT=ax_+hFEXhbDqUg@mail.gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Cc: "Julian F. Reschke" <julian.reschke@gmx.de>, ietf-http-wg@w3.org
Content-Type: multipart/alternative; boundary="00000000000091fcd705f2f86a65"
Received-SPF: pass client-ip=2001:4860:4864:20::32; envelope-from=lucaspardue.24.7@gmail.com; helo=mail-oa1-x32.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=lucaspardue.24.7@gmail.com domain=gmail.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.8
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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: mimas.w3.org 1pK85w-00EObQ-Ji 1d8f1128f6ea398c0542b518f8473a5a
X-Original-To: ietf-http-wg@w3.org
Subject: Re: signatures vs sf-date
Archived-At: <https://www.w3.org/mid/CALGR9obds85hyv-mUbOUqShOesbLWcm=SwT=ax_+hFEXhbDqUg@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40705
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>

On Tue, Jan 24, 2023 at 12:01 AM Mark Nottingham <mnot@mnot.net> wrote:

>
> > On 24 Jan 2023, at 3:09 am, Julian Reschke <julian.reschke@gmx.de>
> wrote:
> >
> > What about a dictionary, where you're only looking for "x" (expected to
> > be an integer), but the sender adds an extension parameter "y" as
> sf-date?
> >
> > A conforming parser (of the current spec) will reject the whole field
> > value, and the recipient will not be able to see the value for "x".
>
> If you are parsing a field that uses Date, its specification will refer to
> sf-bis, not RFC8941. Therefore, you will need to use an implementation that
> claims conformance to sf-bis. What's the problem?
>
>
I think the problem is that you can't extend any existing field to use a
parameter of Date type. You can't expect the receiver to know about the
extension nor have the parser robustly skip the Data parameter that it
doesn't care about. Constraining the Date type to new fields, or OOB
feature negotiation, seems like a reasonable constraint TBH. Some text to
call out the potential issues might be nice.

Cheers,
Lucas