Partitioning a Mosquitto MQTT Server

Dojo

I want to create isolated environments on a single MQTT server. Like a database server can have multiple schemas and table names can be repeated in different sachems. I want to have a "MQTT schema" where topics/subscriptions in one schema are isolated from those in another "MQTT schema" so that the same topic can be used in different schemas. It would be even better if security can be applied on a per schema basis but that would be asking for a lot. Right now, I am just looking for a way to have isolated environments on the same server - it will probably require a separate TCP port per schema just to identify the destination schema of a connecting client, as the protocol itself does not have have any concept of schema. Or the clients can be mapped to a particular schema based on the username or client ID.

Note: I am aware of how to use ACL to restrict topic access for each user. ACLs do not solve this problem. I don't simply want to restrict topic access, I want to create separate environment where users are free to do what the want with the topics without out me telling them which topic names they cannot use etc.

hardillb

The other option is the mount_point configuration option that can be used with a listener declaration (man page).

mount_point topic prefix

This option is used with the listener option to isolate groups of clients. When a client connects to a listener which uses this option, the string argument is attached to the start of all topics for this client. This prefix is removed when any messages are sent to the client. This means a client connected to a listener with mount point example can only see messages that are published in the topic hierarchy example and above.

The difference between this and the other option (docker container) is that you can have listener declarations that can see all the traffic of all the different partitions by having a listener with no mount point.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

MQTT with Mosquitto

From Dev

How do I set up my own MQTT Server with Mosquitto?

From Dev

mqtt mosquitto bridge horizontal scaling

From Dev

How to publish a message to a specific client in Mosquitto MQTT

From Dev

Access control in Mosquitto MQTT Broker

From Dev

How to test the python paho mqtt with mosquitto?

From Dev

How to use client id in Mosquitto MQTT?

From Dev

Display the json message from an mqtt server on my terminal (mosquitto)

From Dev

How to connect from MQTT javascript client to Mosquitto Server?

From Dev

How to use mosquitto_pub to publsih the topic/message with specific time interval on the mqtt server?

From Dev

Mqtt: How to install mosquitto old version

From Dev

SSL in mqtt using mosquitto broker

From Dev

Securing Mosquitto Connections - MQTT

From Dev

MQTT Android Mosquitto client

From Dev

Mosquitto MQTT devices slowing down

From Dev

mqtt server in docker - a way to run the <mosquitto_passwd -U> from DockerCompose.yaml

From Dev

mosquitto_pub rejecting iot.eclipse.org mqtt server certificate saying "Unknown CA"

From Dev

Error: Connection refused for MQTT Mosquitto on Ubuntu 18.04

From Dev

Building Mosquitto MQTT auth plugin issue

From Dev

Cannot access elements of struct mosquitto at Mosquitto MQTT Broker plugin

From Dev

Unable to connect to Thingsboard running on localhost server using mosquitto/mqtt

From Dev

How to store messages in /mosquitto/data MQTT mosquitto?

From Dev

Mosquitto with persitence as MQTT Forwarding Broker

From Dev

Mosquitto MQTT broker with TLS - client connection errors

From Dev

Which version of MQTT is Mosquitto broker hosting

From Dev

How to disable mqtt duplicate message in Mosquitto

From Dev

Mosquitto MQTT publishing error

From Dev

Subscriber on Mosquitto MQTT ContentType is Null

From Dev

Eclipse Mosquitto - Access to MQTT Problem

Related Related

  1. 1

    MQTT with Mosquitto

  2. 2

    How do I set up my own MQTT Server with Mosquitto?

  3. 3

    mqtt mosquitto bridge horizontal scaling

  4. 4

    How to publish a message to a specific client in Mosquitto MQTT

  5. 5

    Access control in Mosquitto MQTT Broker

  6. 6

    How to test the python paho mqtt with mosquitto?

  7. 7

    How to use client id in Mosquitto MQTT?

  8. 8

    Display the json message from an mqtt server on my terminal (mosquitto)

  9. 9

    How to connect from MQTT javascript client to Mosquitto Server?

  10. 10

    How to use mosquitto_pub to publsih the topic/message with specific time interval on the mqtt server?

  11. 11

    Mqtt: How to install mosquitto old version

  12. 12

    SSL in mqtt using mosquitto broker

  13. 13

    Securing Mosquitto Connections - MQTT

  14. 14

    MQTT Android Mosquitto client

  15. 15

    Mosquitto MQTT devices slowing down

  16. 16

    mqtt server in docker - a way to run the <mosquitto_passwd -U> from DockerCompose.yaml

  17. 17

    mosquitto_pub rejecting iot.eclipse.org mqtt server certificate saying "Unknown CA"

  18. 18

    Error: Connection refused for MQTT Mosquitto on Ubuntu 18.04

  19. 19

    Building Mosquitto MQTT auth plugin issue

  20. 20

    Cannot access elements of struct mosquitto at Mosquitto MQTT Broker plugin

  21. 21

    Unable to connect to Thingsboard running on localhost server using mosquitto/mqtt

  22. 22

    How to store messages in /mosquitto/data MQTT mosquitto?

  23. 23

    Mosquitto with persitence as MQTT Forwarding Broker

  24. 24

    Mosquitto MQTT broker with TLS - client connection errors

  25. 25

    Which version of MQTT is Mosquitto broker hosting

  26. 26

    How to disable mqtt duplicate message in Mosquitto

  27. 27

    Mosquitto MQTT publishing error

  28. 28

    Subscriber on Mosquitto MQTT ContentType is Null

  29. 29

    Eclipse Mosquitto - Access to MQTT Problem

HotTag

Archive