From 95746f48e6f158ffe3f49a88757ffe67febe893e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20B=C4=99dkowski?= Date: Mon, 24 Mar 2025 17:14:31 +0000 Subject: feat/fix: add s3.cacert.file/tlsVerifyClientCert to filer command (#6659) This prevent crash filler with nil pointer dereference as s3 expect this parameters. New two parameters are added to filer command - copy of s3 parameters: - s3.cacert.file - path to the TLS CA certificate file - s3.tlsVerifyClientCert - whether to verify the client's certificate --- weed/command/filer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weed/command/filer.go b/weed/command/filer.go index d763c7f3c..55ea1169d 100644 --- a/weed/command/filer.go +++ b/weed/command/filer.go @@ -119,6 +119,8 @@ func init() { filerS3Options.allowEmptyFolder = cmdFiler.Flag.Bool("s3.allowEmptyFolder", true, "allow empty folders") filerS3Options.allowDeleteBucketNotEmpty = cmdFiler.Flag.Bool("s3.allowDeleteBucketNotEmpty", true, "allow recursive deleting all entries along with bucket") filerS3Options.localSocket = cmdFiler.Flag.String("s3.localSocket", "", "default to /tmp/seaweedfs-s3-.sock") + filerS3Options.tlsCACertificate = cmdFiler.Flag.String("s3.cacert.file", "", "path to the TLS CA certificate file") + filerS3Options.tlsVerifyClientCert = cmdFiler.Flag.Bool("s3.tlsVerifyClientCert", false, "whether to verify the client's certificate") // start webdav on filer filerStartWebDav = cmdFiler.Flag.Bool("webdav", false, "whether to start webdav gateway") -- cgit v1.2.3