Re: Digests: deprecating parameters?

Roberto Polli <robipolli@gmail.com> Wed, 26 August 2020 14:52 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 20D733A154F for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 26 Aug 2020 07:52:12 -0700 (PDT)
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.249, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HsAyMKi-wfHV for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 26 Aug 2020 07:52:10 -0700 (PDT)
Received: from lyra.w3.org (lyra.w3.org [128.30.52.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 975A33A1552 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 26 Aug 2020 07:52:10 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1kAwjL-0002gJ-7e for ietf-http-wg-dist@listhub.w3.org; Wed, 26 Aug 2020 14:48:51 +0000
Resent-Date: Wed, 26 Aug 2020 14:48:51 +0000
Resent-Message-Id: <E1kAwjL-0002gJ-7e@lyra.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by lyra.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1kAwjJ-0002dL-MX for ietf-http-wg@listhub.w3.org; Wed, 26 Aug 2020 14:48:49 +0000
Received: from mail-io1-xd41.google.com ([2607:f8b0:4864:20::d41]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1kAwjH-0002RW-VH for ietf-http-wg@w3.org; Wed, 26 Aug 2020 14:48:49 +0000
Received: by mail-io1-xd41.google.com with SMTP id g14so2408913iom.0 for <ietf-http-wg@w3.org>; Wed, 26 Aug 2020 07:48:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Qjok6bMW0PrXWsugxFHOAbPY4DgSJvdCHrX+7leA9QA=; b=IMbIkr4V6ryoVXXiyEyaf+Z7YSWZW0+EuzM/Ho6tic1qG6yvmNB3kyiIBoDX6nmbN4 whuO0oRqkUF28tYYS+OzlwaUm0mtEKdW0j+fKWkzvE3U2X9Xiwo/lQqwOj0TMEFTiGq5 Z1nf9zvxNVZ0vA0O0e33k/A5zFxH++Zdsv5e+iKLM7Iz7yZ8BsYOYMeYz5ImXgAsod1Z Z/n5uTRMvutvuqsXwGG91qFkYslNDAmTCwaVL0flVH1WwzaW7NXj/tACWfaON4nAtMij vzus0/1nCtHhDP216Vh2zGBoWc3CYZZ0z8ljPNsxMKzHEneb+8KOMzpdwz28xZ3QvF+W s9LA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Qjok6bMW0PrXWsugxFHOAbPY4DgSJvdCHrX+7leA9QA=; b=mC08wUQzu+igMrLK7/eHaEhuYbXlTCUJLOaYOwE5k7N6RhrAaW3F8CkhDJu7sfbEQD wVoz7AMtH/tUXMrkgWj9Ut+01+6iPFd1BHeQeDNo+1b3O00+R9ygPRz+JQKRwCR/Wl8W ZJLbkoLPkUeUe7Ohv7eQDk7dfsZerAvv655vxfe14PqjfS4fSRtgYFD/1iYswZnDsfzd 8jx+Wj5Y747pH2wDy3xg/YsDYlujynEe25BYFudvL1+HAcWwR+hC8vAcJv/9pSXILMFo 8c4/0hEcoVv2W02bDgUOzSg4WwsjqWCpQiBTgZGPh7HGDvzJBryknvc/x8fa/sXU/Ftb JFHA==
X-Gm-Message-State: AOAM531bld3eNdiW/Shj6thPnQQITULQkpLO9oC/1NVcpZW6+FbQ//qf QlAP+MPMNWd9Dw9F9arpcnavjsG8iF/zLqB8uJqt8xtK6LwjFA==
X-Google-Smtp-Source: ABdhPJyP9fK0fMlcMmZj+KAoucJ88G5DXyG6tY9eGMbm72tGsmaEzs0pwR71lrYnhEMOZXvT3MEemkQMLKX9XEefs2A=
X-Received: by 2002:a6b:bb43:: with SMTP id l64mr13373994iof.191.1598453316019; Wed, 26 Aug 2020 07:48:36 -0700 (PDT)
MIME-Version: 1.0
References: <CALGR9oYCU2b3wiTFV8uNO37opK0XMgq_=D0sTyZVw8kVuKG+4g@mail.gmail.com> <c71669f6-bb90-1952-7ca4-2db42a64fe55@treenet.co.nz> <CAP9qbHUWV+bpoUYBD6ckD36i=uFOkkrQRB=zmNCLER2d4M+K8w@mail.gmail.com> <7025.1597764267@critter.freebsd.dk> <CAP9qbHWCZRYY76+z124sCCwtdoA1+H6L-Wkkx4wgtbrtWBGQwQ@mail.gmail.com> <7216.1597767614@critter.freebsd.dk> <CAP9qbHWQM2ov+3LPckX=XdASCUjmqbBa_=T1v7fY9NAwVdHurw@mail.gmail.com>
In-Reply-To: <CAP9qbHWQM2ov+3LPckX=XdASCUjmqbBa_=T1v7fY9NAwVdHurw@mail.gmail.com>
From: Roberto Polli <robipolli@gmail.com>
Date: Wed, 26 Aug 2020 16:48:25 +0200
Message-ID: <CAP9qbHXDCunyAFwWQjFTRp2PKYdedQ=gh+n0nQ9m_wRxk5GUzw@mail.gmail.com>
To: Poul-Henning Kamp <phk@phk.freebsd.dk>, Mark Nottingham <mnot@mnot.net>, Julian Reschke <julian.reschke@gmx.de>
Cc: Amos Jeffries <squid3@treenet.co.nz>, Lucas Pardue <lucaspardue.24.7@gmail.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::d41; envelope-from=robipolli@gmail.com; helo=mail-io1-xd41.google.com
X-W3C-Hub-Spam-Status: No, score=-5.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_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1kAwjH-0002RW-VH 00a2e010a897c9013ddafe25147fcc0c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Digests: deprecating parameters?
Archived-At: <https://www.w3.org/mid/CAP9qbHXDCunyAFwWQjFTRp2PKYdedQ=gh+n0nQ9m_wRxk5GUzw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37957
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>

Hi @all,

today me and Lucas had a brief meeting on the parameters subject,
and considering those feedback we decided the following:

- given this comment from @Mark Nottingham
https://github.com/httpwg/http-extensions/issues/1211#issuecomment-675208548
  and as this specification is a refresh of RFC3230, we cannot *still*
switch to S-F. We would really like to switch in the future,
  and we both agree with @Poul-Henning Kamp considerations;
- given that digest-algorithms are case insensitive, we'll make a PR
saying that they SHOULD
  be used in *lowercase*, to ease a future transition to S-F;
- in absence of implementation, we'll follow @Julian Reschke  propose
to DEPRECATE http-parameters usage and
  wait for implementor feedback. We think that @Amos Jeffries
considerations are reasonable, but decided to make
  an attempt to simplify the spec.

Related PRs will land on the repo: feel free to provide more feedback
or suggest implementers to engage with the WG.

Clearly further feedback is always welcome!

Have a nice day,
R:

Il giorno mar 18 ago 2020 alle ore 18:39 Roberto Polli
<robipolli@gmail.com> ha scritto:
>
> Il giorno mar 18 ago 2020 alle ore 18:20 Poul-Henning Kamp
> <phk@phk.freebsd.dk> ha scritto:
> >
> > --------
> > Roberto Polli writes:
> >
> > > While I like sf-binary, actual digest-algorithms define their own serialization
> > > method (in this case it's accidentally the same of structured headers) but other
> > > algorithms use eg. integer.
> > >
> > > To support SF we could say that digest-algorithms like sha-256 and
> > > sha-512 should be supported
> > > in both sf-binary and the traditional token format.
> >
> > The most sensible way (IMO) is to define that *all* digests are *always* sf-binary.
>
> I certainly agree on all your statements, but we cannot break current
> implementations
> of sha-256 and sha-512 for fixing the parameters issue.
>
> So:
> -  ok to prepare Digest to be SF-ready
> - ok if there's a way do describe the current Digest syntax with SF,
> so that we can later obsolete non sf-binary algoritms
> - not sure that fixing the parameters issue is a valid reason to
> introduce SF now
>
> My 2c,
> R.