浏览代码

fix: deny all subscribes to '#' topics in the default acl.conf

Shawn 3 年之前
父节点
当前提交
f159e081fa
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      apps/emqx_authz/etc/acl.conf

+ 4 - 0
apps/emqx_authz/etc/acl.conf

@@ -26,3 +26,7 @@
 {allow, {username, "^dashboard?"}, subscribe, ["$SYS/#"]}.
 
 {allow, {ipaddr, "127.0.0.1"}, all, ["$SYS/#", "#"]}.
+
+{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.
+
+{allow, all}.