瀏覽代碼

add required acls for host updates

Abhishek Kondur 2 年之前
父節點
當前提交
522b37cea4
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      mq/dynsec_helper.go

+ 12 - 0
mq/dynsec_helper.go

@@ -180,6 +180,12 @@ func fetchHostAcls(hostID string) []Acl {
 		},
 		{
 			AclType:  "publishClientReceive",
+			Topic:    fmt.Sprintf("host/update/%s/#", hostID),
+			Priority: -1,
+			Allow:    true,
+		},
+		{
+			AclType:  "publishClientSend",
 			Topic:    fmt.Sprintf("host/update/%s", hostID),
 			Priority: -1,
 			Allow:    true,
@@ -323,6 +329,12 @@ func fetchServerAcls() []Acl {
 			Priority: -1,
 			Allow:    true,
 		},
+		{
+			AclType:  "publishClientSend",
+			Topic:    "host/update/#",
+			Priority: -1,
+			Allow:    true,
+		},
 		{
 			AclType:  "publishClientReceive",
 			Topic:    "ping/#",