Add support for mTLS for Audit log target (#11645)

This commit is contained in:
Nitish Tiwari
2021-03-01 22:49:13 +05:30
committed by GitHub
parent 10bdb78699
commit bbd1244a88
6 changed files with 97 additions and 17 deletions

View File

@@ -553,7 +553,7 @@ If you need help to migrate smoothly visit: https://min.io/pricing`
http.WithAuthToken(l.AuthToken),
http.WithUserAgent(loggerUserAgent),
http.WithLogKind(string(logger.All)),
http.WithTransport(NewGatewayHTTPTransport()),
http.WithTransport(NewGatewayHTTPTransportWithClientCerts(l.ClientCert, l.ClientKey)),
),
); err != nil {
logger.LogIf(ctx, fmt.Errorf("Unable to initialize audit HTTP target: %w", err))