Re: Issue #356: Form-encode Expect-CT report bodies?

Patrick McManus <mcmanus@ducksong.com> Wed, 07 June 2017 10: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 1F30C129C04 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Jun 2017 03:27:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.4
X-Spam-Level:
X-Spam-Status: No, score=-6.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sendgrid.me
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 KFSzn2Uuk0n8 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Wed, 7 Jun 2017 03:27:23 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E5C9912948D for <httpbisa-archive-bis2Juki@lists.ietf.org>; Wed, 7 Jun 2017 03:27:22 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.84_2) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1dIY7y-0005SO-2s for ietf-http-wg-dist@listhub.w3.org; Wed, 07 Jun 2017 10:23:50 +0000
Resent-Date: Wed, 07 Jun 2017 10:23:50 +0000
Resent-Message-Id: <E1dIY7y-0005SO-2s@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1dIY7p-0005Pw-01 for ietf-http-wg@listhub.w3.org; Wed, 07 Jun 2017 10:23:41 +0000
Received: from o1682455182.outbound-mail.sendgrid.net ([168.245.5.182]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net>) id 1dIY7i-00064F-0V for ietf-http-wg@w3.org; Wed, 07 Jun 2017 10:23:35 +0000
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=mime-version:in-reply-to:references:from:subject:to:cc:content-type; s=smtpapi; bh=o8vxe+jhUng2x9VJ7tg4EHz9HAo=; b=G83uAGTwig+rNW4YxJ SOHjuCTqxyFn+jAfNvJJ2chlDiB7w+KsRUK0MlhZnxjpdzcg9qiX8cDZJFs6MMLb M71AA4gIPM+4EV8J4Om974zM5RJEtYV3k8BC+WRClDd63qeBw53nN2lknyrzpZ35 wxTRt4BaLbmUaOIEjJ57eNaWw=
Received: by filter0942p1mdw1.sendgrid.net with SMTP id filter0942p1mdw1-646-5937D409-5B 2017-06-07 10:23:05.948907011 +0000 UTC
Received: from mail-qk0-f172.google.com (mail-qk0-f172.google.com [209.85.220.172]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id UB4dxEQJSRK_bPuZsbgDOg for <ietf-http-wg@w3.org>; Wed, 07 Jun 2017 10:23:05.780 +0000 (UTC)
Received: by mail-qk0-f172.google.com with SMTP id p66so4571966qkf.3 for <ietf-http-wg@w3.org>; Wed, 07 Jun 2017 03:23:05 -0700 (PDT)
X-Gm-Message-State: AKS2vOz0xR6A0v+PXhfo676kgxLDGVq5Aulpth3Luqv1HSMWLSkqEFe2 FNKp4TFMAvQkvrNjOVpaTn1CISheww==
X-Received: by 10.55.27.206 with SMTP id m75mr36862249qkh.166.1496830985500; Wed, 07 Jun 2017 03:23:05 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.12.178.74 with HTTP; Wed, 7 Jun 2017 03:23:05 -0700 (PDT)
In-Reply-To: <CAPP_2Sa+6eSAChgp8KrzabPJUkMmiKBhWp1dFhS0zOVnXrenLw@mail.gmail.com>
References: <CAPP_2Sa+6eSAChgp8KrzabPJUkMmiKBhWp1dFhS0zOVnXrenLw@mail.gmail.com>
From: Patrick McManus <mcmanus@ducksong.com>
Date: Wed, 07 Jun 2017 12:23:05 +0200
X-Gmail-Original-Message-ID: <CAOdDvNoStrOu=SSZJrKMsQFjG2YVtiLqMdvXP_1PKJ_a+58Mfw@mail.gmail.com>
Message-ID: <CAOdDvNoStrOu=SSZJrKMsQFjG2YVtiLqMdvXP_1PKJ_a+58Mfw@mail.gmail.com>
To: Emily Stark <estark@google.com>
Cc: httpbis <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a1140a1882dfdbc05515c1fd3"
X-SG-EID: YLWet4rakcOTMHWvPPwWbcsiUJbN1FCn0PHYd/Uujh7rTHXDTFXzI859AkwXlVaCeSzsd0Vuac+pVG AucCs6la+eBgMHPno6pq6/kKjVxoOMSIW6Fsq1fpRwx/56bXUqo0VEHHbUjMSKyA7Hd7PlzkKmZump 59hw4eLuLiXJmebSYphwC5SaFXBmbZ2skNnjUPjXkkgu3aHNthfGGwSEPJvjqJuX5RvgUKcv9IWUzU Q=
Received-SPF: pass client-ip=168.245.5.182; envelope-from=bounces+1568871-208f-ietf-http-wg=w3.org@sendgrid.net; helo=o1682455182.outbound-mail.sendgrid.net
X-W3C-Hub-Spam-Status: No, score=-5.0
X-W3C-Hub-Spam-Report: AWL=-1.055, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, W3C_AA=-1, W3C_IRA=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1dIY7i-00064F-0V 97fa89621c232a31b37676e8337df31b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Issue #356: Form-encode Expect-CT report bodies?
Archived-At: <http://www.w3.org/mid/CAOdDvNoStrOu=SSZJrKMsQFjG2YVtiLqMdvXP_1PKJ_a+58Mfw@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33964
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: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

my gut reaction: why would an expect-ct report be more subject to cors than
something like OCSP? (assuming it wasn't driven directly from content)


On Tue, Jun 6, 2017 at 6:45 PM, Emily Stark <estark@google.com> wrote:

> I'm looking for some feedback on https://github.com/httpwg/h
> ttp-extensions/issues/356.
>
> Expect-CT violation reports are currently specified as POST requests with
> JSON bodies. When implemented in a web browser, such reports should
> arguably send CORS preflights, because the content type is not
> CORS-safelisted (https://www.w3.org/TR/cors/#simple-header).
>
> But sending CORS preflights for these requests doesn't really make sense
> from a web browser architecture perspective: CT compliance is checked as
> part of certificate verification and connection setup, divorced from the
> context one needs to send a CORS preflight (such as an Origin header). This
> is not just a theoretical layering issue; implementing preflights for
> Expect-CT reports in Chrome would be pretty challenging.
>
> I only see two options to resolve this, both of which seem bad to me:
>
> a) Leave the reporting part of the spec as it currently is, and leave it
> up to the UA to decide whether further operations such as CORS preflights
> are needed for sending reports. This would basically leave it to us in
> Chrome to decide either that Expect-CT reports should not be subject to
> CORS restrictions, or that we should not ship reporting. (I'm uncomfortable
> with this option because it somewhat jeopardizes the only active
> implementation effort that I know of.)
>
> b) The disgusting option: disguise Expect-CT reports as form submissions,
> which are not subject to CORS preflighting. This would mean the report body
> is sent as hostname=blah&port=443&... or we could even just send
> expect-ct-report=<stringified JSON blob>.
>
> Thanks,
> Emily
>