diff --git a/cmd/common-main.go b/cmd/common-main.go index c6828f95b..68f76bc96 100644 --- a/cmd/common-main.go +++ b/cmd/common-main.go @@ -903,6 +903,9 @@ func getTLSConfig() (x509Certs []*x509.Certificate, manager *certs.Manager, secu } secureConn = true + // Certs might be symlinks, reload them every 10 seconds. + manager.UpdateReloadDuration(10 * time.Second) + // syscall.SIGHUP to reload the certs. manager.ReloadOnSignal(syscall.SIGHUP) diff --git a/cmd/utils.go b/cmd/utils.go index 8b6d50308..4524963ce 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -633,6 +633,7 @@ func NewGatewayHTTPTransportWithClientCerts(clientCert, clientKey string) *http. err.Error())) } if c != nil { + c.UpdateReloadDuration(10 * time.Second) c.ReloadOnSignal(syscall.SIGHUP) // allow reloads upon SIGHUP transport.TLSClientConfig.GetClientCertificate = c.GetClientCertificate } diff --git a/go.mod b/go.mod index b43fd250f..3bccd5f46 100644 --- a/go.mod +++ b/go.mod @@ -53,7 +53,7 @@ require ( github.com/minio/madmin-go v1.3.5 github.com/minio/minio-go/v7 v7.0.23 github.com/minio/parquet-go v1.1.0 - github.com/minio/pkg v1.1.18 + github.com/minio/pkg v1.1.20 github.com/minio/selfupdate v0.4.0 github.com/minio/sha256-simd v1.0.0 github.com/minio/simdjson-go v0.4.2 diff --git a/go.sum b/go.sum index 87b288121..e685e332e 100644 --- a/go.sum +++ b/go.sum @@ -789,8 +789,8 @@ github.com/minio/operator v0.0.0-20220110040724-a5d59a342b7f/go.mod h1:k00quEXDt github.com/minio/parquet-go v1.1.0 h1:j2Fn1/h7Ts/0qzdMZU9oCUKr0IJwRTD9Hg9QJyVaN6A= github.com/minio/parquet-go v1.1.0/go.mod h1:nnAkbt2CG/DCQ3trcV3uyvwns4VjyoINF5vMqF5efOE= github.com/minio/pkg v1.0.3/go.mod h1:obU54TZ9QlMv0TRaDgQ/JTzf11ZSXxnSfLrm4tMtBP8= -github.com/minio/pkg v1.1.18 h1:W/cs+CCWNngqO4AkVhGxDNFyEFIfxsaaL0jeCX6D5AQ= -github.com/minio/pkg v1.1.18/go.mod h1:Xo7LQshlxGa9shKwJ7NzQbgW4s8T/Wc1cOStR/eUiMY= +github.com/minio/pkg v1.1.20 h1:NhYtoQHw/Sl1ib/lroANFwkQspE0YyTeVR1CMPEff/A= +github.com/minio/pkg v1.1.20/go.mod h1:Xo7LQshlxGa9shKwJ7NzQbgW4s8T/Wc1cOStR/eUiMY= github.com/minio/selfupdate v0.4.0 h1:A7t07pN4Ch1tBTIRStW0KhUVyykz+2muCqFsITQeEW8= github.com/minio/selfupdate v0.4.0/go.mod h1:mcDkzMgq8PRcpCRJo/NlPY7U45O5dfYl2Y0Rg7IustY= github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM=