theshire/kubernetes/apps/database/emqx/cluster/resources/acl.conf
2024-09-23 03:33:15 -05:00

18 lines
499 B
Text

%% ACLs for emqx %%
%% publish, subscribe, or all for both %%
%% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %%
{allow, {user, "jahanson"}, all, ["#"]}.
{allow, {user, "tasmota"}, all, [
"tasmota/discovery/#",
{ topic {re, "tele/tasmota_[A-F0-9]+/#"} },
{ topic {re, "cmnd/tasmota_[A-F0-9]+/#"} }
]}.
{allow, {user, "homeassistant"}, subscribe, [
{ topic {re, "stat/tasmota_[A-F0-9]+/#"} },
{ topic {re, "tele/tasmota_[A-F0-9]+/#"} }
]}.
{deny, all}.