Re: [Lake] Error message => Discontinue #208

Marco Tiloca <marco.tiloca@ri.se> Mon, 24 January 2022 15:57 UTC

Return-Path: <marco.tiloca@ri.se>
X-Original-To: lake@ietfa.amsl.com
Delivered-To: lake@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 950693A0F0F for <lake@ietfa.amsl.com>; Mon, 24 Jan 2022 07:57:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.814
X-Spam-Level:
X-Spam-Status: No, score=-2.814 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.714, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ri.se
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 cWg6nzkAp0ly for <lake@ietfa.amsl.com>; Mon, 24 Jan 2022 07:57:19 -0800 (PST)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2060.outbound.protection.outlook.com [40.107.22.60]) (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 706643A0C0C for <lake@ietf.org>; Mon, 24 Jan 2022 07:57:19 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KFa/Ng6L90TA2mgCwMYMKpN1o/K6OTfMJjt2TMJgiw1s9CL9XirtJH4rTgOfDvqsS2juAdaopGzdz5gN1yTOCR3yb0dQH0TKTb8bd7sjfyouq9qUy5O6+JJPDE4RHi4aUL+MOH0eSQvx9At0rW2B4iu+FxV8RL9wsDIkTKfr5WiNiPXrTz0byP4Pt1tqVtqqrtET4azVLaFq8d3qK8WashFFvzsA2OD06a8h9+MNq7UaSpISfAlNrLjp4+LYCzItVIunA+Yj1QrX+60xzsmElvKxY/DNxY70i92INVHjFhzlU0FV9uBKwgqeZWBdZFi3Gse8He4YZCcAcYOxQIPEdw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9AYFAmstXtsavTpDiUvn5fCNem5dgV0AJo3+rv0S+J8=; b=Uxq8ZbG25Q8Z423wY6GqEpwjnBLP4W63EDnPWpLJ8kCQtPCfSYML5jvHGwJwxNY6y4apMO6pkalUqrbB07yoW1z6haGi/myW4yBd2KHnBMhxm+d4nTh/nCRfITTRQJYJbMFlp39k3Lcj8FAYQXF7NvWu/hUFTsynxQICVobC9B+Qx6Qgp18vHZ84hGxW8bHYdcxbmMTjrsmjuOWGzswJ6DkqfM4Hw6rvqBXMVPhhU4Tmh4BMzDGlqUjYX4cVQk5e55XbZl5DsyRpjnwBoFehJYHtF54p6mKEzVdIU75kV28TIKMD3AgwZY1+vIqBJ3QX6ZqlYDfgOEoNLmbrIKf+DQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ri.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9AYFAmstXtsavTpDiUvn5fCNem5dgV0AJo3+rv0S+J8=; b=UgAd8WQnJJOxX0gnVJkRQPFTcXZByDZgeeg+tCCLg0DNQyphi4E1AAtlFhBo+/6jXky7c6tug6ibtPUW2fnLbP+hL0t5Y0E9viQsD6vuxQmC6e3+YA3305m5DCjm5xLc7Itpj2UL/dhGTSLWeLiUir1w7L4+a6OikB33g6WCSPA=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ri.se;
Received: from DB8P189MB1032.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:16e::14) by DB8P189MB0764.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:122::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Mon, 24 Jan 2022 15:57:16 +0000
Received: from DB8P189MB1032.EURP189.PROD.OUTLOOK.COM ([fe80::6800:bc0b:ccc:3a69]) by DB8P189MB1032.EURP189.PROD.OUTLOOK.COM ([fe80::6800:bc0b:ccc:3a69%5]) with mapi id 15.20.4909.017; Mon, 24 Jan 2022 15:57:16 +0000
Message-ID: <b7ffe052-58ab-0c2e-e84c-d94ed447e3e5@ri.se>
Date: Mon, 24 Jan 2022 16:57:13 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0
Content-Language: en-US
To: John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org>, "lake@ietf.org" <lake@ietf.org>
References: <HE1PR0701MB3050FC92A1A6983ABF6C9EA6895E9@HE1PR0701MB3050.eurprd07.prod.outlook.com>
From: Marco Tiloca <marco.tiloca@ri.se>
In-Reply-To: <HE1PR0701MB3050FC92A1A6983ABF6C9EA6895E9@HE1PR0701MB3050.eurprd07.prod.outlook.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------TelGIIPrBeopy9nf8ufRzSJE"
X-ClientProxiedBy: GV3P280CA0055.SWEP280.PROD.OUTLOOK.COM (2603:10a6:150:9::27) To DB8P189MB1032.EURP189.PROD.OUTLOOK.COM (2603:10a6:10:16e::14)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: b7628e10-bab2-4c0d-0d8e-08d9df5231a2
X-MS-TrafficTypeDiagnostic: DB8P189MB0764:EE_
X-Microsoft-Antispam-PRVS: <DB8P189MB0764636494B3322AD306087C995E9@DB8P189MB0764.EURP189.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: V++4F2c5AI0OJY1XS7SEbTMNdicKpAFk0jnKtqfJPAwyMj/45AH7VFOFLY1ghLUSmOlXy4TwwJYAH12xy6wXJYs8mTPievM/gkDFUDykWSu3OB263SrRL3qyPiDRTVk0Yu67iVXMOEaI3q/JQ2uiLCIFEZ/4fBdU0zoR/RnM/HFbW53SB+MfhZkSjMKZcFhzRF4hzzaxMYxV3l3C75t4BEb4QQIcu1wX69UYVolwvysKlDMh/x8Nqfa1o3ul0oarIQefrFJMSzHKdsPgcEQwidH7fTQ+K7N3dN9ZBj4rP6eK7maoXB97zkdpl3w1fOiKORAjN1/DKt2RA32fAr2noBn2YvvDn1i0cuZE1d+MwRz8KvKvb+uCJzmvONUF3PE1i/zn+2q58wx30cczJllBxTkBEM+5Ot7lAk5oYtQG62A5civI12VUul2J6toEShvWfNKEhYpBbg0UTJHkNcznMWXV/Q68D6NGM1lp17R7INoCsYVpO7KSjNE3h4JjjjaPOuvcC+LFO0pMjc98XkSemcWcCZQOvK4vSdkjBSQ9FR38REBiEz4EVbCfkDvos8/CxA1rAqMOHTMlp7zN48smhOT9A2SkKggLAoZMvuDS1NwYdeXxry06ORwh6hLAqjrvO1ojJlSZfThTm627wG4cZRDUCTrbRYvg22OOBIz+cAG+sLiHlvDwBDpmfMTya0pu82kVElSo9dh9+SYzK88JfkhqIU4fILIdZc5PuQJx8l8/CEp6wbwFD769J6igQsqqm4McquQU6u2AwjPBrh6aKRkLNF0xzFlIUMXx1yxgMmICwlkLGyvNLINHenCP0HAP
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB8P189MB1032.EURP189.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(366004)(2616005)(6512007)(316002)(166002)(15650500001)(83380400001)(31696002)(6506007)(53546011)(31686004)(6486002)(2906002)(110136005)(508600001)(44832011)(66574015)(186003)(33964004)(6666004)(38100700002)(5660300002)(966005)(26005)(66556008)(45080400002)(21480400003)(8676002)(66476007)(66946007)(235185007)(36756003)(8936002)(86362001)(45980500001)(43740500002); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: 9Gsjsy1NT605g4V6gmuQiDJ8Dgf/rQ1jmKtTPS70ZsjQ/2X5ocz1BtucGGJuVD/8S0OgDJPfiU7Z2PApMc+kpDLtbLa2zQnVvqaP4+A6K90XtnIc3F4Z19n9yE+CFHyGDuyNR8WtGtksqvt5GHN7cK8mV3fPqyc2vpRonjEkDOZbmhPKXPZGff8gGv+Vn6tQTOS2F4DM1DOIAps0TYPACKjGH/n9oW3o66y5sjnGm2SKTZ0NBvbl/22iOoNynGxTx1gs45powbZztNRXvhhJWFzTmZgFm3dbnuXtKZ3dsZZ9pWtuArIGjR6ZBk2Tgdws9YSrjtCw5WlLNqEoe7TL6UFzIyByp+MajGuYxCbFv/ew6F6xfm8Lf1z0sjw1v/0JEI4NvVH70ccHDbP8G1serz6QejBljllFOkj6FSOKj8ul3EmeKCWbgW4lolaEHLDUN4WLY5FjBK7frlqhzxezwpTHFKSypD37LmqxQVSSirTRLaaRJyvZcLXXFrQ6rNX0sHiuFiHXFE2/Kw8t+B+9gO9WYF3tD8iSFUN5Jccv+KyxNdqYG9qTPSZ6lDuFO56SOlml4yYovN63c5Z6ECV+mdzm2bRjlRRzEpc/1zg3wKQxvA6hCrmzHkhuOxBe3Wk7ylCZ2ASGNoyYCDIXtHZfe55ptWbfciVWgMh6ZIYIJr89tg6NN+AAO2xC8vSbn8poqKRtNASUiC3eLh+xzat6hMe7BhAXHn2BKGrxp8wSJnyOvad0ddW45Po0FSKgJNodIxbhL874JWc/rFqqwEuLL4r2Kx+F7C/43RIwiUKQP9uCYJGPkFUcL6pBaasFOgGvT61fOydS5BWP+ePa6k62SulWA8C0ENOFrnjQFlW7hi1ixK9T0tABoXTxeMRnSdVE4ocL5QRJvDWjIoprsdATTf94b22AHOD0vsqpz5eYxJXtEHxQqam4cwoleU35/uIBl3yerx679rjhMrAkx5CXsve6oZe076It322BSoxJe6nCHYBzky3G7wd7hpwze12eiV1z7RKbQMTfc+jlZskCXSWZKwe/Li/tVprhTwKZfl7vagxmVIIa/YB4QDHfkO51I7D6kg6jPFkVEotkJ6BcFxY+HRNxNRFdVwPU9Zled+sj4Ps4SIF/UvSRzk1xluBuoCPTXuy2HSv08eKCyA5AOVfyYuMrzz7tpIy4zdQHUIbir6pcVPAo/cj9aaacc1NCvUQ5J7l4T/T13hGwdo0xKEmq5ysNds+YOaKqegaYN6OBcghX9WlmaW1Hcqv1ChXe6tPAeqX0X4t3AntkbEh8jn78//VLOO07CJASNW4iQQQraDkVvg+DKxayFV/KkO2zU642PO4DNQ4aP5w5gWgN8r6k5JC0SqH4nMd0gqGk2T+jm5zo19p5wujEw/A0608VDeJr1nRFJUEbqjyE6d2ZdLT7ZQAdOU5TCu4vUemSPFuE11KYU5liMa9WqMpPCfF5h0Ex+72crHJJ+nedYxlOQdSGD67CLDmEFLG0RBhfWElI6AME+yZtnK2FVAfaoS/SUr51ls0b9pyyZKOl0vceW1uiW1czJMbXFBJmXmQen+iRKl5beETLq3ANFfrsgXsp8j7l4amR8maAkA6hUN8yToO+i/ZK5y8PBOidk0a438Y=
X-OriginatorOrg: ri.se
X-MS-Exchange-CrossTenant-Network-Message-Id: b7628e10-bab2-4c0d-0d8e-08d9df5231a2
X-MS-Exchange-CrossTenant-AuthSource: DB8P189MB1032.EURP189.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2022 15:57:16.5151 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5a9809cf-0bcb-413a-838a-09ecc40cc9e8
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: rb3u6vZyTTX1IHewYrcGHujfidxkjGXsOm33HDQx2yuQzl4A07xZwwDzmnTdW1/WLNJddD10QdJxT2YfSlsitQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8P189MB0764
Archived-At: <https://mailarchive.ietf.org/arch/msg/lake/C8s2WyZH52TQ5QoZAPdgUFpsAq0>
Subject: Re: [Lake] Error message => Discontinue #208
X-BeenThere: lake@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Lightweight Authenticated Key Exchange <lake.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lake>, <mailto:lake-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lake/>
List-Post: <mailto:lake@ietf.org>
List-Help: <mailto:lake-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lake>, <mailto:lake-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Jan 2022 15:57:25 -0000

