[websec] STS ABNF, was: new rev: draft-ietf-websec-strict-transport-sec-04

Julian Reschke <julian.reschke@gmx.de> Tue, 31 January 2012 20:40 UTC

Return-Path: <julian.reschke@gmx.de>
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 40F5D11E80E3 for <websec@ietfa.amsl.com>; Tue, 31 Jan 2012 12:40:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -104.082
X-Spam-Level:
X-Spam-Status: No, score=-104.082 tagged_above=-999 required=5 tests=[AWL=-1.483, BAYES_00=-2.599, 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 BZhz-8t+2txh for <websec@ietfa.amsl.com>; Tue, 31 Jan 2012 12:40:54 -0800 (PST)
Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by ietfa.amsl.com (Postfix) with SMTP id C56BC11E809D for <websec@ietf.org>; Tue, 31 Jan 2012 12:40:53 -0800 (PST)
Received: (qmail invoked by alias); 31 Jan 2012 20:40:52 -0000
Received: from mail.greenbytes.de (EHLO [192.168.1.140]) [217.91.35.233] by mail.gmx.net (mp010) with SMTP; 31 Jan 2012 21:40:52 +0100
X-Authenticated: #1915285
X-Provags-ID: V01U2FsdGVkX18hHxMxw7IhLw6TO4gbl4QUOuPFW9n0CoUPPfvj0M Wd5YSDUDwIRTn1
Message-ID: <4F2851D1.5040505@gmx.de>
Date: Tue, 31 Jan 2012 21:40:49 +0100
From: Julian Reschke <julian.reschke@gmx.de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1
MIME-Version: 1.0
To: =JeffH <Jeff.Hodges@KingsMountain.com>
References: <4F2347C5.8090406@KingsMountain.com>
In-Reply-To: <4F2347C5.8090406@KingsMountain.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Y-GMX-Trusted: 0
Cc: IETF WebSec WG <websec@ietf.org>
Subject: [websec] STS ABNF, was: new rev: draft-ietf-websec-strict-transport-sec-04
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: Tue, 31 Jan 2012 20:40:55 -0000

On 2012-01-28 01:56, =JeffH wrote:
> ...

Hi Jeff,

thanks for the update.

The ABNF now is:

      Strict-Transport-Security = "Strict-Transport-Security" ":"
                                     directive *( ";" [ directive ] )


      directive                 = token [ "=" ( token | quoted-string ) ]

...and I think this is almost right.

It does allow empty directives (thus repeated or trailing semicolons), 
but not leading semicolons.

So

   STS: foo ;

parses, but

   STS: ; foo

does not. This could be fixed by saying:

      Strict-Transport-Security = "Strict-Transport-Security" ":"
                                  *( ";" [ directive ] )

I like the subsequent prose about the additional constraints.

For 6.1.1 and 6.1.2, we still need to decide whether a) quoted-string 
should be legal here (I understand that's 
<http://trac.tools.ietf.org/wg/websec/trac/ticket/33>), and if it was, 
b) how the syntax should be described.

Best regards, Julian