test new authorization rules

This commit is contained in:
Joseph Hanson 2024-09-22 17:14:41 -05:00
parent 12ae9b0780
commit 63904c0b90
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -23,6 +23,14 @@ spec:
{
type = built_in_database
enable = true
rules = [
{allow, {pattern, "tasmota_"}, publish, ["tasmota/discovery/#"]}.
{allow, all, subscribe, ["tasmota/discovery/#"]}.
{allow, {pattern, "tasmota_"}, publish, ["cmnd/tasmota_+/#"]}.
{allow, {pattern, "tasmota_"}, publish, ["stat/tasmota_+/#"]}.
{allow, {pattern, "tasmota_"}, publish, ["tele/tasmota_+/#"]}.
{allow, all, subscribe, ["cmnd/tasmota_+/#", "stat/tasmota_+/#", "tele/tasmota_+/#"]}.
]
}
]
no_match: "deny"