How do I configure emqx v3.2.1 that I used?
Asked
Active
Viewed 633 times
1 Answers
2
EMQX allows you to configure Access Control Lists to authorise access to topics.
See https://github.com/emqx/emqx/wiki/ACL-Design and https://docs.emqx.io/broker/v3/en/config.html#anonymous-authentication-and-acl-files
e.g. an acl.config file with:
{allow, {user, "testuser"}, subscribe, ["a/b/c", "d/e/f/#"]}.
{allow, {user, "admin"}, pubsub, ["a/b/c", "d/e/f/#"]}.
{deny, all}.
will allow the client testuser
to subscribe to topics a/b/c
and d/e/f/#
only, while admin
is allowed to publish and subscribe these topics.

Ben T
- 4,656
- 3
- 22
- 22