Re: [TLS] AD evaluation of draft-ietf-tls-ticketrequests-05

Benjamin Kaduk <kaduk@mit.edu> Tue, 10 November 2020 17:35 UTC

Return-Path: <kaduk@mit.edu>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2450C3A0D6B; Tue, 10 Nov 2020 09:35:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 CwLfGbU3C9nn; Tue, 10 Nov 2020 09:35:33 -0800 (PST)
Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0BE8B3A0D63; Tue, 10 Nov 2020 09:35:32 -0800 (PST)
Received: from kduck.mit.edu ([24.16.140.251]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 0AAHZLJm017445 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Nov 2020 12:35:25 -0500
Date: Tue, 10 Nov 2020 09:35:20 -0800
From: Benjamin Kaduk <kaduk@mit.edu>
To: Christopher Wood <caw@heapingbits.net>
Cc: Benjamin Kaduk <bkaduk@akamai.com>, draft-ietf-tls-ticketrequests.all@ietf.org, "TLS@ietf.org" <tls@ietf.org>
Message-ID: <20201110173520.GJ39170@kduck.mit.edu>
References: <20201028222746.GF3403@akamai.com> <9511f3d7-a6bb-4562-974f-7cbaec2f84cd@www.fastmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <9511f3d7-a6bb-4562-974f-7cbaec2f84cd@www.fastmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/cbtUTxlH9TTYVMYbNkqwG_Mooqk>
Subject: Re: [TLS] AD evaluation of draft-ietf-tls-ticketrequests-05
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Nov 2020 17:35:35 -0000

Hi Chris, all,

This all sounds fine.  I'm happy to approve a manual posting during the
blackout period if we want to get this into IETF LC right away, though it's
probably fine to just wait for submissions to reopen, too.

Thanks,

Ben

On Thu, Nov 05, 2020 at 05:38:22AM -0800, Christopher Wood wrote:
> Thanks for the review, Ben! We addressed most of your comments here:
> 
>    https://github.com/tlswg/draft-ietf-tls-ticketrequest/pull/22
> 
> Please see inline below for followup responses specific points. If there are no objections, we'll spin a new version of the document when the submission system opens.
> 
> On Wed, Oct 28, 2020, at 3:27 PM, Benjamin Kaduk wrote:
> > Section 2
> > 
> >    *  Connection priming: In some systems, connections can be primed or
> >       bootstrapped by a centralized service or daemon for faster
> >       connection establishment.  Requesting tickets on demand allows
> >       such services to vend tickets to clients to use for accelerated
> >       handshakes with early data.  (Note that if early data is not
> >       needed by these connections, this method SHOULD NOT be used.
> >       Fresh handshakes SHOULD be performed instead.)
> > 
> > This doesn't seem to paint a very clear picture of the use case.  It
> > doesn't even seem to be clear about whether the "centralized service or
> > daemon" is a helper on the TLS client or server side!
> > I also want to check my understanding here, in that the recommendation
> > for only doing this when early data is needed is due to the fact that
> > you need to have an initial handshake with which to negotiate the
> > ability to use early data in the subsequent handshake, and having the
> > central service do a bunch of full handshakes just to get a ticket for
> > use on a subsequent connection that does user early data is a lot of
> > overhead, whereas if you don't need early data then you only do as many
> > full handshakes as you need connections (vs 2x that number to get a
> > ticket and then do early data) and get fully independent keys.  Since
> > you have this central service the extra latency for a full handshake is
> > irrelevant because you're priming connections in advance, not on-demand.
> 
> Describing this in more detail would lead to more text that probably just distracts from the document. To keep things simple, we just deleted this item, since there are plenty of motivating use cases already.
> 
> > 
> >    *  Less ticket waste: Currently, TLS servers use application-
> >       specific, and often implementation-specific, logic to determine
> >       how many tickets to issue.  By moving the burden of ticket count
> >       to clients, servers do not generate wasteful tickets.  As an
> >       example, clients might only request one ticket during resumption.
> >       Moreover, as ticket generation might involve expensive
> >       computation, e.g., public key cryptographic operations, avoiding
> >       waste is desirable.
> > 
> > (I assume we have a particular case in mind that does use public-key
> > crypto when issuing a ticket, or we wouldn't have mentioned it.)
> 
> This just reflects the fact that ticket encryption is not required to be done with a symmetric key. Servers are free to choose any type of encryption. (We didn't change anything here.)
> 
> >    When a client presenting a previously obtained ticket finds that the
> >    server nevertheless negotiates a fresh session, the client SHOULD
> >    assume that any other tickets associated with the same session as the
> >    presented ticket are also no longer valid for resumption.  This
> > 
> > Unfortunately, RFC 8446 does not seem to be consistent about "session"
> > (persists across multiple resumption handshakes) vs "connection" (a
> > single handshake) terminology.  We may want to consider just discussing
> > "full handshake" and "initial full handshake" instead of trying to use
> > the "session" shorthand.
> 
> We converged on "connection" to avoid confusion, since that seems to be the more natural term. 
> 
> >    and the number requested.  Servers MAY send additional tickets, up to
> >    the same limit, if the tickets that are originally sent are somehow
> >    invalidated.
> > 
> > (nit) pedantically, the server can send whatever tickets it likes
> > whenever it likes.  The current "up to the same limit" looks a little
> > bit like it's trying to restrict the server's behavior, so "typically
> > using the same limit" might be better.
> > 
> >    Servers MUST NOT send the "ticket_request" extension in ServerHello
> >    or HelloRetryRequest messages.  A client MUST abort the connection
> >    with an "illegal_parameter" alert if the "ticket_request" extension
> >    is present in either of these messages.
> > 
> > I note that we do have other messages (Certificate, CertificateRequest,
> > NewSessionTicket itself, maybe soon ClientEncryptedExtensions) that can
> > carry extensions, so in that sense it's strange to only explicitly
> > prohibit these two.  That said, they are the two that would be most
> > tempting to (inadvertently) put this extension in, so I don't
> > particularly mind leaving it this way.
> 
> We clarified that it shouldn't be present in any handshake message.
> 
> Thanks again for the thorough and thoughtful review!
> 
> Best,
> Chris