Honor global root CAs for kafka audit tls (#17481)

honor global root CAs for kafka audit tls
This commit is contained in:
Praveen raj Mani 2023-06-21 23:20:40 +05:30 committed by GitHub
parent 7605d07bb2
commit b94ab07c2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -616,6 +616,9 @@ func applyDynamicConfigForSubSys(ctx context.Context, objAPI ObjectLayer, s conf
} }
for n, l := range loggerCfg.AuditKafka { for n, l := range loggerCfg.AuditKafka {
if l.Enabled { if l.Enabled {
if l.TLS.Enable {
l.TLS.RootCAs = globalRootCAs
}
l.LogOnce = logger.LogOnceIf l.LogOnce = logger.LogOnceIf
loggerCfg.AuditKafka[n] = l loggerCfg.AuditKafka[n] = l
} }