hono tenant redirection mechanism
See original GitHub issueWhat would you like to be added:
In Hono Tenant API we have a mechanism that indicate tenant status "enabled": true
, why not to extend or add something similar that will indicate that the tenant have been Moved Permanently
(similar with HTTP redirects) and this status will be converted by protocols adapters into specific protocol implementation. For CoAp, AMQP and HTTP based protocol this should be feasible but I am not sure for current version of MQTT.
Why is this needed: The operation of IoT platforms in production some time requires for some special operation, for example:
- to move one tenant from one cluster to other cluster.
- migrate the tenant inside the same cluster to a different Hono version that is served on different URL or port.
/kind feature
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
hono tenant redirection mechanism · Issue #1921 · eclipse-hono ...
In Hono Tenant API we have a mechanism that indicate tenant status "enabled": true , why not to extend or add something similar...
Read more >Device Identity :: Eclipse Hono™
Hono supports the logical partitioning of devices into groups called tenants. Each tenant has a unique identifier, a string called the tenant-id, ...
Read more >Sender Rewriting Scheme (SRS) in Microsoft 365 - Office 365
A message that is autoforwarded for a hosted mailbox by mechanisms such as SMTP forwarding or Mailbox Rule redirection or Transport Rule ...
Read more >Microsoft 365 will get support for custom ARC configurations
ARC is an authentication mechanism that provides an authenticated "chain of custody" for messages that allows all intermediaries handling an ...
Read more >RFC 9110: HTTP Semantics
In this definition are core protocol elements, extensibility mechanisms, and the "http" ... URI references are used to target requests, indicate redirects, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree that having the ability to (re-)direct a device to a proper endpoint would be helpful. I would, however, tend to see this in the context of the more general problem of bootstrapping devices. The particular scenario pointed out by @bordeuax in this issue is reasonable and valid. I wonder, though, if we are not facing the same problem when a device’s credentials have expired or when a device is started up for the very first time and doesn’t really know yet, where to connect to. In all these cases we need to provision the device with (new) credentials and/or the endpoint address it should connect to. Thus, FMPOV we should discuss this problem and its potential solution in the context of #1807 instead of implementing a separate mechanism here. I also would rather use the message payload to convey provisioning information to devices than trying to fit it into (non-existing) meta-data properties of the particular device protocols in order to make the overall approach more consistent and easier to maintain. Devices would need to support such a mechanism in any case anyway …
We used to extend TenantKey to add more structure to it. But the idea of adding bag of properties sounds good to me as well. I need to revisit this anyway soon, so I’ll see to implement it this way.
In the rest of Hono code these two conditions are the same, so I don’t see much need for the distinction there.
Instead of doing this, I would recommend we add a new status (301) and provide a new URI in the body (in the similar way of how HTTP works. However, this will lead to the Tenant API change so we might need to do it 2.0.
@sophokles73 any thought on this?
I’ll look into this and let you know, but this might be more appropriate topic for enmasse project.