Re: [Unbearable] AD Review: draft-ietf-tokbind-negotiation-09.txt

Eric Rescorla <ekr@rtfm.com> Mon, 13 November 2017 12:45 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: unbearable@ietfa.amsl.com
Delivered-To: unbearable@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 801E1129418 for <unbearable@ietfa.amsl.com>; Mon, 13 Nov 2017 04:45:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=rtfm-com.20150623.gappssmtp.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 2M6rgF07ey50 for <unbearable@ietfa.amsl.com>; Mon, 13 Nov 2017 04:45:27 -0800 (PST)
Received: from mail-yw0-x230.google.com (mail-yw0-x230.google.com [IPv6:2607:f8b0:4002:c05::230]) (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 BDA6912783A for <unbearable@ietf.org>; Mon, 13 Nov 2017 04:45:26 -0800 (PST)
Received: by mail-yw0-x230.google.com with SMTP id p74so2887419ywe.2 for <unbearable@ietf.org>; Mon, 13 Nov 2017 04:45:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rtfm-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hIqBzpbR89R/eqt5vFGvUT/OJcnTiL3YCDem1eoxjcc=; b=pnEHRSSUi6jLF7ywzD7SJPmuAMWgoKGK9aGL0QfGGCdAyV3vL5S4WPUBMUZffBLcHg XVCwloVJW5XmfrPJ+6sIBoPrhMoaJDukwUP455B7JoaqUX3TwarlIMiTo4GA2z4s/8Mk xvKTaji1uj3qzV/zuH+Iu5wItyFKNOhZdaRnWx58YCRgSjTxIhLM7oveJtitfgx/1gfh hEfnZNdWDW7/fbX7c9+o3lLXz9Phn4CcU48nNGNCI0VUlbVnOvboLcRiuJltvh8soDwb fol8l1BU0WSJmaQGoQBVTv27wTR6dN1QOVGvi1GYm40lGNCR/30adbIearFqXi3PKaNg mk8g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hIqBzpbR89R/eqt5vFGvUT/OJcnTiL3YCDem1eoxjcc=; b=GB7p4UMcWzr4ormWhRjzkEsq8IZ8tNbx3l20UZesw+oQVxghJhvdSIfTuPOtYnTj5t OZSDo0B9r/1kshpw/sAvr9z4fw5XAkbpM+4OlYSv43ZsiRpQgTq/3yfhQJmPERr51+Ec hviB4x7SKbMbhgm2bOOPHnFCHrukzpsewFq3o6Zwqw/dviDJgSF1CNYaTCHx0bSZ1CIe nHx0dVrMnxE4FLYBci2zofZrZ5g5I8qWv3X6FD+MfVWv07D0xvtveSGcwSv+M2SdwcZ7 EknkavgsFQWFt3Nj8oh9ZvrkZVHVok0qd/8UTvt3RZ8o5uVjG7CPSBrYhC0s2UTkCmHt kUOA==
X-Gm-Message-State: AJaThX4SIWmcR2kjthahfsA33t4RNx37PzRycCqzudy/qHPfrhHL4IfP CuxmEVU/wvblE5+I3u/HUL75cfI0YqfL3fHQrMf1q+SSftI=
X-Google-Smtp-Source: AGs4zMYVnd8XjE74QAjacsVvhJKs6GD1cgVWKJP/DqgpeaW2tzrq5yCye10WdJ5pWJlWtTC6NP3A8JNL5kOJgjjlGok=
X-Received: by 10.37.22.8 with SMTP id 8mr5679404ybw.353.1510577125737; Mon, 13 Nov 2017 04:45:25 -0800 (PST)
MIME-Version: 1.0
Received: by 10.129.61.12 with HTTP; Mon, 13 Nov 2017 04:44:45 -0800 (PST)
In-Reply-To: <CABcZeBM6BYN3VoAmQafAm+gXn97e2RjgZKwJVuf6giK+Q_Q6og@mail.gmail.com>
References: <CABcZeBM6BYN3VoAmQafAm+gXn97e2RjgZKwJVuf6giK+Q_Q6og@mail.gmail.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 13 Nov 2017 20:44:45 +0800
Message-ID: <CABcZeBNKRu81wGv4UKQL5JHzd3kCTEBF61pnety3aQgRCCGLSw@mail.gmail.com>
To: IETF Tokbind WG <unbearable@ietf.org>, draft-ietf-tokbind-negotiation@tools.ietf.org
Content-Type: multipart/alternative; boundary="001a11416718fc6a32055ddca469"
Archived-At: <https://mailarchive.ietf.org/arch/msg/unbearable/hGzR-lvZgloc1JgHEC7qzIF2ZIs>
Subject: Re: [Unbearable] AD Review: draft-ietf-tokbind-negotiation-09.txt
X-BeenThere: unbearable@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "\"This list is for discussion of proposals for doing better than bearer tokens \(e.g. HTTP cookies, OAuth tokens etc.\) for web applications. The specific goal is chartering a WG focused on preventing security token export and replay attacks.\"" <unbearable.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/unbearable>, <mailto:unbearable-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/unbearable/>
List-Post: <mailto:unbearable@ietf.org>
List-Help: <mailto:unbearable-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/unbearable>, <mailto:unbearable-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Nov 2017 12:45:29 -0000

The new version is looking good. I have two minor comments:

- I still think it would be good to sharpen the discussion of version
negotiation a bit.
Perhaps: "Note that there is no way to advertise a minimum version, so a
client
advertising version N must be prepared to have the server select any older
version; if it has a minimum acceptable version, it MUST check the response
against that and generate an error if the version is too low"

Second:
"Please note that the Token Binding protocol version and key
 parameters are negotiated for each TLS connection, which means that"

You should remove "Please note" because this isn't an aside, it's a new
requirement.

I have pushed the IETF LC button, so feel free to address these later.

-Ekr






On Sun, Oct 8, 2017 at 3:59 AM, Eric Rescorla <ekr@rtfm.com> wrote:

> A rich version of this review can be found at:
>
> https://mozphab-ietf.devsvcdev.mozaws.net/D48
>
>    1. If you make an account and login, you can respond to the comments
>
> and we can try to resolve them before you produce a new draft.
>
>    1. When you're ready to produce a new draft, you can either upload
>
> it to the draft repo or send me the pre-draft and either way I'll
> take care of getting it uploaded here, so we can see diffs, etc.
>
>
> *INLINE COMMENTS*
> View Inline <https://mozphab-ietf.devsvcdev.mozaws.net/D47#inline-326>
> draft-ietf-tokbind-negotiation.txt:102
> uint8 minor;
> } ProtocolVersion;
>
> you should note that this is taken from RFC 5246 or rename it.
>
> View Inline <https://mozphab-ietf.devsvcdev.mozaws.net/D47#inline-327>
> draft-ietf-tokbind-negotiation.txt:110
> ProtocolVersion token_binding_version;
> TokenBindingKeyParameters key_parameters_list<1..2^8-1>
> } TokenBindingParameters;
>
> This is kind of hard to read because you are just defining the size of the
> enum here and then you have the definitions in the other draft. I think you
> should instead copy the definition from the other draft and then have a
> pointer, because as is it looks like no values are defined.
>
> View Inline <https://mozphab-ietf.devsvcdev.mozaws.net/D47#inline-328>
> draft-ietf-tokbind-negotiation.txt:117
> client. [I-D.ietf-tokbind-protocol] describes version {1, 0} of the
> protocol.
>
> I see you are using the TLS 1.2 negotiation structures. You should
> probably add some text to make clear that this implies you are supporting
> all lower values.
>
> View Inline <https://mozphab-ietf.devsvcdev.mozaws.net/D47#inline-329>
> draft-ietf-tokbind-negotiation.txt:158
> protocol version offered by the client in the "token_binding"
> extension and the highest version supported by the server.
>
> Given our experience with TLS negotiation, you probably need to state very
> clearly that you need to do min(client, server) version even if the client
> version is higher than you know about.
>
> View Inline <https://mozphab-ietf.devsvcdev.mozaws.net/D47#inline-330>
> draft-ietf-tokbind-negotiation.txt:193
> extensions are not negotiated (see security considerations
> section below for more details).
>
> I would tend to think that some of these would be illegal_parameter.
>
> View Inline <https://mozphab-ietf.devsvcdev.mozaws.net/D47#inline-331>
> draft-ietf-tokbind-negotiation.txt:210
> Please note that the Token Binding protocol version and key
> parameters are negotiated for each TLS connection, which means that
>
> I would remove "please note" here, because you aren't reminding people,
> this is a separate requirement.
>
> *REPOSITORY*
> rIETFREVIEW ietf-review
>
> *REVISION DETAIL*
> https://mozphab-ietf.devsvcdev.mozaws.net/D47
>
> *EMAIL PREFERENCES*
> https://mozphab-ietf.devsvcdev.mozaws.net/settings/panel/emailpreferences/
>
> *To: *ekr-moz, ekr
>
>