[core] Join-proxy information in the RD (Re: CoRE WG Virtual Interim 2022-09-14)

Carsten Bormann <cabo@tzi.org> Tue, 13 September 2022 15:33 UTC

Return-Path: <cabo@tzi.org>
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 A7162C159491 for <core@ietfa.amsl.com>; Tue, 13 Sep 2022 08:33:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level:
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z54eBoR2ObQC for <core@ietfa.amsl.com>; Tue, 13 Sep 2022 08:33:39 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7AF13C15948F for <core@ietf.org>; Tue, 13 Sep 2022 08:33:38 -0700 (PDT)
Received: from [192.168.217.124] (p5089abf5.dip0.t-ipconnect.de [80.137.171.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4MRnYW6snszDCbg; Tue, 13 Sep 2022 17:33:35 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <91614672-0629-f10f-9bcc-ad922d4045be@ri.se>
Date: Tue, 13 Sep 2022 17:33:35 +0200
Cc: "core@ietf.org WG (core@ietf.org)" <core@ietf.org>
X-Mao-Original-Outgoing-Id: 684776015.517719-079012a064eea7f93287641df85555da
Content-Transfer-Encoding: quoted-printable
Message-Id: <483507C3-9E25-4450-99D4-6FE7FA56266E@tzi.org>
References: <91614672-0629-f10f-9bcc-ad922d4045be@ri.se>
To: Marco Tiloca <marco.tiloca=40ri.se@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/GdjbU60kMFVsa1eRKtHPVc85rN8>
Subject: [core] Join-proxy information in the RD (Re: CoRE WG Virtual Interim 2022-09-14)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
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, 13 Sep 2022 15:33:43 -0000

> On 2022-09-08, at 16:06, Marco Tiloca <marco.tiloca=40ri.se@dmarc.ietf.org> wrote:
> 
> Please go to the notes [3] and add topics you would like to discuss to the agenda.

I added the below.

This is a question that is somewhat trivial in nature, but for which we haven’t really found a satisfactory answer yet.
We don’t want to be the ones that are holding up the join proxy document, so it would be good if we could agree we will tolerate this small amount of architecture-bending or if we could find a non-bending way to indicate this information in the RD (and /.well-known/core in general).

Grüße, Carsten


### Resource Directory: Use for non-resource discovery

draft-ietf-anima-constrained-join-proxy registers two new rt= values, brski.jp and brski.rjp.
The description makes clear that these are not really used to mark web resources, but "links" that will be used to provide parameters to some protocol operation.

    The join-port of the Join Proxy is discovered by sending a GET
    request to "/.well-known/core" including a resource type (rt)
    parameter with the value "brski.jp" [RFC6690].  Upon success, the
    return payload will contain the join-port.

...

    The stateless Join Proxy can discover the join-port of the Registrar
    by sending a GET request to "/.well-known/core" including a resource
    type (rt) parameter with the value "brski.rjp" [RFC6690].  Upon
    success, the return payload will contain the join-port of the
    Registrar.

     REQ: GET /.well-known/core?rt=brski.rjp

     RES: 2.05 Content
     <coaps+jpy://[IP_address]:join-port>;rt=brski.rjp

Generally, enabling the RD (and /.well-known/core in general) to supply this information is highly desirable.  However, it is not clear that this should be done via something that could be called "fake resources".