diff --git a/pkg/services/alerting/notifiers/alertmanager.go b/pkg/services/alerting/notifiers/alertmanager.go index 8bedce02deb..fea254e3159 100644 --- a/pkg/services/alerting/notifiers/alertmanager.go +++ b/pkg/services/alerting/notifiers/alertmanager.go @@ -33,10 +33,21 @@ func init() { Basic Auth User -
- Basic Auth Password - -
+
+ Basic Auth Password +
+ + +
+
+ + reset +
+
`, Options: []alerting.NotifierOption{ @@ -80,7 +91,7 @@ func NewAlertmanagerNotifier(model *models.AlertNotification) (alerting.Notifier } } basicAuthUser := model.Settings.Get("basicAuthUser").MustString() - basicAuthPassword := model.Settings.Get("basicAuthPassword").MustString() + basicAuthPassword := model.DecryptedValue("basicAuthPassword", model.Settings.Get("basicAuthPassword").MustString()) return &AlertmanagerNotifier{ NotifierBase: NewNotifierBase(model),