Repository navigation
Move Auto-provisioning to a new provisioningv2 topic - #3590
Conversation
|
Also updated documentation accordingly: openremote/documentation#210 |
MartinaeyNL
left a comment
There was a problem hiding this comment.
Not sure whether this solution makes the most sense from an "open source user perspective".
It feels odd to "just rename v1 to v2, so custom projects can keep using v1 and copy-paste the old provisioning logic."
I guess it's because we didn't apply versioning to the topics in the first place,
but this doesn't feel like the right solution either.
But maybe I'm not the best user to judge 😅
|
Have we already made some modifications to the current provisioning mechanism that would not be compatible with the user installation or is this pure preparation work ? My thought would be to duplicate in the current manager and have the same logic behind the 2 topics. |
auto provisioning handler was updated to fix a security vulnerability where the client wasn't challenged for ownership of the private key, it was later identified that one customer was using this mechanism for automated system initialisation on edge gateways in the field via the PLC (which doesn't have a HTTP stack). This is simply to allow them to continue using the old topic name without having to make physical site visits to update each PLC, even then they couldn't support the new mechanism. A custom handler should have been created and used in the first place but it wasn't unfortunately. Anyone who is able to update the devices to use the new challenge mechanism can trivially also change the topic name as part of that update. |
|
ebariaux
left a comment
There was a problem hiding this comment.
Introducing local constant in test to define topic name is an option, not mandatory for merge.
After a short internal discussion, it's a conscious decision to make the breaking change for all OR users.



At least one user of the platform was using the old provisioning mechanism on edge devices for other purposes in the field which cannot be easily replaced. To allow their continued usage of the old mechanism within a custom project the built in provisioning topic should be renamed as it is a breaking change anyway that requires a code change to utilitise.