Pārlūkot izejas kodu

add required acls for host updates

Abhishek Kondur 2 gadi atpakaļ
vecāks
revīzija
522b37cea4
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  1. 12 0
      mq/dynsec_helper.go

+ 12 - 0
mq/dynsec_helper.go

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