From 3d22a9d84fc85f402599e6205b8336e1b86e5b84 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 20 Jan 2019 09:57:18 +0530 Subject: [PATCH] Support rootCAs for notification targets (#7108) Add support for RootCAs for notification targets mqtt and webhook --- cmd/config-current.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/config-current.go b/cmd/config-current.go index 312c1421e..8da7a28b5 100644 --- a/cmd/config-current.go +++ b/cmd/config-current.go @@ -684,6 +684,7 @@ func getNotificationTargets(config *serverConfig) *event.TargetList { for id, args := range config.Notify.MQTT { if args.Enable { + args.RootCAs = globalRootCAs newTarget, err := target.NewMQTTTarget(id, args) if err != nil { logger.LogIf(context.Background(), err) @@ -768,6 +769,7 @@ func getNotificationTargets(config *serverConfig) *event.TargetList { for id, args := range config.Notify.Webhook { if args.Enable { + args.RootCAs = globalRootCAs newTarget := target.NewWebhookTarget(id, args) if err := targetList.Add(newTarget); err != nil { logger.LogIf(context.Background(), err)