Re: Comments on draft-stark-expect-ct-00

Emily Stark <estark@google.com> Fri, 02 December 2016 17:24 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 8BA5A128B38 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 2 Dec 2016 09:24:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.396
X-Spam-Level:
X-Spam-Status: No, score=-9.396 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.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-2.896, SPF_HELO_PASS=-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=google.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 uvOcCpwhWv2u for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 2 Dec 2016 09:23:58 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9C7B1129704 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 2 Dec 2016 09:23:58 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.80) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1cCrVM-00048B-HS for ietf-http-wg-dist@listhub.w3.org; Fri, 02 Dec 2016 17:20:12 +0000
Resent-Date: Fri, 02 Dec 2016 17:20:12 +0000
Resent-Message-Id: <E1cCrVM-00048B-HS@frink.w3.org>
Received: from titan.w3.org ([128.30.52.76]) by frink.w3.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <estark@google.com>) id 1cCrV7-0002Qb-Lq for ietf-http-wg@listhub.w3.org; Fri, 02 Dec 2016 17:19:57 +0000
Received: from mail-io0-f177.google.com ([209.85.223.177]) by titan.w3.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <estark@google.com>) id 1cCrUz-00083w-T4 for ietf-http-wg@w3.org; Fri, 02 Dec 2016 17:19:52 +0000
Received: by mail-io0-f177.google.com with SMTP id a124so492727319ioe.2 for <ietf-http-wg@w3.org>; Fri, 02 Dec 2016 09:19:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YkBxKNbiZVvLG6MFhaZbeh6byN/pUJOecJP8Ftze/m0=; b=Td4esFrWyZzY8aL/8nb8vI/B8b7QZJnaKf45S5+w9xklZhmOVwPtZlIj2aGR20nq2p JyBkTSo+NSkaOjyy6fsHYagu48Mromj4M8PYik1EHW4fxuMS8/igEiF53IZqzw9+Pb3w Cyp/flBdayKS9Dgb5kQU6j6RX2zAEC3r4fccPkEXYhmeRlPIt5OOip7BdFmueExDGJpX V0XGs4540rjF+0Iu+B+6xoQQpgK1y14iVNLJ+nnrTGqCAgGWgNdulg7flkudN7kbnPW8 Lkd8fQTuRF85Cp4d2RJvbAqGd2qQoVs9XDWqm8BCiQpO2xOuZNIvP4BUhT4HUm05ki9s aKrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YkBxKNbiZVvLG6MFhaZbeh6byN/pUJOecJP8Ftze/m0=; b=iNIUK5JWbC74uxsxfH8GecQbhT3bbYnSw8yrb2MK4m3ZCAPIznF5KT5SH5hWmIQTja tFjuT1pu4uOhmZPLuj8T0ykwJE9Al3LdH9eiF+jeA1fmPYUka69iPJKVDLBlyWhNC02x ruDJUhas01mpqNYpegT56b+iQODxAsEYSF0QNWUDmRQi5jGUGxP8yA36KzNFyA9h4yXe fMKWSmsDqz1iNMEHjPaPq39KLTbOQEXABA8dVa040zlERJvVMZB0kWXnStcNfkY1621f iMrumCQZKHHuMks4Kq1pqNZ0N3gFSorZjvYnHObGXRti3uJh7LzU4Pb9WodwJ8hqU2WE WTLQ==
X-Gm-Message-State: AKaTC00CkllI+zx5tvyLhnhi2CRuKF4pgoyqB7rdoPg4vxyB/LEjehXv/LCs7Bh8bUpVGbtq0C2+2JYZ+LAs82J4
X-Received: by 10.107.135.219 with SMTP id r88mr39169203ioi.224.1480699158373; Fri, 02 Dec 2016 09:19:18 -0800 (PST)
MIME-Version: 1.0
Received: by 10.107.63.7 with HTTP; Fri, 2 Dec 2016 09:18:57 -0800 (PST)
In-Reply-To: <CAOjisRzp1py-BheYBCyX2yUfrbDKTBDgQoEB=2v0HO1FOwgZGA@mail.gmail.com>
References: <CAPP_2SbEM+_Ynf_Jcf4fUwp142rZ+69nF=dH6G0Tt_izYJC6xA@mail.gmail.com> <CABcZeBNuoiqKZQ4eWS6KJnwaeeCVzw6zmozf3T=jQJajgerSVg@mail.gmail.com> <CAPP_2SZzww0JZDBCLGfK+mT9VDZR6L0iugXXL0xawRJ3Nd_p0Q@mail.gmail.com> <CABcZeBMz7mOdYLs1WPj+K-YdLJcmn1jEcvbUNe5VD3zA5B90aw@mail.gmail.com> <CAPP_2SYaNxzw8Cd9hBEz2RzK5kO8fdR8JxLk9B2Dr+yyGgwkyA@mail.gmail.com> <CABcZeBPKa-xdT6JoHVSQTjuHU5r=K0CL=2UmKrLW3jtf9Mu+uA@mail.gmail.com> <CAOjisRzp1py-BheYBCyX2yUfrbDKTBDgQoEB=2v0HO1FOwgZGA@mail.gmail.com>
From: Emily Stark <estark@google.com>
Date: Fri, 02 Dec 2016 09:18:57 -0800
Message-ID: <CAPP_2SYCbYMqRkFf9Z7LfwViQytgqngm6wzjnADH8U-tVbTo9w@mail.gmail.com>
To: Nick Sullivan <nicholas.sullivan@gmail.com>
Cc: Eric Rescorla <ekr@rtfm.com>, HTTP Working Group <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="001a113f8e665af6390542b02376"
Received-SPF: pass client-ip=209.85.223.177; envelope-from=estark@google.com; helo=mail-io0-f177.google.com
X-W3C-Hub-Spam-Status: No, score=-5.6
X-W3C-Hub-Spam-Report: AWL=1.801, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-2.896, SPF_PASS=-0.001, W3C_AA=-1, W3C_DB=-1, W3C_WL=-1
X-W3C-Scan-Sig: titan.w3.org 1cCrUz-00083w-T4 17876f80914bddb86701e55e24e83779
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Comments on draft-stark-expect-ct-00
Archived-At: <http://www.w3.org/mid/CAPP_2SYCbYMqRkFf9Z7LfwViQytgqngm6wzjnADH8U-tVbTo9w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/33089
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>