Hi John,

I think it's good to have something like in your second proposal and 
without "Unspecified" (as you say, the error is specified in the text 
string), that is:

1 | tstr | Sender error
2 | tstr | Receiver error

Without bothering about which among client and server exactly has the 
Initiator or Responder role in the EDHOC session, the above can be read as:

1 --> "something wrong done by the sender of the message that resulted 
in this error message"

2 --> "something locally wrong happened at the receiver of the message 
that resulted in this error message"

The mapping with high-level classes from CoAP/HTTP would be limited to 
responses only, and for CoAP it was basically sketched in Appendix A.3.1:

"In particular, it is RECOMMENDED that such error responses have 
response code either 4.00 (Bad Request) in case of client error (e.g., 
due to a malformed EDHOC message), or 5.00 (Internal Server Error) in 
case of server error (e.g., due to failure in deriving EDHOC key material)."

This can be expanded to highlight the use of 4.00 responses for ERR_CODE 
1 (Sender error) and the use of 5.00 responses for ERR_CODE 2 (Receiver 
error).

Best,
/Marco

On 2022-01-24 13:08, John Mattsson wrote:
>
> Hi,
>
> Issue #208 was opened based on two different review comments from
>
> Marco and Sean on different aspects of error messages.
>
> I have tried to address Marco's and Sean's comments in PR #234
>
> https://github.com/lake-wg/edhoc/pull/234
>
> While working on this I noticed than one cause for Marcos comment might be
>
> that EDHOC only talkes about what HTTP and CoAP calls "client error",
>
> i.e., there was something wrong in the received message.
>
> HTTP and CoAP defines errrors into two classes "client error" (there 
> is something
>
> wrong with you) and "server error" (there is something wrong with me).
>
> EDHOC does currently not follow this design and only has a single error
>
> 1 | tstr | Unspecified
>
> Should EDHOC instead have have something like?
>
> 1 | tstr | Unspecified Initiator error
>
> 2 | tstr | Unspecified Responder error
>
> or
>
> 1 | tstr | Unspecified Sender error
>
> 2 | tstr | Unspecified Reciever error
>
> The choice would likely be whatever is easiest for an implementation.
>
> I think we should discuss this. This type of high level classes was 
> not discussed before. We only discussed what kind of detailed errors 
> we should standardized and agreed on none.
>
> Also is "Unspecified" a good name? The intention is that it is 
> specified in the tstr.
>
> Cheers,
>
> John
>
>

-- 
Marco Tiloca
Ph.D., Senior Researcher

Division: Digital System
Department: Computer Science
Unit: Cybersecurity

RISE Research Institutes of Sweden
https://www.ri.se

Phone: +46 (0)70 60 46 501
Isafjordsgatan 22 / Kistagången 16
SE-164 40 Kista (Sweden)