test new authorization rules
This commit is contained in:
parent
12ae9b0780
commit
63904c0b90
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,14 @@ spec:
|
||||||
{
|
{
|
||||||
type = built_in_database
|
type = built_in_database
|
||||||
enable = true
|
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"
|
no_match: "deny"
|
||||||
|
|
Loading…
Reference in a new issue