From a73da7755ed4b243186162af65f41331ba2b8b71 Mon Sep 17 00:00:00 2001 From: Praveen raj Mani Date: Thu, 30 May 2019 10:59:37 +0530 Subject: [PATCH] Remove senstive encryption entries from event data (#7719) Fixes #7716 --- cmd/notification.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/notification.go b/cmd/notification.go index 21fbd7c33..b1c806184 100644 --- a/cmd/notification.go +++ b/cmd/notification.go @@ -31,6 +31,7 @@ import ( "sync" "time" + "github.com/minio/minio/cmd/crypto" "github.com/minio/minio/cmd/logger" "github.com/minio/minio/pkg/event" xnet "github.com/minio/minio/pkg/net" @@ -910,6 +911,11 @@ func (args eventArgs) ToEvent() event.Event { } func sendEvent(args eventArgs) { + + // remove sensitive encryption entries in metadata. + crypto.RemoveSensitiveEntries(args.Object.UserDefined) + crypto.RemoveInternalEntries(args.Object.UserDefined) + // globalNotificationSys is not initialized in gateway mode. if globalNotificationSys == nil { return