emqx-operator icon indicating copy to clipboard operation
emqx-operator copied to clipboard

Can users/ACL be managed by the operator

Open dberardo-com opened this issue 3 years ago • 6 comments
trafficstars

if so, then which params of the CRD should be set ?

dberardo-com avatar Nov 09 '22 17:11 dberardo-com

Are you using EMQX 5 or EMQX 4 ?

Rory-Z avatar Nov 10 '22 02:11 Rory-Z

5.0.9

dberardo-com avatar Nov 10 '22 07:11 dberardo-com

In EMQX 5, all user/ACLs can be configured via emqx.conf, and in EMQX CR, you can populate with the contents of .spec.bootstrapConfig

Rory-Z avatar Nov 10 '22 07:11 Rory-Z

i see, ok, i was actually meaning something like EMQXAclUser and creating users/acl as CRD instead of having to edit the "core" EMQX file defining the emqx cluster and its config. Fair enough though i will have a look at the config documentation you linked: https://www.emqx.io/docs/en/v5.0/admin/cfg.html

I had experience with mosquitto and SQL based ACLs. Is it a thing in EMQX as well? could ACL be read in from a HA postgres cluster? or are config files the only option?


EDIT

yes it seems to be possible: https://www.emqx.io/docs/en/v5.0/admin/cfg.html#authz-postgresql

so now the question would be, perhaps if ACL is postgres based, then i might have to look for some CRD that controls insertion of entries in postgres tables as a "proxy" for users/ACL in EMQX. i can post the results of my research here then.

dberardo-com avatar Nov 10 '22 08:11 dberardo-com

so now the question would be, perhaps if ACL is postgres based, then i might have to look for some CRD that controls insertion of entries in postgres tables as a "proxy" for users/ACL in EMQX. i can post the results of my research here then.

So cool, I'm looking forward

Rory-Z avatar Nov 10 '22 08:11 Rory-Z