Re: Bikeshed: "context" parameter for signatures

Tyler Ham <tyler@thamtech.com> Fri, 23 September 2022 21:00 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 E0F53C1526F9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 23 Sep 2022 14:00:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.06
X-Spam-Level:
X-Spam-Status: No, score=-5.06 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.249, HTML_MESSAGE=0.001, 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, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=thamtech.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 xNqbWL_RESkE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 23 Sep 2022 14:00:11 -0700 (PDT)
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 E3F62C14F74E for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 23 Sep 2022 14:00:10 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.94.2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1obpjU-00Gj7z-Am for ietf-http-wg-dist@listhub.w3.org; Fri, 23 Sep 2022 20:57:12 +0000
Resent-Date: Fri, 23 Sep 2022 20:57:12 +0000
Resent-Message-Id: <E1obpjU-00Gj7z-Am@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <tyler@thamtech.com>) id 1obpjT-00Gj6p-2x for ietf-http-wg@listhub.w3.org; Fri, 23 Sep 2022 20:57:11 +0000
Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <tyler@thamtech.com>) id 1obpjR-003G32-Do for ietf-http-wg@w3.org; Fri, 23 Sep 2022 20:57:10 +0000
Received: by mail-pl1-x62d.google.com with SMTP id jm5so1193751plb.13 for <ietf-http-wg@w3.org>; Fri, 23 Sep 2022 13:57:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thamtech.com; s=googleth; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=Ny7SKQawP1GtmlbeKgOoDam9uZeoduAibnWIosO4LCc=; b=MUW7gUt/IKSKjH0SgJmi653XHGizqzGIQmWq38CaFXkMBHD7ha5zlZ+lX1SNKTBoGl wFD5uYQC6aYaeXAK133nJ1/78ac86huLn5mc7nX9TYgdZY4JIJkfAVc/YpyuK7agnFiy cFJAxqDpY2gFeqqrH3RdIajFi2UNChfF2bzjE=
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; bh=Ny7SKQawP1GtmlbeKgOoDam9uZeoduAibnWIosO4LCc=; b=pQtCbiAqTBmVgSPRXVCjHoTvZQTQUAOIWQwra9KtDVgUdp8YznHB/iDmIgFkk2J61N 71PVEsS5zZ1FCF5LLdKrrWuQnqz542aKxlCChs/UyGbBWmrKJW0KBqaVXVkGyM2yq36p eRG2krf8umcPhsA1zP8xZSMYkgS7YNVg0wh3pqPcHvS39sXq7VFL2GHEECiRljZGv3Ow yECubjMzIPPqId2qD4bTG659xk8q1xGiNCNk7uv3gO/fnn3uj9NZU027YP3g+YfTvh/d sbgmraW7qTtHMM03sdo9i77KtLeEt9EaA3sJHEDyntOXh5Vgf16b2iVEfM4rePfkigjD na3w==
X-Gm-Message-State: ACrzQf0Jf8H5MM/f75Ecp8K5hjkFDv6nKB4uWOEv4pSqQkOoPXe9o1aL 8Y1rkgjMe1JdSA5ThWB+GYsPIny2i+Oh/lQD+zxlvUJyxnQ=
X-Google-Smtp-Source: AMsMyM5fWHeXC23n2UOFPpm28LOXEOjePp5lasz0nwmdCs57+a4LJ/0RwJRHTvDbGAd1VlzmSeXnMlyJTEiMLfCp36c=
X-Received: by 2002:a17:902:7281:b0:178:388d:6f50 with SMTP id d1-20020a170902728100b00178388d6f50mr10538340pll.127.1663966617843; Fri, 23 Sep 2022 13:56:57 -0700 (PDT)
MIME-Version: 1.0
References: <54FD011B-AD69-4354-A1A1-D6F019DCB541@mit.edu> <CAGQ3E+eLfq5rLVnmjaLVh1oepTVD+Mgtko4mUpvigWRxEwvBpA@mail.gmail.com> <8FD4B671-76CB-4FC4-89A0-5FD125E843D5@amazon.com> <CALGR9oYWVzNB8AG51AW4g=VRWG42bS9sExcNU5PO9nXYo+NPug@mail.gmail.com>
In-Reply-To: <CALGR9oYWVzNB8AG51AW4g=VRWG42bS9sExcNU5PO9nXYo+NPug@mail.gmail.com>
From: Tyler Ham <tyler@thamtech.com>
Date: Fri, 23 Sep 2022 14:56:48 -0600
Message-ID: <CAGQ3E+ePQTh=+851ucNpaFwLfu1XnjgmfWOjHqLYgekBvtr0sQ@mail.gmail.com>
To: Lucas Pardue <lucaspardue.24.7@gmail.com>
Cc: "Backman, Annabelle" <richanna@amazon.com>, Justin Richer <jricher@mit.edu>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="0000000000002ccefb05e95e6b7f"
Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=tyler@thamtech.com; helo=mail-pl1-x62d.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=tyler@thamtech.com domain=thamtech.com), signature is good
X-W3C-Hub-Spam-Status: No, score=-4.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1obpjR-003G32-Do 577042e236a090fd8de7e5fa3b565430
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Bikeshed: "context" parameter for signatures
Archived-At: <https://www.w3.org/mid/CAGQ3E+ePQTh=+851ucNpaFwLfu1XnjgmfWOjHqLYgekBvtr0sQ@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40408
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>

