Re: [tram] Artart telechat review of draft-ietf-tram-stunbis-16

Eric Rescorla <ekr@rtfm.com> Tue, 17 April 2018 03:12 UTC

Return-Path: <ekr@rtfm.com>
X-Original-To: tram@ietfa.amsl.com
Delivered-To: tram@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7106812E8A8 for <tram@ietfa.amsl.com>; Mon, 16 Apr 2018 20:12:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.609
X-Spam-Level:
X-Spam-Status: No, score=-2.609 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, T_DKIMWL_WL_MED=-0.01] autolearn=unavailable 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 ITW_UnSTJBpJ for <tram@ietfa.amsl.com>; Mon, 16 Apr 2018 20:12:47 -0700 (PDT)
Received: from mail-oi0-x22f.google.com (mail-oi0-x22f.google.com [IPv6:2607:f8b0:4003:c06::22f]) (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 39CFD12D87D for <tram@ietf.org>; Mon, 16 Apr 2018 20:12:47 -0700 (PDT)
Received: by mail-oi0-x22f.google.com with SMTP id e123-v6so16601542oih.13 for <tram@ietf.org>; Mon, 16 Apr 2018 20:12:47 -0700 (PDT)
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 :cc; bh=IFyy3t3f0w0rhVjJObNoYJJtzFuxyS23dHdKVg3cEtI=; b=Uabz2hEV1L95r9xO7bk+BDXYHH6c/nNQ9J5k4y2jp8s8Gsfv+/V4uOfGyh4vO/n/pm JN7FD81Dxil+kCz7xPAqUQavF71zatXeB3mSd6J7qvc5kiYJ6IQ+/vB48B8rzDWtu6j6 llFMpKLPJptwQXtYyLHk7yY+FlasVQ9ayu0MogCe7/pJ0OAI/eSxmn2xKiF8M+OSX/qc 8LMyYN7p9BGGSksRucFfBemarC+6qp1RMyGw8TLnQTW1XghwH75QUzfHKvU8tfMNcyLZ ZmK1Led0y7/lgeKtone/5nefxM9kJufc0WdOQkQ0XyK/u6SAXSlAhL5PJL9gF9ZotvUe ZkIA==
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:cc; bh=IFyy3t3f0w0rhVjJObNoYJJtzFuxyS23dHdKVg3cEtI=; b=i7ghLVMsxwixvvV7+JNei+3BPOyXHjZC/U+UIn5TDJsAUNvUat0tVm50Xm+TOmf3UD k3NYjC+9Ox9dUtN3zOdJPvu/14rRKisOmtkzQ+z01h4qhcyrFc/TcrA+uUvB99nftdoH 9yPHbxYBj+2VqTZ7Uv9qxLkRrUli9OxfLzd+C94CcoPz8mjPhYyi2+qeofQhgpQf9KJE LA1mRfisZfiy804YDZO2ClE/0xH6dpaZDtksQE5GQ/QS968yt7AnDM6ZT9dk+pWOuxSo IM6XINc/cHWcZ5HzgpPE4xNyEFZVWux9BrKimcOzFqNFFZDhbOfDUiW0WE1wUff8pAKp 17EQ==
X-Gm-Message-State: ALQs6tDlHWiB9ijXkQulRnmPGGUXpYX1WAsAOZuGwh0AbXVcSG/wAPUv DLOfts9nM5Me636YB2b6lUszhdZNLsZu6O++UXagZg==
X-Google-Smtp-Source: AIpwx48gZ1dREmC4TUjWmRKeij2o3UNmiqYKklONGKzy+ZhTa0gkVk8QR50gvCjulj3ZWq8RC9bOoODT6hhGCnEnLw4=
X-Received: by 2002:aca:4f46:: with SMTP id d67-v6mr184561oib.138.1523934766633; Mon, 16 Apr 2018 20:12:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.138.18.132 with HTTP; Mon, 16 Apr 2018 20:12:06 -0700 (PDT)
In-Reply-To: <c6df754b-8aea-637c-a8bf-7ccadc0d8704@mozilla.com>
References: <152270998513.17947.16209089088681034529@ietfa.amsl.com> <ec1d7013-4886-6f96-21a2-3c758fc633cf@petit-huguenin.org> <c6df754b-8aea-637c-a8bf-7ccadc0d8704@mozilla.com>
From: Eric Rescorla <ekr@rtfm.com>
Date: Mon, 16 Apr 2018 20:12:06 -0700
Message-ID: <CABcZeBOT50o5OYXEaTf=EONbP1eXGnBv-430JY2OxckUwUTWvw@mail.gmail.com>
To: Peter Saint-Andre <stpeter@mozilla.com>
Cc: Marc Petit-Huguenin <marc@petit-huguenin.org>, art@ietf.org, draft-ietf-tram-stunbis.all@ietf.org, IETF discussion list <ietf@ietf.org>, tram@ietf.org
Content-Type: multipart/alternative; boundary="0000000000006d32cd056a02b694"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tram/-cTizcAsIUKtAdE6j2NEHUGZL-Q>
Subject: Re: [tram] Artart telechat review of draft-ietf-tram-stunbis-16
X-BeenThere: tram@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Discussing the creation of a Turn Revised And Modernized \(TRAM\) WG, which goal is to consolidate the various initiatives to update TURN and STUN." <tram.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tram>, <mailto:tram-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tram/>
List-Post: <mailto:tram@ietf.org>
List-Help: <mailto:tram-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tram>, <mailto:tram-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 17 Apr 2018 03:12:50 -0000

On Mon, Apr 16, 2018 at 5:22 PM, Peter Saint-Andre <stpeter@mozilla.com>
wrote:

> Hi Marc, a few further comments inline.
>
> On 4/16/18 5:43 PM, Marc Petit-Huguenin wrote:
> > Hi Peter,
> >
> > Thanks for the review and sorry for the delay in responding, I was
> traveling for the last 4 weeks.
> >
> > See my responses inline.
> >
> > On 04/02/2018 03:59 PM, Peter Saint-Andre wrote:
> >> Reviewer: Peter Saint-Andre
> >> Review result: Ready with Nits
> >>
>
> <snip/>
>
> >> The first paragaraph of Section 6.2.3 restates recommendations from RFC
> >> 7525; why not simply reference that specification?
> >
> > The original text in RFC5389 said this:
> >
> > " When STUN is run by itself over TLS-over-TCP, the
> >   TLS_RSA_WITH_AES_128_CBC_SHA ciphersuite MUST be implemented at a
> >   minimum. [...]"
> >
> > The new text is an attempt at updating it in the same spirit of giving
> minimal instructions and complementing them with a reference to RFC 7525 -
> which was the reason for the reference to RFC 7525 there.
> >
> > So I kept the text there, followed by the following paragraph, in
> addition of moving the original last paragraph in the Security
> Consideration section:
> >
> > " These recommendations are just a part of the the recommendations in
> >   [RFC7525] that implementations and deployments of a STUN usage using
> >   TLS or DTLS SHOULD follow."
>
> I would instead suggest that we do something like Section 2 of RFC 7590
> for XMPP:
>
>    The best current practices documented in the "Recommendations for
>    Secure Use of TLS and DTLS" [RFC7525] are included here by reference.
>    Instead of repeating those recommendations here, this document mostly
>    provides supplementary information regarding secure implementation
>    and deployment of XMPP technologies.
>
> Here's the rationale: RFC 7525 is likely to be updated/replaced more
> quickly than STUNbis. If STUNbis recommends a particular cipher suite
> that 7525bis stops recommending, in the absence of STUNter will STUN
> implementations keep following STUNbis or will they upgrade to whatever
> 7525bis recommends? I suggest it will be the former, which is not what
> we want.
>

I forgot about this in my review, but you should also profile ciphers for
TLS 1.3.

-Ekr

>> Section 6.3.4 states:
> >>
> >>    o  If the error code is 500 through 599, the client MAY resend the
> >>       request; clients that do so MUST limit the number of times they do
> >>       this.
> >>
> >> It is reasonable to provide guidance as to the number of re-sends?
> >
> > Same issue here, that's a section that is unmodified from RFC 5389.
>
> I understand. Now is our chance to fix it. :-)
>
> >  As long as the client does not enter an endless loop of retransmission,
> choosing different numbers of re-sends does not affect interoperability.
>
> Choosing different numbers is OK, but choosing an infinite number is
> not. Can we provide guidance as to how many is too many? 10? 50? 100?
>
> >> Section 9.1.1 and other sections invoke the OpaqueString profile of the
> >> PRECIS FreeformClass; it might be helpful to mention that the profile is
> >> used to handle Unicode characters outside the ASCII range, and that no
> >> changes result if only ASCII characters are used.
> >
> > Hmm.  But in that case the application has first to test that the string
> is in the ASCII range.  Isn't that better to always assume that the input
> string will contain Unicode, and let the implementation of OpaqueString
> short-circuit the processing in the case of an all-ASCII string?
>
> Yes, I meant that as an informational note to implementers so they would
> worry less. But it's not necessary and I think you can safely ignore it.
>
> Peter
>
>