Re: [Pce] Alexey Melnikov's Discuss on draft-ietf-pce-pceps-15: (with DISCUSS and COMMENT)

Alexey Melnikov <aamelnikov@fastmail.fm> Thu, 03 August 2017 13:53 UTC

Return-Path: <aamelnikov@fastmail.fm>
X-Original-To: pce@ietfa.amsl.com
Delivered-To: pce@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4DB5F132332; Thu, 3 Aug 2017 06:53:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.72
X-Spam-Level:
X-Spam-Status: No, score=-2.72 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.fm header.b=iKG/ZezO; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=DprZV9jt
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 77U7J3X0_XOp; Thu, 3 Aug 2017 06:53:52 -0700 (PDT)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA65B13208B; Thu, 3 Aug 2017 06:53:51 -0700 (PDT)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 3859720AD1; Thu, 3 Aug 2017 09:53:51 -0400 (EDT)
Received: from web5 ([10.202.2.215]) by compute7.internal (MEProxy); Thu, 03 Aug 2017 09:53:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=b+0qOyuCXYgx9ZJR6Xn3hRwLITUDr V/3/A6RH9F6kzU=; b=iKG/ZezOl8cLrz9QpvcbHElZUjtABF1Glhsy+h/zeNaOS oT9MiT84kNUav87C5q0OkW54zUAsa7U9tKXEpcMzbx2Hc1+ofFm6bnnu+IMzu8Zf 76jsI0C39ErxGUg5HvfSLdjHMJcxhQhc3nyV3tg30hbb3s9/cYK81gZRWOySNI1X 4kB5hZzlntQhGA4FTKh2rQvIW+eWfw892wtW12gK/Rilb8vhy5+wMjtqUnCUln3e i9TKH2ELNCUPHmVxq/cGZ+NZNOxulIddLzU/YazEscdO+hpJ/XvhcgcL0N/dazq+ vCNOyT5I0MKD1biJtpu51uqrhECeOnBZEZ6yudong==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=b+0qOy uCXYgx9ZJR6Xn3hRwLITUDrV/3/A6RH9F6kzU=; b=DprZV9jtH6adgyNUO9LlEp J/muFq2G/PHwT1d9JIBMizY+4FtbOSnthr66YgZ8POHuqnLhWb+f6375PedNctq5 gQqdhLLNLByujTGfnJSlD7EQJ/5pVEoU9rMdTgVSL5BmRn/529V+oLZHXR7FjQ/r ru2+TTSCoUgLDtmTqEgrL165mwXH56s238AJ8qUNRyGA1zUnDAaI/JvkiJfGmOTJ NJ3bY5Xw6+Na0cRkQdJX4NpxDOM1WPlYXZlkqtnLLx/pGDxDa2unFaLXqszD1U9P 4jZt/7Zdt0M3ukN2N8EVVMHHCJaCiKA3EisQemOtnwCB2OyVk3vetbTdayMIPZYw ==
X-ME-Sender: <xms:7yqDWXrcWdkJ30A1SeiPebejIfyP2AmZT6M3UTbMp49c13P9N1qkKw>
Received: by mailuser.nyi.internal (Postfix, from userid 99) id 0A1DE9E298; Thu, 3 Aug 2017 09:53:51 -0400 (EDT)
Message-Id: <1501768430.1127539.1062021760.5848DD02@webmail.messagingengine.com>
From: Alexey Melnikov <aamelnikov@fastmail.fm>
To: Dhruv Dhody <dhruv.dhody@huawei.com>, The IESG <iesg@ietf.org>
Cc: cmargaria@juniper.net, draft-ietf-pce-pceps@ietf.org, pce@ietf.org, pce-chairs@ietf.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="utf-8"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-7b2cde4a
In-Reply-To: <23CE718903A838468A8B325B80962F9B8CB9867E@blreml501-mbb>
References: <150175472723.9824.8664411936101979517.idtracker@ietfa.amsl.com> <23CE718903A838468A8B325B80962F9B8CB9867E@blreml501-mbb>
Date: Thu, 03 Aug 2017 14:53:50 +0100
Archived-At: <https://mailarchive.ietf.org/arch/msg/pce/_wWD6W_S9hq1GdoSHD_I5P77cXI>
Subject: Re: [Pce] Alexey Melnikov's Discuss on draft-ietf-pce-pceps-15: (with DISCUSS and COMMENT)
X-BeenThere: pce@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Path Computation Element <pce.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/pce>, <mailto:pce-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/pce/>
List-Post: <mailto:pce@ietf.org>
List-Help: <mailto:pce-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/pce>, <mailto:pce-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Aug 2017 13:53:53 -0000