I agree with those thoughts. I like "tag" slightly better than "label", but
both sound good to me.

The words "domain", "reference", and "ref" also come to mind. I think these
are worse for various reasons, but wanted to toss them out there in case
they spark any other ideas.

Tyler


On Fri, Sep 23, 2022, 11:33 AM Lucas Pardue <lucaspardue.24.7@gmail.com>
wrote:

> "tag" or "label" sound like good options to me.
>
> On Fri, Sep 23, 2022 at 5:54 PM Backman, Annabelle <richanna@amazon.com>
> wrote:
>
>> "appdata" doesn't address the structured data concerns Justin raised,
>> which I agree with.
>>
>> I like "tag" or "label", as they capture both the variable,
>> application-defined meaning of this parameter's value, and its optionality.
>>
>> —
>> Annabelle Backman (she/her)
>> richanna@amazon.com
>>
>>
>>
>>
>> On Sep 22, 2022, at 11:53 AM, Tyler Ham <tyler@thamtech.com> wrote:
>>
>> *CAUTION*: This email originated from outside of the organization. Do
>> not click links or open attachments unless you can confirm the sender and
>> know the content is safe.
>>
>> My first thought when I see the labels "app" and "application" is that
>> the value is meant to be the name of an application.
>>
>> How about something like "appdata"? This changes the noun to a generic
>> "data", but it keeps "app" in there as an adjective to indicate that this
>> parameter is for something application-specific.
>>
>> Tyler
>>
>>
>> On Thu, Sep 22, 2022, 8:43 AM Justin Richer <jricher@mit.edu> wrote:
>>
>>> I missed an issue that had been filed (but not tagged) prior to the
>>> publication of signatures-12, and it asks a pretty simple question:
>>>
>>> We added a “context” parameter to allow applications to put a specific
>>> string that the application can recognize into the signature parameter set,
>>> so that (for example) an authz protocol can declare that a specific value
>>> be used or a cloud deployment can have all of its proxies use the same
>>> value. However, the term “context” is used in other ways in the spec, so
>>> it’s not the best term to use for this new parameter. The proposal is to
>>> change “context” to “application” or even the shorter “app”:
>>>
>>> https://github.com/httpwg/http-extensions/issues/2249
>>>
>>>
>>> I’d like to do a quick bike shed on this parameter name here, for anyone
>>> who has an opinion. Since it’s newer, existing libraries mostly don’t have
>>> it supported yet so if we’re going to change it we should change it right
>>> now.
>>>
>>>
>>> Thanks,
>>>  — Justin
>>>
>>
>>