Re: [Lake] proposed scoping text

Christopher Wood <caw@heapingbits.net> Sat, 25 April 2020 00:17 UTC

Return-Path: <caw@heapingbits.net>
X-Original-To: lake@ietfa.amsl.com
Delivered-To: lake@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7AA3C3A10EF for <lake@ietfa.amsl.com>; Fri, 24 Apr 2020 17:17:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=heapingbits.net header.b=UTxIVDgR; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=CKQKFR20
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 0AqcKdjNTlby for <lake@ietfa.amsl.com>; Fri, 24 Apr 2020 17:17:39 -0700 (PDT)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3AD573A10F2 for <lake@ietf.org>; Fri, 24 Apr 2020 17:17:39 -0700 (PDT)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4D0315C019B for <lake@ietf.org>; Fri, 24 Apr 2020 20:17:38 -0400 (EDT)
Received: from imap4 ([10.202.2.54]) by compute1.internal (MEProxy); Fri, 24 Apr 2020 20:17:38 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heapingbits.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type:content-transfer-encoding; s=fm1; bh=5bm3A j5TvkJRQyWzCioz1cxdte+96jALjrDirjwBdI0=; b=UTxIVDgRBIcHmwCqALF1o NMY1KTu747J7ATcIlRk6BJkS140XZAf8fdcxgdE/jvpqmIgp4V0Fr5kY7yInFGMl Of4K78rYFg4AbZjJIojoOy3kp6QZwwGphQSk6HyhQqxq+mFCizEYKGpvy2C7fGKJ brR0nkdNJDCiYKyc0XuWe1hR6gpjYfM6/PYqLP1jhIQqbQje0tCsmLBT/OLZELRy pFY/BMDWoT4BaVfqYe4BH6tqDgtrFJ6dme5rLdGeFu82OFWLY9Jqs6l/YoOlxNl5 o5RVFeWNyy1zTGQv4iIaWoln9nFWmP8I+F5rO3Q4z8jFR32zlZ3HJopHeZCsfvBL A==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=5bm3Aj5TvkJRQyWzCioz1cxdte+96jALjrDirjwBd I0=; b=CKQKFR20P9Lj2nEkJBlVPFossrTaguGXug+WDEP+lQKOo5Q3oPQAe+lHR OWZs3RmryNRRCWDWZXvUUFqcnOL2k5fVBa/pSNPFgMJQQA2zHQ5Ohi9gkb9FotsJ n57cFWekEfwWFaLZABoEQgwTWxWKnCgc8IV15pbLQsJr1vgyH3XeCw0XNJniq6Wc 6COJdbJDmMWM7crjZ+uiJRXpgjfjoNxE40HZQSMq53Zps/QTjrk+t3ocI4EqXSib hbtqLPK0kdYOZNAlG6CAPjrZZijGZxemdJkQ6BITaN/4MBxbus9Oe4OdJ6Wk/toP Z/ougvM9oOJpDKLg8S50+FLGSOOPg==
X-ME-Sender: <xms:oYGjXp_7pUHR8W58hWx7hDDMdQzwCGc4MRr2P62JZQ346dn8zNhKYQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrhedvgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgfgsehtqh ertderreejnecuhfhrohhmpedfvehhrhhishhtohhphhgvrhcuhghoohgufdcuoegtrgif sehhvggrphhinhhgsghithhsrdhnvghtqeenucffohhmrghinhepghhithhhuhgsrdgtoh hmpdhivghtfhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegtrgifsehhvggrphhinhhgsghithhsrdhnvght
X-ME-Proxy: <xmx:oYGjXuJv-x_fx8RpZWUABpSPJT0ZLTcKzOdrXZgZdz_0iYnJR4xmGg> <xmx:oYGjXmwfzwWJrwKiVnvxSLU5m9g53R9bXGb4-Ifd919-r-6w9j8vxw> <xmx:oYGjXp04jYVlkiNJPbs-MuNYluYJykINT74OMvw1LxtdIKbYF_wg-A> <xmx:ooGjXkWzDqLIYrRuNQPvouYf_YXT0M-Zx0IeUZGpWtUPrdFhjEWjbA>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 047543C00A1; Fri, 24 Apr 2020 20:17:37 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.3.0-dev0-351-g9981f4f-fmstable-20200421v1
Mime-Version: 1.0
Message-Id: <c1037af3-c48f-40fd-8fb3-5c7d4f549798@www.fastmail.com>
In-Reply-To: <F3B1DD90-2ACB-41FA-9A41-4ADE2D929A7A@inria.fr>
References: <3780afd5-7012-d808-9584-07e04913cd19@cs.tcd.ie> <239BEC0D-240F-4830-A7A4-0172B62BD6AC@ericsson.com> <B620C5B0-8DE0-489F-B0B0-2548F3C83B49@ericsson.com> <F3B1DD90-2ACB-41FA-9A41-4ADE2D929A7A@inria.fr>
Date: Fri, 24 Apr 2020 17:17:16 -0700
From: "Christopher Wood" <caw@heapingbits.net>
To: lake@ietf.org
Content-Type: text/plain;charset=utf-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/lake/DhyljZRQG9defcHkTICclybwyBI>
Subject: Re: [Lake] proposed scoping text
X-BeenThere: lake@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Lightweight Authenticated Key Exchange <lake.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lake>, <mailto:lake-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lake/>
List-Post: <mailto:lake@ietf.org>
List-Help: <mailto:lake-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lake>, <mailto:lake-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 25 Apr 2020 00:17:42 -0000

