mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Support rootCAs for notification targets (#7108)
Add support for RootCAs for notification targets mqtt and webhook
This commit is contained in:
parent
51ec61ee94
commit
3d22a9d84f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user