Re: [T2TRG] RESTful Design & Security

Carsten Bormann <cabo@tzi.org> Wed, 08 March 2017 09:59 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: t2trg@ietfa.amsl.com
Delivered-To: t2trg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3403012944F for <t2trg@ietfa.amsl.com>; Wed, 8 Mar 2017 01:59:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=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 VGpy9ZICFaSf for <t2trg@ietfa.amsl.com>; Wed, 8 Mar 2017 01:59:37 -0800 (PST)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7314812943F for <T2TRG@irtf.org>; Wed, 8 Mar 2017 01:59:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::b]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id v289xX0k013161; Wed, 8 Mar 2017 10:59:33 +0100 (CET)
Received: from eduroam-cart-clients-173.wlan.uni-bremen.de (eduroam-cart-clients-173.wlan.uni-bremen.de [134.102.145.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3vdTX55XtRzDJ2P; Wed, 8 Mar 2017 10:59:33 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <c15a387f-9dd3-987e-2901-b86fd8f60108@gmx.net>
Date: Wed, 08 Mar 2017 10:59:33 +0100
X-Mao-Original-Outgoing-Id: 510659973.046975-67c8683569ac0463f9f9ee0684521a3e
Content-Transfer-Encoding: quoted-printable
Message-Id: <90526DF1-4620-4C0B-AE5D-17543D54861D@tzi.org>
References: <c15a387f-9dd3-987e-2901-b86fd8f60108@gmx.net>
To: Hannes Tschofenig <hannes.tschofenig@gmx.net>
X-Mailer: Apple Mail (2.3259)
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/I4N91TzQ3pGQ23rZ94Wa6w_E_qE>
Cc: "t2trg@irtf.org" <T2TRG@irtf.org>
Subject: Re: [T2TRG] RESTful Design & Security
X-BeenThere: t2trg@irtf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "IRTF Thing-to-Thing \(T2T\) Research-Group-in-creation" <t2trg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/t2trg>, <mailto:t2trg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/t2trg/>
List-Post: <mailto:t2trg@irtf.org>
List-Help: <mailto:t2trg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/t2trg>, <mailto:t2trg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Wed, 08 Mar 2017 09:59:39 -0000

On 6 Mar 2017, at 17:59, Hannes Tschofenig <hannes.tschofenig@gmx.net> wrote:
> 
> From the web we know that TLS goes very well with RESTful designs.

HTTPS works well as long as your security is binary: You switch it off or you switch it on; there are no different security requirements for different applications.  With this restriction, you can encode “security=on” in the URI (here: by choosing a different URI scheme, which unfortunately has other side effects).  (The disadvantages of coloring all cases with the same brush are also well known in the Big Web; I’m not discussing this here.  EV certs are a weird way to try escaping this restriction, but aren’t generally applicable to REST applications.)

It is well understood that we currently don’t have a good way to associate more extensive security information with a URI when that is required.  This comes up again and again (say, https://github.com/core-wg/oscoap/issues/41).  Is augmenting the URI by other information as in link-format the right way to do this in a more general scope?  This is an interesting subject for discussion.

Grüße, Carsten