rd-endpoints should not be visible with a coap-GET request on .well-known/core
The CoAP resource directory, in order to register a node, creates an endpoint with a unique name and link it with the resources made available by the registering node.
Implementation wise, these endpoints are treated by libcoap like normal resources associated with a physical counterpart.
For this reason, when querying the .well-known/core
resource of the node elected as resource directory, the list of all endpoints created by the application logic will be printed/returned together with the normal resources of the local node.
The list of all endpoints however sould not be accessed via .well-known/core
, but only through the dedicated rd-lookup/ep
resource.
While not a real issue for the current implementation of CoAP and EDDIE, it can create potential problems, especially with applications that interact with EDDIE usign CoAP.