-3

How do I configure emqx v3.2.1 that I used?

  • 2
    Please make sure you take the [tour](https://stackoverflow.com/tour) and read the doc on how to ask a [good question](https://stackoverflow.com/help/how-to-ask) – hardillb Oct 30 '19 at 07:27

1 Answers1

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