Re: [websec] default value for max-age ? (was: Re: Strict-Transport-Security syntax redux)

=JeffH <Jeff.Hodges@KingsMountain.com> Wed, 04 January 2012 18:02 UTC

Return-Path: <Jeff.Hodges@KingsMountain.com>
X-Original-To: websec@ietfa.amsl.com
Delivered-To: websec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D0EF121F87FD for <websec@ietfa.amsl.com>; Wed, 4 Jan 2012 10:02:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -101.707
X-Spam-Level:
X-Spam-Status: No, score=-101.707 tagged_above=-999 required=5 tests=[AWL=0.558, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ats+4IHC8ntf for <websec@ietfa.amsl.com>; Wed, 4 Jan 2012 10:02:02 -0800 (PST)
Received: from oproxy8-pub.bluehost.com (oproxy8-pub.bluehost.com [69.89.22.20]) by ietfa.amsl.com (Postfix) with SMTP id D311521F87F9 for <websec@ietf.org>; Wed, 4 Jan 2012 10:02:02 -0800 (PST)
Received: (qmail 22343 invoked by uid 0); 4 Jan 2012 18:01:40 -0000
Received: from unknown (HELO box514.bluehost.com) (74.220.219.114) by oproxy8.bluehost.com with SMTP; 4 Jan 2012 18:01:40 -0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kingsmountain.com; s=default; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=QhJrtqugJdqDe/eacmD0H6Qn0OKOm+qOwJl2mkX9L7I=; b=gphwPBXSXlCF8dfhT6pvguYCJkpkLOzD/Q5Be9b5UzR/SAJIx2QFWL9N1nL4wl9FkJnJuPGB1oMtZ6sMpBYEbBJtV0+t1muRhFQiCFZwOMc1+lA3rAKmMQ0xQJM98k4y;
Received: from c-24-4-122-173.hsd1.ca.comcast.net ([24.4.122.173] helo=[192.168.11.18]) by box514.bluehost.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from <Jeff.Hodges@KingsMountain.com>) id 1RiV9e-00058A-IR for websec@ietf.org; Wed, 04 Jan 2012 11:01:38 -0700
Message-ID: <4F0493FF.1090804@KingsMountain.com>
Date: Wed, 04 Jan 2012 10:01:35 -0800
From: =JeffH <Jeff.Hodges@KingsMountain.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16
MIME-Version: 1.0
To: IETF WebSec WG <websec@ietf.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Identified-User: {11025:box514.bluehost.com:kingsmou:kingsmountain.com} {sentby:smtp auth 24.4.122.173 authed with jeff.hodges+kingsmountain.com}
Subject: Re: [websec] default value for max-age ? (was: Re: Strict-Transport-Security syntax redux)
X-BeenThere: websec@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Web Application Security Minus Authentication and Transport <websec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/websec>, <mailto:websec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/websec>
List-Post: <mailto:websec@ietf.org>
List-Help: <mailto:websec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/websec>, <mailto:websec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Jan 2012 18:02:04 -0000

Yoav Nir said..
 >
 > On Jan 3, 2012, at 1:29 AM, =JeffH wrote:
 >
 >> Julian wondered..
 >>>
 >>> wouldn't it make sense to have a default for max-age so it can be made
 >>> OPTIONAL?
 >>
 >> hm ... I lean towards keeping max-age as REQUIRED (without a default
 >> value) and thus hopefully encouraging deployers to think a bit about this
 >> and its ramifications, and also because its value is so site-specific in
 >> terms of a web application's needs, deployment approach, and tolerance for
 >> downside risk of breaking itself.
 >
 > I tend to agree, but it's not deployers who are going to do the thinking -
 > it's the implementers of web servers.
 >
 > So somewhere, in some control panel for IIS, or a config file for Apache, or
 > some WebUI for some SSL-VPN, there's going to be a configuration to turn on
 > HSTS, and that product is going to have a default max-age. The deployers are
 > just going to check the box.
 >
 > I think we should provide guidance for those implementers as to what is a
 > good default there.


Yep, very good point, thanks.


Adam Barth replied..
 >
 > On Tue, Jan 3, 2012 at 12:22 AM, Julian Reschke <julian.reschke@gmx.de> wrote:
 >> On 2012-01-03 07:26, Yoav Nir wrote:
 >>>
 >>> On Jan 3, 2012, at 1:29 AM, =JeffH wrote:
 >>>
 >>>> Julian wondered..
 >>>>>
 >>>>>
 >>>>> wouldn't it make sense to have a default for max-age so it
 >>>>> can be made OPTIONAL?
 >>>>
 >>>>
 >>>> hm ... I lean towards keeping max-age as REQUIRED (without a default
 >>>> value) and
 >>>> thus hopefully encouraging deployers to think a bit about this and its
 >>>> ramifications, and also because its value is so site-specific in terms of
 >>>> a web
 >>>> application's needs, deployment approach, and tolerance for downside risk
 >>>> of
 >>>> breaking itself.
 >>>
 >>>
 >>> I tend to agree, but it's not deployers who are going to do the thinking -
 >>> it's the implementers of web servers.
 >>>
 >>> So somewhere, in some control panel for IIS, or a config file for Apache,
 >>> or some WebUI for some SSL-VPN, there's going to be a configuration to turn
 >>> on HSTS, and that product is going to have a default max-age. The deployers
 >>> are just going to check the box.
 >>>
 >>> I think we should provide guidance for those implementers as to what is a
 >>> good default there.
 >>> ...
 >>
 >>
 >> If we know a good default then it should be the default on the wire (IMHO).
 >> It would help getting predictable behavior when it's missing. (Right now the
 >> spec allows recipients to do anything they want then it's missing, right?)
 >
 > We should define the behavior in any case, which I guess means I'm
 > advocating an default max-age of zero.

Julian followed up..
 >
 > That sounds good to me; so the grammar wouldn't need to enforce this,
 > but the effect would be the same.

sounds fine to me too.

I have text in my working copy in (newly numbered section) "10.1.  HSTS Policy 
expiration time considerations" addressing the above.


And so did Tobias..
 >
 > well, the optimal default may actually be depending on the host.
 > So we might want to describe what good values might be under which
 > circumstances.
 > E.g. long time-spans when using very trusted process and provider,
 > shorter time-spans with less capable / higher risk of bricking yourself
 > / loosing your private key / ...

Yes, i've been thinking about such language and will add a stab at it to 
section 10.1.


=JeffH