[core] Review of draft-hartke-core-stateless-01

John Mattsson <john.mattsson@ericsson.com> Wed, 10 October 2018 20:29 UTC

Return-Path: <john.mattsson@ericsson.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0598C12426A for <core@ietfa.amsl.com>; Wed, 10 Oct 2018 13:29:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.757
X-Spam-Level:
X-Spam-Status: No, score=-4.757 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.456, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=F0f6WN8o; dkim=pass (1024-bit key) header.d=ericsson.com header.b=dr/LzSpq
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 OLIIkSVRloa9 for <core@ietfa.amsl.com>; Wed, 10 Oct 2018 13:28:59 -0700 (PDT)
Received: from sessmg23.ericsson.net (sessmg23.ericsson.net [193.180.251.45]) (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 EF8071277C8 for <core@ietf.org>; Wed, 10 Oct 2018 13:28:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1539203336; x=1541795336; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NCnNHqG7JSIDpyYtRKzHVpgBtneCB+QeQlXHQZQl8jU=; b=F0f6WN8oZX72A0+xMxiDjVpDSXIjWgKvFvI5lqhx26t9ZcsElM/pGcAmP2dpRgtF ux+22CusKYaxh7RlFGUnKJ6oJFknjbMx8POSU8QFMgsSdHudM+4s0DEvFADWXP0+ DPhbLPwOJ140ev0hWcJyhYigwD6JG5Hbvl8b9npaVKA=;
X-AuditID: c1b4fb2d-fb3d09e000003a27-d3-5bbe61080158
Received: from ESESBMB502.ericsson.se (Unknown_Domain [153.88.183.115]) by sessmg23.ericsson.net (Symantec Mail Security) with SMTP id 01.4D.14887.8016EBB5; Wed, 10 Oct 2018 22:28:56 +0200 (CEST)
Received: from ESESBMB502.ericsson.se (153.88.183.169) by ESESBMB502.ericsson.se (153.88.183.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 10 Oct 2018 22:28:50 +0200
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB502.ericsson.se (153.88.183.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Wed, 10 Oct 2018 22:28:50 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NCnNHqG7JSIDpyYtRKzHVpgBtneCB+QeQlXHQZQl8jU=; b=dr/LzSpq9JLmKX8KU9+4LzGdg1YH0osgaVbmTAOSTTMmOtFWRT+Tho6xbPMTFKwJkUDoDq7od5BG8jjagTdVqZN2rToYpQyn1KvlDtsN/2t4wlqjNvvsnU9C890S08wNNkiLnXz7rXI37gyZr2bWwfBHs+WDFPAlPCDJVuYuxRI=
Received: from HE1PR07MB4169.eurprd07.prod.outlook.com (20.176.166.22) by HE1PR07MB1484.eurprd07.prod.outlook.com (10.169.122.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.10; Wed, 10 Oct 2018 20:28:49 +0000
Received: from HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::4426:8510:e19e:3ba2]) by HE1PR07MB4169.eurprd07.prod.outlook.com ([fe80::4426:8510:e19e:3ba2%6]) with mapi id 15.20.1228.020; Wed, 10 Oct 2018 20:28:49 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: "core@ietf.org" <core@ietf.org>
Thread-Topic: Review of draft-hartke-core-stateless-01
Thread-Index: AQHUYNfZsjBmLksMAEaMYb2ZC1oTXw==
Date: Wed, 10 Oct 2018 20:28:48 +0000
Message-ID: <8A91272A-2A90-443D-A9FD-973E5F77C273@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.11.0.180909
x-originating-ip: [82.214.46.143]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; HE1PR07MB1484; 6:a7h0B7aurih7jiELh5/er2cLSDVvCAr/F3UqO6EYpRR3erKnSo4449ShSqOyIA8J+sE9dlKgJRulgsA2ld3uhZqk0PqLiSAYFH2v2cZymcp05XAx2t25Wex6ai6KYT538hHT1EonbtpckxEHH1PthpGmV2UZOEUErmMER5nlDRsGkvC6n7fRUNcJZ/cm/so2EFOjbcZlOKn/5LijIJl2OBXnnmBGKdJlan/Jx3yLI/nBXHL6q87LrvmEiE/ZegdnVkKssrU1JHTT/NoDp4Zv3Iu2WxT2juns1pI1usRIdL5pBeOJxdhL9pbbitqyigNinlvPluvZx21jYuby0YAO/0TpBx+V5DSaaEfTdTgS3WV5yaUo0I9DpSqZH3cBiqyVV/CYmSSRtMla1anID0svPjn35QoXlaOMVx5vUZ1O5sFyhxCS2SzO8sIqvZa9onxVX7ygYdhii/Hkeh4V/MtM3g==; 5:z+vxAk7FFzAKcR3Rse5CB/HoLJswUqkmxM63FmwuFDXd2QmdT6BVjhS5dVCtOKnxHQbCUXUMU0W7xebENMCybwggejaNbb9ZdEam12KVc8ZRjTJiaRZ6ehsd7GVWHWEgnH6loomd4nUR0MD7aagpFr2UqSkP8AAdXbLgYK1RiuQ=; 7:shCkDjSjIdcFXS3Rv0OdBZxtfQjCkYnOY+Y2DTu3C1Ti6A8odooOYHHs+NKHYBlBj0x5SBdjXiV0pLYNQM3F2erH7MHtMUYkUhcIGnLtP09Xr8j9p+Fm1g3O52q2KKBqDI8yMjjYMrl3H2IDoKmfeCTSC//5HKhWwQjAdScE364On8Ze2UzKIMkTcNdDFw1YN+5cA2jTMY52bors//2jYsexwim+ALvBg+d2agOSGXEqRKKndh/Q2qgeEhQ4xHfB
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-correlation-id: bcdf8ac4-01ec-4f3d-695d-08d62eeefc5e
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR07MB1484;
x-ms-traffictypediagnostic: HE1PR07MB1484:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=john.mattsson@ericsson.com;
x-microsoft-antispam-prvs: <HE1PR07MB1484563DCAD9E6E98D6632B889E00@HE1PR07MB1484.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(278428928389397)(192374486261705);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(149066)(150057)(6041310)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991055); SRVR:HE1PR07MB1484; BCL:0; PCL:0; RULEID:; SRVR:HE1PR07MB1484;
x-forefront-prvs: 08213D42D3
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(136003)(396003)(376002)(346002)(199004)(189003)(81166006)(2351001)(68736007)(305945005)(58126008)(6916009)(26005)(1730700003)(81156014)(2906002)(6506007)(102836004)(33656002)(186003)(8676002)(82746002)(106356001)(105586002)(99286004)(316002)(5640700003)(8936002)(6436002)(53936002)(7736002)(14454004)(2900100001)(6512007)(478600001)(97736004)(5250100002)(6486002)(2501003)(6116002)(3846002)(5660300001)(256004)(25786009)(2616005)(486006)(36756003)(83716004)(14444005)(66066001)(476003)(71190400001)(71200400001)(86362001)(44832011); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB1484; H:HE1PR07MB4169.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: ugDVdZZ7eygaZX2RR8+94yU52xRn4w0OQ8/k7B4LNJVGusB6RC3emV70RpOZoSNhDXgd51BSyvt21RGIdJFmYCSkrI8g3JaPeHyViXms85Dbj85Zm6dWdXAK1ZMuDJ0fwM0rttJI3t/mn/XZDVZIBHq5WgRxVlZdlCZuJfdsYSpXp7/KlJ+eUFdmF11DukVu+FdUQhSe8i1izwo8lFXdEfGEfl507rAShd7yyMuiZKcp9RlUdwci1sdWawGyyWRFh/ol/l64+13/1dxgDNxnfi6lQ0mGa0h6Z9nYSL8IdxZlrmYCh3qfrRcE+ggL99ON8+EEWi6bOXFPNR4S5g8BY8ZP3OiHLcuQ6/Zdjimw/y0=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <C8534D177476E34A878D9C354D2C098D@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: bcdf8ac4-01ec-4f3d-695d-08d62eeefc5e
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Oct 2018 20:28:48.8842 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1484
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42KZGbG9WJcjcV+0wZxpQhb73q5ndmD0WLLk J1MAYxSXTUpqTmZZapG+XQJXxpu+JWwFryQq5uxjb2CcIdHFyMkhIWAiMW3tEsYuRi4OIYGj jBIHLvUxQzjfGCW+vXzNBOEsYZLoOjQVzGERmMAs0XOhixUiM4VJom31f6gBjxglbh9czAoy mU3AQGLungY2EFtEQFli85nXjCC2sIChxOudd5gg4mYSf1e/g6rRk3jz+ClYnEVAVeLowi9g Nq+AvcSej8vYQWxGATGJ76fWgMWZBcQlbj2ZzwTxhYDEkj3nmSFsUYmXj/+B3SAqoC8x/0EH K0RcUeL0vhVQNbISl+Z3gx0tIbCPXeLXjUZ2iISuxIepU6GKfCUmtx9kgyg6zihx+O9zqCIt iWdfTrBCXBQr0do6HcjmAIpnSzT2sUGYPhJLL6dDVMtJrOp9yAIxZj+zxKNZ3SwQNTISS6dx TWA0mIXknVlAGWYBTYn1u/Qhwh4Sy5ZuY4OwFSWmdD9knwUOFUGJkzOfsCxgZF3FKFqcWlyc m25krJdalJlcXJyfp5eXWrKJEZg4Dm75rbuDcfVrx0OMAhyMSjy8luH7ooVYE8uKK3MPMUpw MCuJ8K6WBwrxpiRWVqUW5ccXleakFh9ilOZgURLn1Vu1J0pIID2xJDU7NbUgtQgmy8TBKdXA 2LCoMD7x+jw/IXf5NU0HZm1LXfe9h0OyrOe2xp1CnZ1a3xZ3fbmuril23quqJeP0defPdikp Zjkn/hkHWVWx2B9g2+j7n6+048y6BT6BPjdbDY14Zyf4TE1zCdnV8jr3S+vrw899t3oo1F3o bWu3NuE+116V07KRqZ7vteO6XetvL7n2UeakEktxRqKhFnNRcSIA4xYvaxgDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/ZjvDOqfqom_yzw8vkgwCiXUZ03c>
Subject: [core] Review of draft-hartke-core-stateless-01
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Oct 2018 20:29:01 -0000

This is very useful and well-written draft that is clearly ready for wg adoption.

I think the use by non-proxy clients need more analysis and guidance. Some comments:

- Should maybe mention that part of the state can be serialized, i.e. something between figure 1 and figure 2

- The mechanism (extended token) and the use case (stateless client) are very entangled. I think it would be good to separate them a little bit more. Some implementations may fit their state in 8 bytes. And maybe some future applications have other use cases for extended token.

- Section 3 talks about integrity protection and freshness. I think the draft also need to talk about replay. Without replay protection, an attacker can easily fool a client (or a proxy in a client role) that it sent more requests than it actually did. Receiving a response can change state or cause other side effects, and receiving several responses to a single request is therefore bad. I do not think this is a problem in the 6tisch use case with proxies, but it becomes a problem when the mechanism is used by non-proxy clients. And if the intermediaries works like firewalls shielding clients from outside traffic, it is a security consideration also for the proxy use case.

- The mechanism can be used to fill the available memory of a proxy, causing DoS, this should be mentioned in the security considerations. I think the draft should also say which Token lengths an implementation supporting this draft needs to support: 65804 bytes or something smaller? Up to the implementation?

- The TODO security considerations should talk about privacy and pervasive monitoring. When used by a proxy, the draft need to discuss that the mechanism may make information (like client IP) available on paths where the information was not available before. If used by a non-proxy client without encryption if can reveal a lot of privacy sensitive information that would otherwise be encrypted.

- I think the encryption requirement (MAY) is too weak. Is there a reason not to encrypt at the same time as integrity protection is done? The encryption requirements should maybe be different for proxy clients and non-proxy clients.

- I think the draft should give developers some recommendation regarding cryptographic algorithms.

Cheers,
John