Re: [tram] FW: New Version Notification for draft-reddy-tram-turn-third-party-authz-00.txt

Oleg Moskalenko <mom040267@gmail.com> Sun, 16 February 2014 05:00 UTC

Return-Path: <mom040267@gmail.com>
X-Original-To: tram@ietfa.amsl.com
Delivered-To: tram@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1B7101A0369 for <tram@ietfa.amsl.com>; Sat, 15 Feb 2014 21:00:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.749
X-Spam-Level:
X-Spam-Status: No, score=-1.749 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
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 wFgsZ8Vz6Zqz for <tram@ietfa.amsl.com>; Sat, 15 Feb 2014 21:00:46 -0800 (PST)
Received: from mail-pd0-x22f.google.com (mail-pd0-x22f.google.com [IPv6:2607:f8b0:400e:c02::22f]) by ietfa.amsl.com (Postfix) with ESMTP id 97D001A0364 for <tram@ietf.org>; Sat, 15 Feb 2014 21:00:46 -0800 (PST)
Received: by mail-pd0-f175.google.com with SMTP id w10so13539707pde.34 for <tram@ietf.org>; Sat, 15 Feb 2014 21:00:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wdjrISW0lDWZ6TkhhC+vM74gO+K2AyC8JerUpqw8ioU=; b=NQC4eJXCsZmZFP4qXFg+YcKW3pkpqbnVmsas4xgq8+0kcB9QvFBetvapRXODeU9QeC 1a2civQPhjA9YZ7oeQVDjL5JV0EXpZNgI+kU5EwG8kTa+t1MSUmBuC8pIEgWA6DxTnO4 BmFzcxbdmCbLrH+sTye7Ta2CuEtNov6uRL8rCex62lCJH4DsSovpfvLbpdTd452mFhRO CjFqzprllOjnC6dOZ30CCFCvNOfhewse9gzU62Frm6Ui0WlgnQgRftAljjrHBenf0ios C9j/Sci/Wh7GcCNZuH785GucctuvLn7xwBWU65xy8qgNB1Vanridvp6rYNNFb/uwbvC6 dMhw==
MIME-Version: 1.0
X-Received: by 10.68.227.4 with SMTP id rw4mr10664782pbc.3.1392526844591; Sat, 15 Feb 2014 21:00:44 -0800 (PST)
Received: by 10.68.147.131 with HTTP; Sat, 15 Feb 2014 21:00:44 -0800 (PST)
In-Reply-To: <913383AAA69FF945B8F946018B75898A242AE8E9@xmb-rcd-x10.cisco.com>
References: <913383AAA69FF945B8F946018B75898A242AE8E9@xmb-rcd-x10.cisco.com>
Date: Sat, 15 Feb 2014 21:00:44 -0800
Message-ID: <CALDtMrJVXh9L5OAfOhuNqesU6hzRmbaCKw=vtwje-3fVULOSLA@mail.gmail.com>
From: Oleg Moskalenko <mom040267@gmail.com>
To: "Tirumaleswar Reddy (tireddy)" <tireddy@cisco.com>
Content-Type: multipart/alternative; boundary="047d7b2e0903e9826204f27eeb1c"
Archived-At: http://mailarchive.ietf.org/arch/msg/tram/0cfm0NwGip4PDXyrkrILHnfSCtc
Cc: "tram@ietf.org" <tram@ietf.org>
Subject: Re: [tram] FW: New Version Notification for draft-reddy-tram-turn-third-party-authz-00.txt
X-BeenThere: tram@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Sun, 16 Feb 2014 05:00:49 -0000

Hi Tiru

I have some comments:

1) Section 4. Obtaining a Token Using OAuth, figure 4

I believe that the sequence of messages is incorrect. The TURN server most
probably will contact the Authorization server AFTER it gets the Allocate
request. But on the figure 4, it looks like it somehow can predict the
incoming request. The correct sequence must be, in the general case:

   Access Token Request (1) from client to Auth server
   Access Token + Session Key (2) from Auth server to client
   Allocate request from client to TURN server (3)
   Get Token from TURN Server to Auth server (4)
   Token metadata from Auth Server to TURN server (5)
   Allocate response from TURN server to the client (6)