Apologies for the delay, all! I thought Ben's suggestion to focus only on PSK and RPK modes to start was fine, though this recent proposal seems to also support certificates, albeit only by "reference." While this seems like a small addition at face value -- what's different from a certificate reference with size equal to an RPK? -- I think it changes the shape of the desired AKE in ways that are perhaps unintentional. For example, it assumes some type of PKI in which these certificates exist and through which endpoints handle tasks such as revocation and transparency. That may impose requirements on the AKE. TLS had to carve out extension support for CT and OCSP. Is that something we want to take on when starting down the path towards an efficient AKE? I'm not sure. Moreover, it does seem like the environment in which this type of AKE exists and would be used is different from one that only supports PSKs and RPKs. (The latter being an environment with less dependencies.)

Overall, while I appreciate the attempt to clarify scope, I think including certificates complicates the story and will make progress on an efficient AKE -- the goal of this group -- more difficult. I strongly suggest we limit this to PSKs and RPKs only.

Best,
Chris

On Mon, Apr 20, 2020, at 5:25 AM, Mališa Vučinić wrote:
> Hi all,
> 
> This is a kind reminder to take a look at the proposed PR and provide 
> feedback, especially if you disagree with the proposed text. With the 
> remaining issues on the requirements documents resolved, we would like 
> to converge on the best way forward for the working group, so please 
> provide your comments by the end of this week, Friday the 24th.
> 
> Mališa
> 
> > On 15 Apr 2020, at 14:19, Göran Selander <goran.selander=40ericsson.com@dmarc.ietf.org> wrote:
> > 
> > Hi,
> > 
> > Here is a proposal how to formulate the scoping in the requirements draft:
> > https://github.com/lake-wg/reqs/pull/26
> > 
> > Göran
> > 
> > 
> > On 2020-04-09, 12:09, "Lake on behalf of Göran Selander" <lake-bounces@ietf.org on behalf of goran.selander=40ericsson.com@dmarc.ietf.org> wrote:
> > 
> >    All,
> > 
> >    TL;DR: I propose LAKE to initially focus on RPK, and certificate by reference.
> > 
> >    =========
> > 
> >    Apologies for a long mail. Comments on Ben's proposal for a way forward at the end, but first we need to take a step back and try to understand what we are discussing.
> > 
> >    We are working on requirements for an AKE for OSCORE. We require a lightweight AKE, since OSCORE may be applied in constrained IoT applications. Now there is a discussion about restricting the functionality of LAKE to address only the most lightweight scenarios, so that another AKE should be used in non-lightweight settings. While this may be an economy of standardization, this does not make sense for many reasons.
> > 
> >    * Note that OSCORE is expected to be applied in both in constrained and non-constrained environments. OSCORE works whereever CoAP does, and CoAP is expected to be applied in PSK, RPK and certificate settings.
> > 
> >    * Implementation-wise OSCORE is more or less integrated with CoAP, because it reuses CoAP processing. A combined OSCORE/AKE implementation will thus be more or less integrated in CoAP. So how should a developer handle the situation that there is a specification of AKE1 addressing part of the credential space and another completely incompatible specification AKE2 addressing another part? 
> > 
> >    * OSCORE is designed for end-to-end security from constrained device to cloud. To be sure to support OSCORE based security you need to implement both AKE1 and AKE2.
> > 
> >    * How could it be better security-wise to have two different AKEs for one security protocol? Twice the number of security analyses, etc. are needed. 
> > 
> >    * Many companies want to move away from symmetric-key based IoT deployments to public key based, ideally to device certificates. If their current technology does not support transport of certificates, but maybe will later,  should they implement AKE1 or AKE2?
> > 
> >    * etc.
> > 
> >    Summarizing: At some point in time there needs to be one single AKE for OSCORE that is sufficiently lightweight to perform well in the most constrained settings but also has the functionality to protect CoAP for whatever settings it is expected to be deployed in, and that involves PSK, RPK and certificates.
> > 
> >    =======================================
> > 
> >    Having said this, it may still be relevant to discuss which cases are most important right now, bearing in mind that this scoping should not prevent later adding the remaining components.  
> > 
> >    One way to prioritize the scope of the first work on the AKE is to address a) the needs from current use cases, and b) the potential to provide something useful that is not already available:
> > 
> >    a) There is a general request to deploy a lightweight AKE with OSCORE targeting general CoAP use cases 
> >    i.e. based on PSK, RPK as well as certificates. More specific work items I'm aware of include RPK-based solutions (e.g. LoRa Alliance) and mixed RPK/certificate based solution (e.g. draft-selander-ace-ake-authz). As mentioned in my previous email, a PKI-based solution is necessary to handle IoT deployments with a large number of devices and many manufacturers, but the certificate does not necessarily have to be transported.
> > 
> >    b) It is possible to do PSK and RPK by reference for the most constrained benchmark (1,1,1). RPK by value and certificate by reference can also be very lightweight, but may require more than one fragment per message. However, in case of transporting a chain of X.509 certificates, or even a single X.509 certificate, it is not clear that a lightweight AKE performs significantly better. 
> > 
> >    The intersection of a) and b) correspond to where there is an active interest in a solution and where the solution can be made lightweight: RPK (by reference and value) and certificate by reference. 
> > 
> >    This restricted scope leaves out the most lightweight and the least lightweight options. Removing symmetric key based authentication from first scope is a significant simplification since this is a different protocol in many respects compared to the asymmetric version. Moreover, since PSK and RPK by reference can be handled with the same transmission cost, there is less motivation for using PSK ECDHE as an intermediate deployment step.
> > 
> >    Now for Ben's proposal:
> > 
> >    On 2020-04-08, 17:41, "Lake on behalf of Stephen Farrell" <lake-bounces@ietf.org on behalf of stephen.farrell@cs.tcd.ie> wrote:
> > 
> >        Ben's proposal is:
> > 
> >        "
> >        Strip down the requirements document a lot, to have a
> >        qualitative sense of "these are the combinations of crypto
> >        primitives that we consider important *right now*" (e.g.,
> >        PSK and RPK). Have an acknowledgment that extensibility is
> >        inevitable, but disclaim that we are focusing on getting it
> >        right for these narrow cases right now, and if someone
> >        wants to do a broader case in the future, then more
> >        analysis will need to be done at that time.  
> > 
> >        But for now,
> >        we focus on getting RPK and PSK into:
> > 
> >         3 flights, 51-byte messages, and do that well.
> > 
> >    [GS] Focus on RPK (by value and by reference) and certificate by reference, and do that well. For RPK by reference: 3 flights in (1,1,1) fragments. For RPK by value and certificate by reference the number of fragments should be kept at a minimum.
> > 
> > 
> >        If we end up with protocol X that does RPK well and
> >        someone has it deployed but wants to expand their
> >        deployment to also use certificates, they can extend
> >        protocol X to do that and have a fairly homogeneous
> >        deployment, vs. having to have a mix of protocol X
> >        and TLS.  It may well be that TLS would do fine for
> >        their extended use case, but not the original use
> >        case, and having a homogeneous deployment is valuable."
> > 
> >    [GS] Agree.
> > 
> >    Göran 
> > 
> > 
> > 
> >    -- 
> >    Lake mailing list
> >    Lake@ietf.org
> >    https://www.ietf.org/mailman/listinfo/lake
> > 
> > 
> > -- 
> > Lake mailing list
> > Lake@ietf.org
> > https://www.ietf.org/mailman/listinfo/lake
> 
> -- 
> Lake mailing list
> Lake@ietf.org
> https://www.ietf.org/mailman/listinfo/lake
>