Re: RFC 9113 and :authority header field

Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> Wed, 29 June 2022 09:18 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 13A2EC15A73D for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 29 Jun 2022 02:18:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.757
X-Spam-Level:
X-Spam-Status: No, score=-7.757 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_HI=-5, 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_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 wSqxiPbuHJV0 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 29 Jun 2022 02:17:59 -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 56997C15A73C for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 29 Jun 2022 02:17:58 -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 1o6Tm1-00DO55-8F for ietf-http-wg-dist@listhub.w3.org; Wed, 29 Jun 2022 09:14:13 +0000
Resent-Date: Wed, 29 Jun 2022 09:14:13 +0000
Resent-Message-Id: <E1o6Tm1-00DO55-8F@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 <tatsuhiro.t@gmail.com>) id 1o6Tm0-00DO47-4R for ietf-http-wg@listhub.w3.org; Wed, 29 Jun 2022 09:14:11 +0000
Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by titan.w3.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <tatsuhiro.t@gmail.com>) id 1o6Tlw-006YW9-Cg for ietf-http-wg@w3.org; Wed, 29 Jun 2022 09:14:11 +0000
Received: by mail-ej1-x62e.google.com with SMTP id fw3so3608100ejc.10 for <ietf-http-wg@w3.org>; Wed, 29 Jun 2022 02:14:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xeg4wPX3DbXRHQ2YOoilYpyJrOJ8dZc4YszLbqE7vuA=; b=QPluLRgg4zUL6thLP7sT7A5RjQWXuYkLoM8bYeP3WRpfYqY98DQVErQkiWDAWcHU3P OQINvW9mIDPeC2WT6bsyGpvHgsl/E8byCF/8XcWPpKwrtnLUsreZyYCzwq7Sn+XfaVEZ rfcnp8c+QT5XVzxh1+zOabUol3CHTPICgNEcUcGWSm+KMKXYd01/mbq36eJbh3pDwZ5i OdqufwF2Jzan8tOVmHM1D6UEb4pdcxBE7sjNshRKhSg6IwkZoGTfCgF4/q47+YXawZxX JE5gHp2Ic159k+4C+UUW4rwC7vEycMkNm1cegLZSj1ceQpmm6opSH212u5R2w0dwmhg2 OWtg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xeg4wPX3DbXRHQ2YOoilYpyJrOJ8dZc4YszLbqE7vuA=; b=awFayfFVXzEUVhRu9gZCIY0ZYuaMLWBlYCb0nNnhTxPpZTxCkeQSrkOd3aky1i7eAo rkTzjytfm+qJ6wK9Hhr7Efd4zQPRWcg9PjBQQQCtBTjTGGHKvbNIv75IuFuBJ5TTGLud hDIlbBAySj97bn4vp7ThfZ1MrboLrtUrH8XNl7GK0pQLAb+WWY9tE6nAOIZXCYWd/71A 1gtEGmvk1Z7026K/GN2wOUdaNeIc6x5ZZQfXRFD46/9KwhbX3YaWY3jjNtiw2oXYLLvF kexTGFQuhlml1op2G1uCgnoTvk8VSYjY7Snuk3UDdMzXxJONQibZ9JyrUdarhAOmctuq G0cQ==
X-Gm-Message-State: AJIora8rX3IidrB9iQnucQA8Xt/3bpeIPNUN3eJ8Hhy/jL0rhCrXmdTl o4ZkGTi1YFb8nN4XZ5TXbwKrTA1NJY3jSmlVtTo=
X-Google-Smtp-Source: AGRyM1sp57OWyDNz/UH3fjwOOn5oMBRjdseZGEFmK0c3vYmH4Er9bx9YAKXLkpx2VEbogIM7w1OSY1XHYtZ4+3hdy0Q=
X-Received: by 2002:a17:906:b1c1:b0:726:b009:4b63 with SMTP id bv1-20020a170906b1c100b00726b0094b63mr2369325ejb.24.1656494033922; Wed, 29 Jun 2022 02:13:53 -0700 (PDT)
MIME-Version: 1.0
References: <CAPyZ6=+q+MoOOwoCxbtFjt+gqsjHBqTzz9KXNVcs3EP-4VFp=Q@mail.gmail.com> <D7142A8A-5B80-46F5-A653-2307EE2DC5D8@gbiv.com> <CAPyZ6=LCSDAsPoFCQ2cRO-i+dpo5vnp2L5A7ZLw8dvRtDs6HUg@mail.gmail.com> <741f3592-4d20-45fc-9658-8c4c71f08e5b@beta.fastmail.com>
In-Reply-To: <741f3592-4d20-45fc-9658-8c4c71f08e5b@beta.fastmail.com>
From: Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>
Date: Wed, 29 Jun 2022 18:13:42 +0900
Message-ID: <CAPyZ6=K=OpEx8HxY4upvLbppu2dSyOwZw_e5_f9hDXP3WKJCdw@mail.gmail.com>
To: Martin Thomson <mt@lowentropy.net>
Cc: HTTP <ietf-http-wg@w3.org>, Ian Swett <ianswett@google.com>, Kazuho Oku <kazuhooku@gmail.com>
Content-Type: multipart/alternative; boundary="00000000000076f21805e2929229"
Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=tatsuhiro.t@gmail.com; helo=mail-ej1-x62e.google.com
X-W3C-Hub-DKIM-Status: validation passed: (address=tatsuhiro.t@gmail.com domain=gmail.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, W3C_AA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1o6Tlw-006YW9-Cg 7681d224c1cebaa7eba456978a8f634c
X-Original-To: ietf-http-wg@w3.org
Subject: Re: RFC 9113 and :authority header field
Archived-At: <https://www.w3.org/mid/CAPyZ6=K=OpEx8HxY4upvLbppu2dSyOwZw_e5_f9hDXP3WKJCdw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/40217
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 Wed, Jun 29, 2022 at 9:42 AM Martin Thomson <mt@lowentropy.net> wrote:

> On Wed, Jun 29, 2022, at 09:58, Tatsuhiro Tsujikawa wrote:
> > I think 2) is valid in terms of RFC 7540, but it suddenly becomes
> > invalid in terms of RFC 9113?
> > Is this correct?  https://www.fastly.com and https://www.google.com now
> > reject 2).
>
> My understanding is that both are valid alternatives.  As would a third
> option that contained the same value in both host and :authority.  The 4xx
> responses you are getting are (probably) compliance bugs.
>
> Thankfully we know people who might be closer to someone who is able to
> fix or defend those bugs.  (On CC).
>
> This whole host and :authority thing was an original mistake in HTTP/2.
> It was grounded in the view that HTTP/2 had to faithfully capture every
> weird thing HTTP/1.1 could express, even when it didn't make sense.  At the
> time, that was pragmatic and it might have aided deployment into systems
> that were, on some levels, broken.  In time, we should seek to remove those
> exceptions.  In the revision, we did some of that by disallowing different
> values.
>
>
Thank you for clarification.  Wait and see the deployments are resolved.

Best,

Tatsuhiro Tsujikawa