The sequence shown on the figure 4 is possible only is the Auth Server and
TURN server are somehow closely integrated and that is unnecessary.

2) The document is saying that the client when communicating to the Auth
Server uses HTTP requests with JSON (REST API ?). May be it would be
helpful if the communication protocol between TURN server and Auth server
would be mentioned, too.

3) Section 7.2:

OAuth does not impose any limitation on the length of the access token but since
   STUN messages cannot exceed 548 bytes (Section 7.1 of [RFC5389]),
   access token length needs to be restricted to fit within the maximum
   STUN message size.

I am not sure that the STUN (Binding ?) max message size is relevant here
and worth mentioning at all - because this doc is about TURN, and the TURN
messages are often much larger than 548 bytes (especially when carrying the
video traffic). So I see no relevance of the 548 limit to the new
authentication standard. And that limitation of 548 bytes is applicable
only to the cases when we suspect that the path MTU is really really low
and that is an extremely rare case.

4) Are we sure that we want to limit the OAuth applicability only to the
long-term credentials mechanism ? I see no technical or philosophical
reasons why not to use it for short-term credentials mechanism, too. It
would be a more "symmetric" approach.

5) I'd put more definite wording how TURN server handles the token
lifetime. What happens in the middle of the TURN session, is the auth token
expires while the session is still active ? There may be two possible cases:

   - the token lifetime is applicable only to the session initiation
procedure. When the TURN session has been already established, it can go
indefinitely while the client is refreshing the session properly.

   - in second case when the token expires, the server rejects new requests
from the client (in the same TURN session) until the client sends the new
token data in re-authentication exchange.

I'd suggest the first case as an eisier case for the implementation.

Regards,
Oleg






On Fri, Feb 14, 2014 at 6:41 PM, Tirumaleswar Reddy (tireddy) <
tireddy@cisco.com> wrote:

> This document proposes the use of third party authorization using OAuth
> for TURN. Comments and suggestions are welcome.
>
> -Tiru
>
> -----Original Message-----
> From: internet-drafts@ietf.org [mailto:internet-drafts@ietf.org]
> Sent: Friday, February 14, 2014 1:59 PM
> To: Ram Mohan R (rmohanr); Prashanth Patil (praspati); Tirumaleswar Reddy
> (tireddy); Prashanth Patil (praspati); Justin Uberti; Justin Uberti;
> Tirumaleswar Reddy (tireddy); Ram Mohan R (rmohanr)
> Subject: New Version Notification for
> draft-reddy-tram-turn-third-party-authz-00.txt
>
>
> A new version of I-D, draft-reddy-tram-turn-third-party-authz-00.txt
> has been successfully submitted by Tirumaleswar Reddy and posted to the
> IETF repository.
>
> Name:           draft-reddy-tram-turn-third-party-authz
> Revision:       00
> Title:          TURN Extension for Third Party Authorization
> Document date:  2014-02-14
> Group:          Individual Submission
> Pages:          11
> URL:
> http://www.ietf.org/internet-drafts/draft-reddy-tram-turn-third-party-authz-00.txt
> Status:
> https://datatracker.ietf.org/doc/draft-reddy-tram-turn-third-party-authz/
> Htmlized:
> http://tools.ietf.org/html/draft-reddy-tram-turn-third-party-authz-00
>
>
> Abstract:
>    This document proposes the use of OAuth to obtain and validate
>    ephemeral tokens that can be used for TURN authentication.  The usage
>    of ephemeral tokens ensure that access to a TURN server can be
>    controlled even if the tokens are compromised, as is the case in
>    WebRTC where TURN credentials must be specified in Javascript.  It
>    also addresses the need for stronger authentication described in
>    [I-D.reddy-behave-turn-auth].
>
>
>
>
> Please note that it may take a couple of minutes from the time of
> submission until the htmlized version and diff are available at
> tools.ietf.org.
>
> The IETF Secretariat
>
> _______________________________________________
> tram mailing list
> tram@ietf.org
> https://www.ietf.org/mailman/listinfo/tram
>