Re: [BEHAVE] [rtcweb] URI schemes for TURN and STUN

Harald Alvestrand <harald@alvestrand.no> Sun, 30 October 2011 16:04 UTC

Return-Path: <harald@alvestrand.no>
X-Original-To: behave@ietfa.amsl.com
Delivered-To: behave@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8723721F8B4A for <behave@ietfa.amsl.com>; Sun, 30 Oct 2011 09:04:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -110.549
X-Spam-Level:
X-Spam-Status: No, score=-110.549 tagged_above=-999 required=5 tests=[AWL=0.050, BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uT8Oly-wzscN for <behave@ietfa.amsl.com>; Sun, 30 Oct 2011 09:04:19 -0700 (PDT)
Received: from eikenes.alvestrand.no (eikenes.alvestrand.no [158.38.152.233]) by ietfa.amsl.com (Postfix) with ESMTP id 6D1B721F8B47 for <behave@ietf.org>; Sun, 30 Oct 2011 09:04:19 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by eikenes.alvestrand.no (Postfix) with ESMTP id 5570E39E088; Sun, 30 Oct 2011 17:04:18 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at eikenes.alvestrand.no
Received: from eikenes.alvestrand.no ([127.0.0.1]) by localhost (eikenes.alvestrand.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zykzgMtoga92; Sun, 30 Oct 2011 17:04:17 +0100 (CET)
Received: from [192.168.6.21] (unknown [24.104.44.194]) by eikenes.alvestrand.no (Postfix) with ESMTPS id DB80839E038; Sun, 30 Oct 2011 17:04:15 +0100 (CET)
Message-ID: <4EAD757F.7020304@alvestrand.no>
Date: Sun, 30 Oct 2011 09:04:15 -0700
From: Harald Alvestrand <harald@alvestrand.no>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15
MIME-Version: 1.0
To: Marc Petit-Huguenin <petithug@acm.org>
References: <4EAC6BF4.2000604@alvestrand.no> <CALiegf=f4kFzyDLWK+Y5vbuCEJFXX590+VuZ4bbnHZnvX0CoBA@mail.gmail.com> <4EAC8AE0.3020307@acm.org> <4EACD558.1050003@alvestrand.no> <8E6C5B0D-2161-4D14-9BEE-7B41998CDB7E@network-heretics.com> <4EAD6E87.6000508@acm.org>
In-Reply-To: <4EAD6E87.6000508@acm.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Cc: Keith Moore <moore@cs.utk.edu>, Iñaki Baz Ca stillo <ibc@aliax.net>, Behave WG <behave@ietf.org>, Keith Moore <moore@network-heretics.com>, Ned Freed <ned.freed@mrochek.com>
Subject: Re: [BEHAVE] [rtcweb] URI schemes for TURN and STUN
X-BeenThere: behave@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: mailing list of BEHAVE IETF WG <behave.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/behave>, <mailto:behave-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/behave>
List-Post: <mailto:behave@ietf.org>
List-Help: <mailto:behave-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/behave>, <mailto:behave-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 30 Oct 2011 16:04:20 -0000

On 10/30/2011 08:34 AM, Marc Petit-Huguenin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/30/2011 12:44 AM, Keith Moore wrote:
>> On Oct 30, 2011, at 12:40 AM, Harald Alvestrand wrote:
>>
>>> On 10/29/2011 04:23 PM, Marc Petit-Huguenin wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> On 10/29/2011 03:36 PM, Iñaki Baz Castillo wrote:
>>>>> 2011/10/29 Harald Alvestrand<harald@alvestrand.no>:
>>>>>> - I do not think it's appropriate to use "turn" and "turns" for indicating
>>>>>> transport. Polluting the URI namespace with more configuration parameters in
>>>>>> the form of trailing "s" is a Bad Thing.
>>>>> But there should be some way to indicate that a TURN server listens in
>>>>> TLS, right?
>>>>>
>>>> We should continue this discussion in BEHAVE, but I would like to ask the OP to
>>>> send a pointer on the RFC or discussion that says that using a trailing "s" to
>>>> indicate security is a bad thing.
>>> I'll have to forward this question to the apps ADs of a few years ago about whether there's documentation for it. It does not seem to have been captured in an RFC that I can find; discussion was in the ~2000-2005 timeframe.
>>>
>>> The short version, from memory: Doing "s" locks you into one and exactly one security scheme, and prevents you from saying anything about the requisite parameters for that scheme, while using AUTH parameters such as POP or in-band negotiation such as IMAP  are much more flexible approaches.
>> Security schemes change over time as new (presumably better) ones appear, and vulnerabilities are discovered in old ones.   There's nothing inherently wrong with having a URI scheme end in "s".  But it's a Bad Idea to promote the notion that "s" means "security".
>>
> I understand the "s" suffix as meaning "the transport to the next app level hop
> MUST be secure", which actually means TLS, but it could be anything else.
err..... TLS with a NULL cipher and no certification checking is NOT secure.
Neither is TLS with 40-bit RC4, although it takes a little effort to 
break (CPU-minutes).
>    I
> agree that it would have been a better idea to define a scheme separator like in
> [1], to not have to register multiple schemes (i.e. "sip+s:", "http+s:",
> "turn+s:", etc...).  Similarly, one can define a suffix (say +sec) that means
> e2e security like in [2].  That would give "sip+sec:" for e2e SIP security, and
> "turn+sec:" for a secure transport and allocation.
If we need to indicate security functionality requirements in the URL (a 
doubtful proposition), I think the better solution is

<scheme>:<stuff>;auth=cert;crypt=tls

or someting like that (with suitable profiling for those values)

In TURN's case, we have exactly 3 currently defined operational modes, 
which require you to know which one to select before you start 
connecting, so

turn://user@host;mode=<udp, tcp or tls>

seems like a reasonable thing to do.

Reading security as a binary "either it's secure or it's not" is usually 
not a sign that the requirements for the situation have been deeply 
analyzed.

>
> [1] http://tools.ietf.org/html/draft-wood-tae-specifying-uri-transports
> [2] http://tools.ietf.org/html/draft-gurbani-sip-sipsec
>
> - -- 
> Marc Petit-Huguenin
> Personal email: marc@petit-huguenin.org
> Professional email: petithug@acm.org
> Blog: http://blog.marc.petit-huguenin.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (GNU/Linux)
>
> iEYEARECAAYFAk6tboMACgkQ9RoMZyVa61eTTACgoDKJ5LQ1KFwFH1Epnc2x/iH4
> x90AoJ+ogURbCcw682se9lj+luF1gQgs
> =MfbQ
> -----END PGP SIGNATURE-----
>