Re: [secdir] [Ace] Secdir last call review of draft-ietf-ace-coap-est-15

"Panos Kampanakis (pkampana)" <pkampana@cisco.com> Wed, 16 October 2019 15:06 UTC

Return-Path: <pkampana@cisco.com>
X-Original-To: secdir@ietfa.amsl.com
Delivered-To: secdir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60F63120074; Wed, 16 Oct 2019 08:06:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=XEZ5sZk8; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=pcgvqaj8
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 J2xkr2kZnveZ; Wed, 16 Oct 2019 08:06:14 -0700 (PDT)
Received: from alln-iport-8.cisco.com (alln-iport-8.cisco.com [173.37.142.95]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7785012002E; Wed, 16 Oct 2019 08:06:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=6840; q=dns/txt; s=iport; t=1571238365; x=1572447965; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=JzgZq/ItXyxQMIlmDR8vV8WdeKFR2R0nH1Sjt8ZAk6Y=; b=XEZ5sZk8Ef/WRrJ3aUD5UdnZRcHmwoPjLg8EZ+2re9Cg21Y8mihdS52O 9xhkZCyKvBRkk5xd1T06s7+VyyEunK3DNoDrY/GI+zd2xvCoF2QxYL5c3 MF+XYaGtEyh2jeXhvBiqpHRR/8alaezx9o2gA8fzsj62AEIfhGu/NaeUd U=;
IronPort-PHdr: 9a23:SzL0DhJygCABLyj3N9mcpTVXNCE6p7X5OBIU4ZM7irVIN76u5InmIFeBvKd2lFGcW4Ld5roEkOfQv636EU04qZea+DFnEtRXUgMdz8AfngguGsmAXFX4JfvyZiozNM9DT1RiuXq8NBsdFQ==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0B/AABnMadd/4QNJK1dCRkBAQEBAQEBAQEBAQEBAQEBAREBAQEBAQEBAQEBAYF7gUtQBWxXIAQLKgqHYgOKUIJcl36BQoEQA1QJAQEBDAEBGA0IAgEBhEACgnskOBMCAwkBAQQBAQECAQUEbYUtDIVLAQEBAQMBARAoBgEBKgIIAwELBAIBCBEEAQEfECcLHQgCBAENBQgagwGCRgMuAQIMoz0CgTiIYYIngn0BAQWBNAGDVhiCFwMGgTSKS4EmHRiBQD+BEUaCHi4+gmEBAYEuAQgKAQkEFIM+giyMaaBoCoIihwqOLII6h0+NWoFfjjCBP4ZlkRgCBAIEBQIOAQEFgWkiLDtxcBU7gmxQEBSBT4NzhRSFP3QKNWqNTw0XB4EEAYEiAQE
X-IronPort-AV: E=Sophos;i="5.67,304,1566864000"; d="scan'208";a="351416068"
Received: from alln-core-10.cisco.com ([173.36.13.132]) by alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 16 Oct 2019 15:06:04 +0000
Received: from XCH-RCD-006.cisco.com (xch-rcd-006.cisco.com [173.37.102.16]) by alln-core-10.cisco.com (8.15.2/8.15.2) with ESMTPS id x9GF64Yi027823 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 16 Oct 2019 15:06:04 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-RCD-006.cisco.com (173.37.102.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 16 Oct 2019 10:06:03 -0500
Received: from xhs-aln-002.cisco.com (173.37.135.119) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 16 Oct 2019 10:06:02 -0500
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 16 Oct 2019 10:06:02 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AgqBhqTC6nQ9gpefnni4FxkxVZyJ1hkL5xtiJhBP048s67bBupGKwgpF2KOr8vY5lP6U7NnxcBrKJHHT7D7S4jqd2xJqqPqVW3gR4rU46Uk2Mbo5+0bPN7SR5FuiM6dpXZjV6VEercDNdHZpmhwIcc80rKOp7V7BZ68AZg2z2lItj3I3dCzRQtATAUzSRpfh/YlNpR32gD5lB4qYaUjFxPnYjh88BEuWAYM/0qk6hv2odUMgerUmX8OVJmC1nPimTUhiF/jCXK7MnUutON5h2qbPtqdgmk4Y1HXqF7SHKAKh3E2msB8hKDQzbofoeX+ftUPNi6cMSAB3C1bQmyJx8g==
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-SenderADCheck; bh=OpSZITP6jvKb24mQXvrKbDZs3jL4A8+zp4q/Hlnj0us=; b=dmbyUws3eU7OVi0BkGvGhxeRN2SK+DlkezvbMN9ESwfVywglygT2c3jHqzC9IRyKGl2NsNavPDDPGKMBlv2ekIlwZPzooGPh0bIZxkNae/+nNig011BBzx752Zp6BG9Kc6+ATHPx6neTq1qjBMNX9V/t0zlzcWfWZLS4UTV834umndqLKWipYMz3QyuLHfhAlTqrKVRHJNJjRUlH2FibiYj5+EcYdjl3eUKcLNlWGcMjZjXpDmcMj7WVP/0wSqZN8t4FmR7TEOijTdF2mgW6V6TH7tWg6/uBlnj7JUrpWlznnp80bF/jY8gdjQXXCNNgO/XHxDGvheY0uw6cHSSiQA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OpSZITP6jvKb24mQXvrKbDZs3jL4A8+zp4q/Hlnj0us=; b=pcgvqaj8Ym6VE2hHYm+21y+k16SP0+z8eeXw1fPH+hcEj6NrjbJiAEbHxeDq0Es4SnxferUOZxjlMzAid9m0gUTw4hOnOyXiYViskPD3wlCOujSSj0hi7yclo9/GZKUdNdAzTEAi4Al5Ch4F3qr1vOYekwBNoNFUOwx75QTilAs=
Received: from BN7PR11MB2547.namprd11.prod.outlook.com (52.135.255.146) by BN7PR11MB2707.namprd11.prod.outlook.com (52.135.245.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.18; Wed, 16 Oct 2019 15:06:01 +0000
Received: from BN7PR11MB2547.namprd11.prod.outlook.com ([fe80::5082:c814:2836:9e2a]) by BN7PR11MB2547.namprd11.prod.outlook.com ([fe80::5082:c814:2836:9e2a%7]) with mapi id 15.20.2347.023; Wed, 16 Oct 2019 15:06:01 +0000
From: "Panos Kampanakis (pkampana)" <pkampana@cisco.com>
To: Yaron Sheffer <yaronf.ietf@gmail.com>, "secdir@ietf.org" <secdir@ietf.org>
CC: "draft-ietf-ace-coap-est.all@ietf.org" <draft-ietf-ace-coap-est.all@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>, "ace@ietf.org" <ace@ietf.org>
Thread-Topic: [Ace] Secdir last call review of draft-ietf-ace-coap-est-15
Thread-Index: AQHVgcaC5NivFu6vxkuLEqSa/tiqS6ddYSVA
Date: Wed, 16 Oct 2019 15:06:01 +0000
Message-ID: <BN7PR11MB2547FDB1F0D64569496CEDAAC9920@BN7PR11MB2547.namprd11.prod.outlook.com>
References: <157097172245.20767.1326966836276837764@ietfa.amsl.com>
In-Reply-To: <157097172245.20767.1326966836276837764@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=pkampana@cisco.com;
x-originating-ip: [64.102.57.123]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 87a6c454-5671-4a52-f94e-08d7524a5bd5
x-ms-traffictypediagnostic: BN7PR11MB2707:
x-ms-exchange-purlcount: 3
x-microsoft-antispam-prvs: <BN7PR11MB2707DBC8D55EC09FA945500DC9920@BN7PR11MB2707.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0192E812EC
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(4636009)(376002)(366004)(396003)(39860400002)(136003)(346002)(52084003)(13464003)(199004)(189003)(86362001)(76116006)(186003)(446003)(66446008)(66066001)(66946007)(11346002)(74316002)(71190400001)(71200400001)(66476007)(7736002)(8676002)(81166006)(8936002)(476003)(81156014)(486006)(102836004)(26005)(2906002)(33656002)(64756008)(66556008)(305945005)(54906003)(110136005)(99286004)(316002)(53546011)(76176011)(6116002)(3846002)(478600001)(14454004)(6506007)(256004)(7696005)(14444005)(5660300002)(2501003)(229853002)(9686003)(25786009)(6306002)(55016002)(52536014)(4326008)(6436002)(966005)(6246003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR11MB2707; H:BN7PR11MB2547.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: fQTyIKKry5j9v9V0ssNjC3iQxs8FT9/oIuwQXJbYLwQ9rHd8jmnAZq8E2K07mowzmuyj79A55ULRJSZrQjTJrS24rer6IqbpP/3c6EsKkq0j2kX0EC0SuB2H2nNb7Md6+X/9PiBZs/kccyqm0nTAef8Oin4Y3Y96c5r99USd2YAnN3y502nq9DyuVofgeV3Wfl4nkczk9oxHEKBOS7/rtKu/zl9vKe3plGFbk+IHhZ5hTX9PmPIHz5AWdTlPxzt026O57LzbvlaAZdIZyM61Evhtroj2jj3NR+d34WlrLhyMo2aK27d0RtrIu2SMKuMHSBpqZI4otB4pWmTKB0cDdFaydZebSRISMoTfXxVXxjYgKYBYETTSgFQmBCoLl5WaLz1qUORcFAogRMu9n6OfefSUKHp34XnRhEZs/ZzKk9AUMJ3M0swusUWNVqA3JgSJrX5De+lFXlEQEO3s/nSSuA==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 87a6c454-5671-4a52-f94e-08d7524a5bd5
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Oct 2019 15:06:01.5832 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: CaereYFx9fKola1c4biBt4CVHaZnvdhsNQM2b59WXAq8Peh5p+4KugvcJ4goh5pgpCIqdEi71wVMgIsVNXNQng==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR11MB2707
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.16, xch-rcd-006.cisco.com
X-Outbound-Node: alln-core-10.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdir/TgFuElBDwY2U1cmLmrg4aRS6LHI>
Subject: Re: [secdir] [Ace] Secdir last call review of draft-ietf-ace-coap-est-15
X-BeenThere: secdir@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Security Area Directorate <secdir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdir>, <mailto:secdir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdir/>
List-Post: <mailto:secdir@ietf.org>
List-Help: <mailto:secdir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdir>, <mailto:secdir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Oct 2019 15:06:19 -0000

Hi Yaron,

Thank you for the thorough review and feedback. 

To make sure I don't miss any of your comments over an email thread, I track all your feedback in git issue 152 https://github.com/SanKumar2015/EST-coaps/issues/152 There I tried to address all your comments and question and clarify some points. 

I also pushed minor changes to fix a few of the issues you brought up. The diff of the changes pushed is here https://github.com/SanKumar2015/EST-coaps/commit/86d785f2122596f28674fe8e403d30467c98abfb 

Please review the git issue and let us know if there are pending concerns. Otherwise I am planning to reupload a new iteration next week. 

Rgs, 
Panos



-----Original Message-----
From: Ace <ace-bounces@ietf.org> On Behalf Of Yaron Sheffer via Datatracker
Sent: Sunday, October 13, 2019 9:02 AM
To: secdir@ietf.org
Cc: draft-ietf-ace-coap-est.all@ietf.org; ietf@ietf.org; ace@ietf.org
Subject: [Ace] Secdir last call review of draft-ietf-ace-coap-est-15

Reviewer: Yaron Sheffer
Review result: Has Issues

This document defines a new profile for EST (simple certificate enrollment) for restricted devices, to be run on top of CoAP and DTLS, instead of the usual HTTP and TLS.

Overall, I tend to be suspicious of "restricted" profiles, and this is a case in point. An implementation of DTLS is no simpler than TLS and most would probably support both protocols. And basically anything supports HTTP. So why would it make sense to define a whole new profile just to avoid using TCP very rarely (say, for daily certificate enrollment), when this profile even needs to include its own fragmentation/buffering mechanisms because the ASN.1 payloads are too long? In other words, we are introducing new and additional complexity with little or no performance gain.

- 2. Only certificate-based client authentication is supported. Hopefully some time soon we'll be able to use PAKE here, to bootstrap the PKI.

- 4. "Crypto agility is important" - this statement is somewhat meaningless: do we require more than one cipher suite, which would ensure some level of agility?

- Also, when we say "Sec. 4.4 of RFC 7925" do we mean *only* Sec. 4.4 or also the subsections: 4.4.1 etc.

- "in DTLS 1.3 the Supported Elliptic Curves extension has been renamed to Supported Groups". This is probably true for an older version of the draft, I couldn't find anything to support it in -32.

- "the Finished message must be computed" - this whole paragraph is unclear.
Are we changing the Finished/MAC computation in DTLS (if so, this must be pointed out very clearly)? Or are we explaining a point about channel binding (if we are, this doesn't come across).

- Similarly for the following paragraph: is this a performance  optimization, or a change to DTLS? And by the way, why are standard session resumption mechanisms not used?

- I don't see value in the short EST URI paths given that most of the "weight"
is in ASN.1 data, and the paths are negligible in comparison. Moreover, if the paths are different, shouldn't this document formally UPDATE RFC 7030? I think it is no longer a profile.

- Non-default server port: the examples include an IPv6 address in addition to the port number. Is there a way to use relative URIs (omitting the IP address) but include a port number? The server may not know its own IP address (IPv4 with NAT) or the address may be dynamic.

- The server MUST support the default /.well-known/est root resource, but then
in the next sentence     we discuss non-default URIs. In the case of the server
having multiple "identities" (the main purpose of the "arbitrary label", AFAIU), the root resource is confusing - which identity is it associated with?
And then how is discovery managed for each identity, and is there a way to discover the identities?

- There is nowhere in this document a full formal definition of content type
TBD287 (a single cert).

- Content type negotiation: I can see how it works for enrollment. But in the case of /cacerts, if the server has a list of certs in its explicit TA store (e.g. to support rollover), how can TBD287 (a single cert) make sense?

- It is mighty confusing to denote "content format" by "ct" (presumably, this stands for "content type").

- "ASN.1 encoded in binary format" - I think this should be, "DER-encoded ASN.1, in its native binary form".

- Please don't use "he" and "she" for the server and the client. Both are merely "it".

- "The Registrar MUST authenticate and optionally authorize the client requests" - this statement is too weak. The Registrar must also ensure that clients only send CSRs that pertain to their authenticated identity (channel binding), even when POP-linking is not used. I think this is worthy of its own subsection, describing the validation required for each particular EST flow.

- The following paragraph is not clear: is PoP-linking useful/recommended/mandated in this scenario? IMO there should be some 2119 word regarding server-side validation of the tls-unique.

- "Table 1 contains the URI mappings between EST-coaps and EST that the Registrar MUST adhere to." But the immediately preceding paragraph describes a case where a server-side generation on the EST-coaps side is mapped to client-side generation on the EST-HTTPS side, which is not a Table 1 mapping!

- "the encrypted CMS EnvelopedData blob MUST be converted at the Registrar" - can this be done without decrypting the blob, IOW must the Registrar be privy to the key wrapping key?

- The Registrar must support resource discovery: does it mean that resource discovery messages are simply proxied upstream, or that the Registrar presents a simpler resource structure (maybe with no discovery) to its clients while performing discovery upstream?

- Security Considerations: there's a long discussion about replacing the implicit TAs with explicit ones. If we (rightly) mandate that the client re-verify the server's cert after getting the /certs response, we are losing most of the minor performance gain that keeping the DTLS connection open might have given us. So why not unambiguously mandate the simpler "MUST close the connection after /certs" instead? Besides, /cacerts is a very rare operation.
Why optimise it at all?

- "Improper CSR requests" - what are they? What's the server supposed to do?
Please give a reference.

- A.3, response: I may be missing something, but the binary blob "3081...9fd9"
does not parse as PKCS#8 to me.

_______________________________________________
Ace mailing list
Ace@ietf.org
https://www.ietf.org/mailman/listinfo/ace