thingsboard / tbmq

Open-source, scalable, and fault-tolerant MQTT broker able to handle 4M+ concurrent client connections, supporting at least 3M messages per second throughput per single cluster node with low latency delivery. The cluster mode supports more than 100M concurrently connected clients.
https://thingsboard.io/products/mqtt-broker/
Apache License 2.0
563 stars 42 forks source link

[Question] MQTTS credentials dynamic management in TBMQ? #136

Closed gaizkasi closed 1 week ago

gaizkasi commented 1 week ago

Component

Description I would like to deploy MQTTS in TBMQ publications and I would like to know how I could manage MQTTS credentials configuration taking into account that device provisioning must be dynamic, that is, not using UI.

dmytro-landiak commented 1 week ago

Hi @gaizkasi!

Thank you for your question. Could you please provide more details about the dynamic client credentials provisioning you aim to achieve?

Currently, if authentication is enabled on the broker, client credentials need to be pre-created to allow devices to connect. Automatic creation of credentials during device connection is not supported.

However, you can use our API to provision client credentials before the device attempts to connect, bypassing the need for the UI.

If you can provide additional details about your specific use case, I would be glad to assist further.

Regards!

gaizkasi commented 1 week ago

Hi @dmytro-landiak!

I mean, what I would like to have is a process in TBMQ as in the standard Thingsboard Transport where you could provide using RPC request/responses the credentials for a device:

https://thingsboard.io/docs/user-guide/device-provisioning/?mqttprovisioning=x509-certificate

irudia

I don't know if the API that you mention does something similar. Is that in the documentation?

Regards!

Gaizka

dmytro-landiak commented 1 week ago

hi @gaizkasi!

Thank you for your inquiry regarding the Device Provisioning feature. Currently, this feature is available in TB but not in TBMQ.

We understand the importance of this functionality and will consider adding it to TBMQ in future updates. However, please note that it is not on our current roadmap, so it won't be included in the immediate upcoming releases.

If you have any further questions or need assistance with other features, please feel free to reach out.

Regards!

gaizkasi commented 1 week ago

Thanks for all!