From 60d80ffa7990f4b230e9640e7a13e914ccbcc6df Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Mon, 23 Sep 2024 02:49:19 -0500 Subject: [PATCH] letters and numbers in id --- kubernetes/apps/database/emqx/cluster/resources/acl.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/apps/database/emqx/cluster/resources/acl.conf b/kubernetes/apps/database/emqx/cluster/resources/acl.conf index e8d209e3..249d4784 100644 --- a/kubernetes/apps/database/emqx/cluster/resources/acl.conf +++ b/kubernetes/apps/database/emqx/cluster/resources/acl.conf @@ -3,6 +3,6 @@ %% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %% {allow, {user, "jahanson"}, all, ["#"]}. -{allow, {user, "tasmota"}, all, ["tasmota/discovery/#", "tele/tasmota_[^/]+/#", "cmnd/tasmota_[^/]+/#"]}. -{allow, {user, "homeassistant"}, subscribe, ["stat/tasmota_+/+", "tele/tasmota_+/+"]}. +{allow, {user, "tasmota"}, all, ["tasmota/discovery/#", "tele/tasmota_[A-Za-z0-9]+/#", "cmnd/tasmota_[A-Za-z0-9]+/#"]}. +{allow, {user, "homeassistant"}, subscribe, ["stat/tasmota_[A-Za-z0-9]+/#", "tele/tasmota_[A-Za-z0-9]+/#"]}. {deny, all}.