Re: [Emu] Issue 59 - Key Update

Joseph Salowey <joe@salowey.net> Tue, 13 April 2021 04:40 UTC

Return-Path: <joe@salowey.net>
X-Original-To: emu@ietfa.amsl.com
Delivered-To: emu@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 54A0C3A14D9 for <emu@ietfa.amsl.com>; Mon, 12 Apr 2021 21:40:49 -0700 (PDT)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, 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=salowey-net.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 IRtya3KE9HLX for <emu@ietfa.amsl.com>; Mon, 12 Apr 2021 21:40:44 -0700 (PDT)
Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) (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 D1B3E3A14D3 for <emu@ietf.org>; Mon, 12 Apr 2021 21:40:43 -0700 (PDT)
Received: by mail-lf1-x12e.google.com with SMTP id r8so25041217lfp.10 for <emu@ietf.org>; Mon, 12 Apr 2021 21:40:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salowey-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jOGhWjnFsVaSFDdO+aYFT/91/QRzNafWjDy4WN2X9bc=; b=t8fCjWwgatmkwSHsZnjJOVI1Nt5xnNvQJuipl+8hOro7P2t0A0OtnlR3BZdOQ4rWgT xTViuyVEIOmU1SDwWQwx0lZKM9aacU+2O8AbpFjKjbpJzEkGJSQbW/XXkEWuLtEjQW9M WevfdDLOkAIK+lcGPi4LPswlSQBFgUGzAH9ntvk1VSwY4pfr4fN6FG1lh7uzHiRh4JFt xcqY3xgpdi+/kdpoHQXFR5UT7KEht5C7WFj4mM70SsOdbU5ji0CDRQSnTQQCG7s6D2Vy vdHxgb42HtEIJOCBFjMDk/2WzxhKj3i+7NJpJXESIVLLJkExkB9RUj6w8BcLabdj7bpD sZow==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jOGhWjnFsVaSFDdO+aYFT/91/QRzNafWjDy4WN2X9bc=; b=Avro7Y/AtYApo/2MfKHLfKm+Cw/fqnbl20Pk6o5I6OB3JLfV2tG/oyjmN9tCH1RQdS hi4vYBeoDAH5n4KQcFihxmeGzQaDRRS5sQ6lgJH1pQ1HkVRm8IonyL5xlHRiwjHeaxl/ +AlEOSw1LA7iUxwnqPUlO51kd/o4gfaZWvi+5IrjMKILpSjr9zHxW1BL+hJNOhtoZEYx T6u5Znq43RJ0G+7prQUymtv7Va9TQ26JEE2yLq4d0Exo8t2dcenFSwiU21NCkVG2wg7p iiSLfV5Z2hYISBFN73QdB60o/yRMP5Hyi2j+8H1tOc0VWhres/flEQu13gbd7QBC/B/Y UaRw==
X-Gm-Message-State: AOAM530qEhu0ngE5Rza1CjHE6ecw7ryHFNipJpmnBB2G1A9CVMnb8y1A ZS6esRQ04qZsjvi2HTV3ZUnqXmqI36Bwmp/IXHLJWg==
X-Google-Smtp-Source: ABdhPJyb/HtPKjbqrhX89zNoxF6GywkotWaLCR12fthsUaYGPYZm+zsm4gNfY/qyGOhMULv93REpKhttCoOLzCfrStw=
X-Received: by 2002:ac2:4e6f:: with SMTP id y15mr21333704lfs.428.1618288840743; Mon, 12 Apr 2021 21:40:40 -0700 (PDT)
MIME-Version: 1.0
References: <CAOgPGoA_rFLppfSFLp3-yBq5Vd9Cc4=qY1FTxg3s118Q7qkofQ@mail.gmail.com> <8ED83E4F-68D1-49FB-9328-4B98E691A88A@deployingradius.com>
In-Reply-To: <8ED83E4F-68D1-49FB-9328-4B98E691A88A@deployingradius.com>
From: Joseph Salowey <joe@salowey.net>
Date: Mon, 12 Apr 2021 21:40:29 -0700
Message-ID: <CAOgPGoAFbc09QFVBRYRfjFyYt8rd+naW0ZJ1OTchoX6FUt-xQg@mail.gmail.com>
To: Alan DeKok <aland@deployingradius.com>
Cc: EMU WG <emu@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007f2cb005bfd33bcd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/emu/TS39_qR-_QnlngU8F0SODhF0RXQ>
Subject: Re: [Emu] Issue 59 - Key Update
X-BeenThere: emu@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "EAP Methods Update \(EMU\)" <emu.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/emu>, <mailto:emu-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/emu/>
List-Post: <mailto:emu@ietf.org>
List-Help: <mailto:emu-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/emu>, <mailto:emu-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Apr 2021 04:40:49 -0000

On Mon, Apr 12, 2021 at 4:58 AM Alan DeKok <aland@deployingradius.com>
wrote:

> On Apr 11, 2021, at 10:40 PM, Joseph Salowey <joe@salowey.net> wrote:
> > This does seem to require some more specification.  Here is a proposal.
> >
> > "TLS 1.3 introduced the Post-Handshake KeyUpdate message which is not
> useful and not expected in EAP-TLS.  Implementations SHOULD NOT send a
> KeyUpdate message.  If a KeyUpdate message is received then an
> implementation SHOULD ignore the message and it SHOULD NOT send a KeyUpdate
> message in response."
> >
> > I think this is better than "implementations MUST NOT send this message
> and MUST fail upon reception".  The problem here is that the EAP TLS
> implementation may not have control over this behavior.
>
>   It looks like key update messages are explicitly requested by either
> party.  From OpenSSL:
>
>   https://www.openssl.org/docs/man1.1.1/man3/SSL_key_update.html
>
>   If the KeyUpdate message is sent only when requested, it would make
> sense to forbid sending it.  EAP-TLS has no reason to just randomly change
> the encryption keys used for TLS.  EAP-TLS is using TLS for authentication,
> and not for bulk data transfer.
>
>   If the underlying TLS library randomly sends it (or sends it subject to
> unknown criteria), then the EAP-TLS implementation (peer or authenticator)
> should be able to detect it via a callback:
>
> https://www.openssl.org/docs/man1.0.2/man3/SSL_set_msg_callback.html
>
>   There appears to be no way for the application to tell the TLS library
> to ignore the message.
>
>   The safest thing would seem to be:
>
> a) forbidding EAP-TLS implementations from explicitly requesting it
>
> b) noting that TLS libraries may still do key updates
>
> c) noting that EAP-TLS implementations can often detect key updates, and
>
> d) leaving it to the implementation to decide what to do.
>
>   i.e. "We don't know why you'd use it.  But if someone else does use it,
> and it works, great.  Otherwise, buyer beware".
>
>
[Joe] OK, this sounds reasonable to me.  How about text like the following:

"EAP-TLS implementations MUST NOT explicitly request key updates.  It is
possible that a TLS library implementation may automatically send a key
update message so an implementation detecting the reception of a keyUpdate
message MAY process or ignore the message since only a minimum amount of
application data is exchanged in the channel."


>   Alan DeKok.
>
>