Digest wrap up: validators, algorithm parameters and buggy compression

Roberto Polli <robipolli@gmail.com> Tue, 26 May 2020 20:30 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 A686B3A03FE for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 May 2020 13:30:25 -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, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3L9nFAAveMAp for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 26 May 2020 13:30:23 -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 76E6B3A00E2 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 26 May 2020 13:30:23 -0700 (PDT)
Received: from lists by lyra.w3.org with local (Exim 4.92) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1jdgAP-0006lU-BM for ietf-http-wg-dist@listhub.w3.org; Tue, 26 May 2020 20:27:17 +0000
Resent-Date: Tue, 26 May 2020 20:27:17 +0000
Resent-Message-Id: <E1jdgAP-0006lU-BM@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 1jdgAN-0006km-Su for ietf-http-wg@listhub.w3.org; Tue, 26 May 2020 20:27:15 +0000
Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by titan.w3.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from <robipolli@gmail.com>) id 1jdgAM-0003cs-7s for ietf-http-wg@w3.org; Tue, 26 May 2020 20:27:15 +0000
Received: by mail-io1-xd35.google.com with SMTP id d5so14029005ios.9 for <ietf-http-wg@w3.org>; Tue, 26 May 2020 13:27:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=8X1pF0LoWzLQhqKSHQJgC/0F0xrTeWhMuRddRNMRbOQ=; b=cWHEBFQPYY0fyDnE1JNMjn5Bh1eMbDPKV72aY0kjhMhWaW8f8THldzfyDI8bYxkBPP jWGIdU/nFLAsawJJmUjEFx5D17bhIff1XsWXbIdKmj5W/8gMvxuNLhDhFxEvbKWcZGFu y1f/zMMbz9oivc9Z2F7TdLrShUwBPHPgXgmOH6wCMPrTEY5cvZNiuXN5z3ZBnB6Hhho9 mHduJk9efkCpWGI2tTKfq4vjBDkXaNRLWTNreqZseytQ8NWlbM+SpqAEj0BEpcpv82gG cJlpY1lKP919JYminZIkL+ZY3oxIIQrLQG6laO2mXrifbJt/t5f7YhJJBfdyrAvwtXUf y+1g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=8X1pF0LoWzLQhqKSHQJgC/0F0xrTeWhMuRddRNMRbOQ=; b=MeZdVl/Pv3TbDt46hyT0VkXKTuQG8sZw7TsLIrYjI+5CchEexRoFii38maGMU2OdUU 5fWhBVzhqR88SiMuZjv7J0Ce3cfyPCqm7Mg2/yhX2RYtJC1cC2WYX7kjjZdMadcE+WCp CTvy9rigseNNi0L5ZbBUzCNHdawe8YWmkV7gt3fyMrVj6AWw/A1z/ej0/F4JtkbrJ6Ot /PvDF+s/uPsXegFFKq14MGB+SfDAbio2uYXhcHZ2T2Sq3PnD9r4vrGVW+bHae9MPdEfQ IDDoRY4gaZkLM2kNHXsK3H/Ju3qSiyR7ujlWKiXpcH4RzoWLVcSQ0Vs+5FGNrN7WrjYF zfNA==
X-Gm-Message-State: AOAM533zJcH0Bl84VKnWE7nsBjvxYy+zAK2Cgmkc4IaPZPp6qZtyfw4j H5UPN8TrXzbH2IfeOlQfxgNe2+3HhB9jnlN8dM0twXjegAI=
X-Google-Smtp-Source: ABdhPJzG23UHW/4mt3oIWQrUo0/yR27Nk8ps1EJEU83XPW4fgecYJHBxzb/wVKMPkrhlY1Hz+2tOd7Vjr2O3fhjRCeo=
X-Received: by 2002:a02:9f90:: with SMTP id a16mr2714804jam.65.1590524822794; Tue, 26 May 2020 13:27:02 -0700 (PDT)
MIME-Version: 1.0
From: Roberto Polli <robipolli@gmail.com>
Date: Tue, 26 May 2020 22:26:52 +0200
Message-ID: <CAP9qbHVBc-DNU00-yxh8f4q0=cNUK2oOegkYO-sFFZda=Mz2Bw@mail.gmail.com>
To: HTTP Working Group <ietf-http-wg@w3.org>
Cc: Martin Thomson <mt@lowentropy.net>, julian.reschke@gmx.de, Lucas Pardue <lucaspardue.24.7@gmail.com>
Content-Type: multipart/alternative; boundary="00000000000011b83905a692ebbe"
Received-SPF: pass client-ip=2607:f8b0:4864:20::d35; envelope-from=robipolli@gmail.com; helo=mail-io1-xd35.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, HTML_MESSAGE=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 1jdgAM-0003cs-7s b01f7ac06a46c03ed90915e04b6aba77
X-Original-To: ietf-http-wg@w3.org
Subject: Digest wrap up: validators, algorithm parameters and buggy compression
Archived-At: <https://www.w3.org/mid/CAP9qbHVBc-DNU00-yxh8f4q0=cNUK2oOegkYO-sFFZda=Mz2Bw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/37714
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,

during today's meeting we pointed three main issues on which we need the
community support.
Probably once we close the two issues below the spec will be ready for a
call.

## Cache & Validators

RFC3230 spec says:

>The resource is specified by the effective request URI
>and any cache-validator contained in the message.

Can we just say that

>`Validators` like `Last-Modified` and `ETag`
>or other caching header fields
>may indicate the freshness of the conveyed representation.

In which way `validators` specify a resource?
Should we remove the `specify` term?

## Algoritm parameters

RFC3230 says that digest-algorthms can have parameters.
Probably we have just two possibilities: which is the better one?
We can even *pick* the one we like the most as long as this spec OBSOLETES
RFC3230.

1) Digest: mi-sha256=dcRDgR2GM35DluAV13PzgnG6+pvQwPywfFvAu1UeFrs=; rs=40

2) Digest: mi-sha256;rs=40=dcRDgR2GM35DluAV13PzgnG6+pvQwPywfFvAu1UeFrs=


## Buggy compression

While we need community feedback on the above points, I wanted to
answer to Watson question hoping that this thread won't hijack the
community attention :)

Watson asked how to use Digest for protecting from buggy compression, and
his question deserves at least a FAQ or a consideration in the spec, so I
filed https://github.com/httpwg/http-extensions/issues/1208

Thanks for all your time,
R.