Hi,

On Thu, Aug 3, 2017, at 02:36 PM, Dhruv Dhody wrote:
> Hi Alexey, 
> 
> Thanks for your comments, see inline...
> 
> > -----Original Message-----
> > From: Pce [mailto:pce-bounces@ietf.org] On Behalf Of Alexey Melnikov
> > Sent: 03 August 2017 15:35
> > To: The IESG <iesg@ietf.org>
> > Cc: cmargaria@juniper.net; draft-ietf-pce-pceps@ietf.org; pce@ietf.org;
> > pce-chairs@ietf.org
> > Subject: [Pce] Alexey Melnikov's Discuss on draft-ietf-pce-pceps-15: (with
> > DISCUSS and COMMENT)
> > 
> > Alexey Melnikov has entered the following ballot position for
> > draft-ietf-pce-pceps-15: Discuss
> > ----------------------------------------------------------------------
> > DISCUSS:
> > ----------------------------------------------------------------------
> > 
> > I am very glad to see this document and I will be switching to "Yes" once
> > we discuss the following issues:
> > 
> > 1)
> >                   +-+-+                 +-+-+
> >                   |PCC|                 |PCE|
> >                   +-+-+                 +-+-+
> >                     |                     |
> >                     | StartTLS            |
> >                     | msg                 |
> >                     |-------              |
> >                     |       \   StartTLS  |
> >                     |        \  msg       |
> >                     |         \  ---------|
> >                     |          \/         |
> >                     |          /\         |
> >                     |         /  -------->|
> >                     |        /            |
> >                     |<------              |
> >                     |:::::::::TLS:::::::::| TLS Establishment
> >                     |:::::Establishment:::| Failure
> >                     |                     |
> >                     |<--------------------| Send Error-Type TBA2
> >                     |      PCErr          | Error-Value 3/4
> >                     |                     |
> > 
> >       Figure 2: Both PCEP Speaker supports PCEPS (strict), but cannot
> >                                establish TLS
> > 
> > Firstly, I think you also need to demonstrate a case when the server end
> > of TLS is refusing to startTLS before trying TLS negotiation (e.g. if it
> > doesn't have certificate configured). In this case you need to send PCErr
> > in the clear. I think earlier text suggest that this case is possible.
> > 
> [[Dhruv Dhody]] No, the only error to StartTLS is by an implementation
> that does not understand the message. 
> In case certificate is not configured we would start TLS negotiation,
> which would fail.  

I think you should clarify this.

I have implemented StartTLS in both IMAP and LDAP and this is not
necessarily how it works there: before TLS negotiation starts it is
possible for the server end to reject negotiation in cleartext.

> > Secondly, does the case depicted on this picture mean that TLS was
> > negotiated successfully, but TLS identities were not successfully verified?
> > (I.e. the PCErr is sent over the TLS layer). If TLS failed to negotiate,
> > you don't have a channel to send data on, as the other end will get
> > confused. I think you just have to close connection in such case.
> > 
> [[Dhruv Dhody]] No, the PCErr is sent in clear over the TCP connection
> (underlying transport). 
> EKR also made a similar point. I updated the text to include this - 
> 
>    Note that, the PCEP implementation MUST send the PCErr message once
>    the TLS connection has been closed i.e. the TLS close_notify
>    [RFC5246] has been received from the peer.  As per [RFC5246], if the
>    data may be carried over the underlying transport after the TLS
>    connection is closed, the TLS implementation must receive the
>    responding close_notify alert before indicating to the application
>    layer that the TLS connection has ended.

Hmm, I am not sure this will ever work. I know that implementations of
TLS in other protocols I worked on can't read any cleartext TCP data
after TLS has failed.

> > So maybe you need 3 figures describing the above 3 cases.