Merge pull request #13024 from zmstone/0513-deny-plush-hash-by-default-ACL
fix: deny subscribing to +/# by default ACL
This commit is contained in:
commit
34bf291539
|
@ -4,7 +4,7 @@
|
|||
|
||||
{allow, {ipaddr, "127.0.0.1"}, all, ["$SYS/#", "#"]}.
|
||||
|
||||
{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.
|
||||
{deny, all, subscribe, ["$SYS/#", {eq, "#"}, {eq, "+/#"}]}.
|
||||
|
||||
{allow, all}.
|
||||
%% NOTE! when deploy in production:
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
Add a default ACL deny-rule to reject subscription to `+/#` topic.
|
||||
|
||||
Since EMQX by default rejects subscription to `#` topic, for completeness, it should reject `+/#` as well.
|
Loading…
Reference in New Issue