Just a note that I've uploaded a new version which caches report-only
headers based on the feedback here:
https://datatracker.ietf.org/doc/draft-stark-expect-ct/

On Mon, Nov 28, 2016 at 3:54 PM, Nick Sullivan <nicholas.sullivan@gmail.com>
wrote:

> Cloudflare is considering using this header in report-only mode to help
> identify issues in our CT-stapling infrastructure. This data will help us
> with future CT decisions.
>
> We would naturally expect report-only and enforce mode to have the same
> semantics, which includes caching. Although our CT-stapling and
> header-adding infrastructures are de-coupled, there is a use case for
> caching report-only headers: load balancing. Our connections are load
> balanced, so subsequent connections may not end up on the same server as
> the previous connection. Cached enforcement headers would help us catch
> issues where both the CT-stapling configuration and the header-adding
> configuration failed to run on a server. With caching, it's more likely
> that a
> that server with a broken CT config will end up handling resumed
> connection from a user agent that had previously connected to a
> properly-configured server that that had set the header.
>
> Nick
>
> On Fri, Nov 25, 2016 at 11:21 AM Eric Rescorla <ekr@rtfm.com> wrote:
>
>> On Mon, Nov 21, 2016 at 3:28 PM, Emily Stark <estark@google.com> wrote:
>>
>> Summarizing some hallway conversations from IETF:
>>
>> - Caching in report-only mode: I can be convinced that this is useful,
>> in case where you are e.g. rolling out a CT-compliant certificate in
>> conjunction with Expect-CT (for example if you have a config that
>> turns on CT and also turns on Expect-CT in report-only mode, and the
>> config didn't make it out to a few of your servers). Will be
>> especially convinced if site owners say that this is how they want it
>> to work.
>>
>>
>> I'd in general be interested in hearing from site owners on how they
>> feel about this header. That would be a good addition to this discussion.
>>
>>
>> - Policy: One can draw an analogy to HSTS, where a site promises to
>> provide a certificate that is valid according to the client's
>> definition of valid, including factors that vary across clients
>> (variations in trust stores, SHA1 deprecation, etc.). In practice, I
>> don't think CT will be more of a foot-gun than HSTS (and certainly
>> much less than HPKP) because browsers are in close collaboration to
>> work out policies that play nicely with each other.
>>
>>
>> I'm not sure how strong the analogy is here. It's actually a nontrivial
>> inconvenience
>> for sites that different browsers have different policies. With that
>> said, it's not something
>> I'm willing to make a big deal of if the send of the WG is otherwise.
>>
>> -Ekr
>>
>>
>>
>> On Mon, Nov 14, 2016 at 8:53 PM, Eric Rescorla <ekr@rtfm.com> wrote:
>> > On Tue, Nov 15, 2016 at 10:50 AM, Emily Stark <estark@google.com>
>> wrote:
>> >>
>> >>
>> >> >>
>> >> >> (https://groups.google.com/d/msg/mozilla.dev.security.
>> policy/VJYX1Wnnhiw/ZaJBaKfKBQAJ).
>> >> >> That is, eventually, when browsers require CT for all certificates,
>> >> >> site owners will have to face this same problem of making sure that
>> >> >> all their certificate chains are compliant with the CT policies of
>> all
>> >> >> the UAs that they care about. So I guess I see the interop problem
>> as
>> >> >> somewhat separate, perhaps something that should be addressed on its
>> >> >> own when the CT ecosystem and implementations have matured enough
>> that
>> >> >> UAs are able to standardize on one policy...?
>> >> >>
>> >> >> To put it another way, I see Expect-CT as a way that individual
>> sites
>> >> >> can opt in to the future early ("the future" being when browsers
>> >> >> require CT for all certificates), and the future is quite possibly
>> >> >> different policies in different browsers, at least for some amount
>> of
>> >> >> time.
>> >> >
>> >> >
>> >> > The problem is that as written the future is likely to involve a lot
>> of
>> >> > bustage.
>> >>
>> >> I feel like maybe I'm not understanding what you'd like to see
>> >> instead. Are you arguing that the Expect-CT draft should contain a
>> >> policy like "all EE certs must come with 2 SCTs from different logs",
>> >> even if that policy differs from what different browsers plan to
>> >> actually enforce for new certificates? Or that browsers shouldn't
>> >> require CT for all certificates until they standardize on such a
>> >> policy?
>> >
>> >
>> > I'm arguing that we shouldn't define a header that says "you must
>> enforce
>> > CT"
>> > without defining what "enforce CT" means.
>> >
>> > -Ekr
>> >
>> >>
>> >> >
>> >> >
>> >> >> > S 2.1.3.
>> >> >> > What's the rationale for not caching the directive in report-only
>> >> >> > mode.
>> >> >> > If the purpose of the report-only mode is to tell you when you
>> have
>> >> >> > nonconforming servers, then don't you want to be able to turn it
>> on
>> >> >> > on server A and detect hwen server B is broken? That seems like it
>> >> >> > doesn't work if you don't cache.
>> >> >>
>> >> >> I'm tempted to say "because that's how HPKP does it", but that's
>> >> >> probably not the answer you're looking for. :) I'd expect that sites
>> >> >> would generally serve the report-only header on all responses
>> >> >> unconditionally. I can't really think of a common misconfiguration
>> >> >> scenario that would cause a CT violation and would *also* cause the
>> >> >> header to not be served, but maybe that's a failure of imagination
>> on
>> >> >> my part.
>> >> >
>> >> >
>> >> > Two different independent servers with the same name behind
>> >> > a load balancer? Or a server farm where policies are rolled out
>> slowly.
>> >> >
>> >> > -Ekr
>> >> >
>> >> >>
>> >> >>
>> >> >> >
>> >> >> > -Ekr
>> >> >>
>> >> >
>> >
>> >
>>
>>