Re: [core] CoAP - HTTP proxies
Esko Dijk <esko.dijk@iotconsultancy.nl> Tue, 17 November 2020 13:45 UTC
Return-Path: <esko.dijk@iotconsultancy.nl>
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 B1B3A3A130E for <core@ietfa.amsl.com>; Tue, 17 Nov 2020 05:45:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 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, 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=iotconsultancy.nl
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 cspUDEwzHQI0 for <core@ietfa.amsl.com>; Tue, 17 Nov 2020 05:45:52 -0800 (PST)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130104.outbound.protection.outlook.com [40.107.13.104]) (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 8BBF93A10B5 for <core@ietf.org>; Tue, 17 Nov 2020 05:45:50 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I2jBnq5vNy3QARPdFJPA6cOicJzAzroXlmzSLic0ep1rgINRzF5jfPFytFcK/mxVpnH/vqjPGKV+bXIiCqMtnsIAjd0cdcVW5ncGtvEhTKtw0okuXWfwWEmv/92YSUrdFBo5bmXpenVdZLZbb5u1yyBAjkHcAKeKqjfbf3czvp0jnEcIoNP7hnzTCK7F0AVZwCjcqWxntmw7dE81SwstBhcRAHxnJlwhpQQ4pTyc6wUOKs+aky+mmLAp0sCwnlw1w337JzpaZhA4/ihoJb64j8jtjOrHEs8XT/yqcAwPZhgf2TxQIyue1GIrx1bNanswr7suNpDHsPQxybxfWI3I5Q==
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=oesfxwstXF2/ut0lJv615LqwNwyi5uITmHvfRQXimUY=; b=ZR8hpM6pfSCDY3YPBRQhTAvNLqIW6Kw+MTe3Pv5LaPL/9OLUMEPiVnqUXU3shtFH4G7UqbudC3HKJP5htlG8nViyhksD1FU+Uowt+vGJrJeOIkUTKgkqipp/scV+lg0WKaHvLdNDSSNxN1L+7ybwzwEFDPJzZJ2nZ4K3Jm4Ts4w909tngk1QcszO7n6M7OzDkI5VGGCIgN5as1CinJdzYA9bA/eadPBAdW0eneVgUSdGxM0/tl9Zd0R1m0Rt3S6huNqNxsdewJvga/XiaRk5iLk5DVnEqzqs+eb0jbbZT7M6JRqP9Vh3VD3BOTNkySkKMbXodQhSix72nT9teG50CQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=iotconsultancy.nl; dmarc=pass action=none header.from=iotconsultancy.nl; dkim=pass header.d=iotconsultancy.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancy.nl; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oesfxwstXF2/ut0lJv615LqwNwyi5uITmHvfRQXimUY=; b=IsZ1qsVsVGlNYevzNzlpkJtJvQOxzcIzCOr6SIyA75ELWg9WxLTuWxnqkYR0jwwWtzctGIx1OBynuy7KGoRipoCRHhsWH3CwaTJ51Hu6HbfZczTSkAA1g30mj+KbjkBGnMIsGqWkEGwtkRVRfg0dIPhvFLzB/fOWTU2CdlstEJg=
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1d3::8) by AM8P190MB0996.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1c7::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.25; Tue, 17 Nov 2020 13:45:47 +0000
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa]) by AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa%5]) with mapi id 15.20.3564.028; Tue, 17 Nov 2020 13:45:47 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: "Turner, Randy" <Randy.Turner@landisgyr.com>, "core@ietf.org WG" <core@ietf.org>
Thread-Topic: CoAP - HTTP proxies
Thread-Index: Ada5CpldoJFysbEKQ4GMv/OUtyIXswD2iFXg
Date: Tue, 17 Nov 2020 13:45:47 +0000
Message-ID: <AM8P190MB0979E2F72757878CCFFBD2C0FDE20@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
References: <AM6PR0102MB3494682CA394C6212C00561F80E70@AM6PR0102MB3494.eurprd01.prod.exchangelabs.com>
In-Reply-To: <AM6PR0102MB3494682CA394C6212C00561F80E70@AM6PR0102MB3494.eurprd01.prod.exchangelabs.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_724d29b2-602f-4b77-ba15-b7b42511c7c5_ActionId=5f3fde0f-7e7a-4960-bcfa-c30f3a5935bd; MSIP_Label_724d29b2-602f-4b77-ba15-b7b42511c7c5_ContentBits=0; MSIP_Label_724d29b2-602f-4b77-ba15-b7b42511c7c5_Enabled=true; MSIP_Label_724d29b2-602f-4b77-ba15-b7b42511c7c5_Method=Standard; MSIP_Label_724d29b2-602f-4b77-ba15-b7b42511c7c5_Name=724d29b2-602f-4b77-ba15-b7b42511c7c5; MSIP_Label_724d29b2-602f-4b77-ba15-b7b42511c7c5_SetDate=2020-11-12T15:43:21Z; MSIP_Label_724d29b2-602f-4b77-ba15-b7b42511c7c5_SiteId=ee2cd48b-958f-4be4-9852-b8f104c001b9;
authentication-results: landisgyr.com; dkim=none (message not signed) header.d=none;landisgyr.com; dmarc=none action=none header.from=iotconsultancy.nl;
x-originating-ip: [2001:1c02:3103:f000:f468:4e0f:12c6:19f7]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: e123632b-5e0b-43f4-7401-08d88aff16c9
x-ms-traffictypediagnostic: AM8P190MB0996:
x-microsoft-antispam-prvs: <AM8P190MB09964D9E0669F5460E5176B7FDE20@AM8P190MB0996.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: qIg692bKSyiKQBQd9F2Gt4GPE/0ZqTIvbDfFNRWzoewsGANb6MOVHztPISv6AH77xV0aiybiUR30DIoV6TpnX/mJBychnBunth8hmimDXzAU6vmKVSiQhfhpZRLOPxLw7kshWdnlAZLE+D9KLFZ4C/FNG9naI5S/3OFse2WNq/gRA78ag3TP46vAvWI9ogEhCkcYBJ3O/btYsW2dUv9ey73V5at863oVfwlIzw3E3kim7xqaDkIuOcJ6IO5JX9nyP328MKWHap+pcS1j8QgVJPFl6PjcC0TINsbFXl5ybxpdBGPHHiAcDbKL3QmIOc6bwjsOtb/J9M24ltLTlkZY/6hAIjKf0cVkr36unvaY1XE=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8P190MB0979.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(136003)(376002)(366004)(346002)(396003)(39830400003)(5660300002)(71200400001)(166002)(55016002)(8936002)(8676002)(86362001)(9326002)(52536014)(83380400001)(9686003)(966005)(33656002)(7696005)(186003)(66556008)(66446008)(6506007)(53546011)(76116006)(66476007)(64756008)(66946007)(478600001)(316002)(44832011)(2906002)(110136005); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: tC6ocS9l5ORb++W03KExCmyUllFwXpAPv26r+UuyVtVw/hJZyM1XGM9bnczQ/Y8Tv9cH6ueFtjsxoNtO6hTDCPUrHRtwd6lvNOmiM8m6Bj8o8NrWsVUv4r4giO6tKuKVhG6ip0COxZVS2HWtLfq2oB8FWcIBuXzTV/Ut3QVUWO+7c3ynMESWLAmqjBgs0Wc84W8wmWMv8CHVFycU/NqOXacwcux//TLp628IMHFvW1WvzlSipnAgW6lxvkO0YutltKGgdE34VFUM7HX83dE31TBFjSuWGsFDYctAOt9ZrCJR7S5CDnOJuNy6/kRDLdRTSF4Z4mmdSO2wh7L/+S1z85Zt6QRrFKUN4LM/mhek7lSOfhkoMj8EDBuJLC0mvmaCYUitaYOo6KWYt+oT1apVZtv8RrUH4CKpqyJa2W/Z2eFmC6d8fid4XpL9dExseLyCrlpBdQUlupU7/Lv63+HPAMYaNqOiurNk3wV0D9IYr6/U7qK6AwekLL8E5qv7re7Dfv9fnTLyK3r1AzxIS25a1uJPxcvuGNV4uuYZDVjaop1eJhV3eOkhusheQ09JIVaZ7Pxw0mVh12YLisdw6HgiONWHW8Q6LMyyY+kRZP0Ipd3yKkEZaEqE0Ys06ShaiRMyxa6AX6WGHzKf3itHYR0lNc1f0CKYlv5DIYajQP8dvSB0O4KXQZEVf4sAUygo8vWyAZvpOt8/xn7XyjLfRc+Ndg==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_AM8P190MB0979E2F72757878CCFFBD2C0FDE20AM8P190MB0979EURP_"
MIME-Version: 1.0
X-OriginatorOrg: iotconsultancy.nl
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM8P190MB0979.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: e123632b-5e0b-43f4-7401-08d88aff16c9
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2020 13:45:47.5454 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 58bbf628-15d2-46bc-820b-863b6774d44b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: htZ9OimqZIhk6e9hX1Qe+2t2CDPsmX8MF2GkK09h8ECNKukXLcpvyxH82TJsK2Cd9Eh235Z9Dqnaz/mCUSlRrZGBPHpycZEJ7I5Z4lIotAg=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0996
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/3W-9zA5XYPE9tGlXEujiow-6DZg>
Subject: Re: [core] CoAP - HTTP proxies
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: Tue, 17 Nov 2020 13:45:55 -0000
Hello Randy, The Registrar described in Section 6 of draft-ace-coap-est is indeed doing some proxying, but it is a highly specific sort of proxy and certainly not generic: * It performs some content conversions to/from Base64 encoding * It performs dedicated URI path conversion as per Table 1 * It uses a certificate that is flagged as an ‘RA’ (Registration Authority) , both towards the HTTP EST server and towards the Coap clients. It would be unlikely, in terms of security, that the Registrar/proxy would proxy arbitrary application requests for others using such ‘authority’ credentials. * The TLS credentials that a generic proxy would use towards HTTP servers, might be some application/deployment specific credentials that have sufficient privileges to execute all intended proxied requests but not more than that. * … there may be more. But despite of this, generic proxy functions could be _added_ to above Registrar: * A forward-proxy request with a Proxy-Uri or Proxy-Scheme Option indicating ‘http(s)’ scheme can be easily identified and processed separately from above functions. * The proxy could use a different TLS (certificate) identity for performing these proxy requests, in HTTP client role. (So not use the RA-certificate in this case but switch to another identity more suitable for the given to-be-sent HTTP request.) * A reverse-proxy request could also be served from a dedicated resource. * e.g. a CoAP request to resource /ch/http/s.example.com/light is translated by the reverse-proxy into a http request http://s.example.com/light . The syntax here is borrowed from RFC 8075 which unfortunately only describes the HTTP->CoAP direction not vice versa! But the same mapping ideas can be applied. To do :) So for “1” proxy to do both, it will always need special-case code for EST-to-CoAP and it may also need to be configured with multiple (>=2) identities for security reasons. The ‘RA’ identity would be used only on the TLS connection towards HTTP-EST-Server, not for arbitrary proxied requests. If we would like a fully generic proxy to be used as the ‘Registrar’ in the CoAP domain , without doing the special translations, then the EST-to-CoAP draft would need some severe edits and rethinking, I guess. Best regards Esko IoTconsultancy.nl | Email/Teams: esko.dijk@iotconsultancy.nl From: core <core-bounces@ietf.org> On Behalf Of Turner, Randy Sent: Thursday, November 12, 2020 16:57 To: core@ietf.org WG <core@ietf.org> Subject: [core] CoAP - HTTP proxies HI All, RFC 7252 provides a good description regarding CoAP-to-HTTP proxy (forward, reverse) operation and other documents detail some guidelines for doing this in an actual deployment. In reading the EST-over-COAP(s) document, the text talks about a “registrar” (section 6) that performs proxy-like operations. However, section 6 refrains from mentioning anything regarding the proxy operation described in RFC 7252. Does this imply that if I want to deploy a generic CoAP-to-HTTP proxy between my constrained and non-constrained networks, AND I want to support an EST-over-CoAP registrar, that I actually need “2” proxies ? Or can I use my generic CoAP to HTTP proxy to solve both generic CoAP to HTTP proxy and EST-over-CoAP(s) registrar functions ? Understanding that if I want “1” proxy to do both, I may have to have special case code in my generic proxy to handle EST-over-COAP(s) specific behavior Thanks, Randy
- [core] CoAP - HTTP proxies Turner, Randy
- Re: [core] CoAP - HTTP proxies Esko Dijk