Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

fix: s3 command ignore -tlsVerifyClientCert and -cacert.file arguments (#6547)

Karol Będkowski441614b38665
diff --git a/weed/command/s3.go b/weed/command/s3.go
index e568de91bb..84042b3e02 100644
--- a/weed/command/s3.go
+++ b/weed/command/s3.go
@@ -312,7 +312,7 @@ func (s3opt *S3Options) startS3Server() bool {
}
caCertPool := x509.NewCertPool()
- if *s3Options.tlsCACertificate != "" {
+ if *s3opt.tlsCACertificate != "" {
// load CA certificate file and add it to list of client CAs
caCertFile, err := ioutil.ReadFile(*s3opt.tlsCACertificate)
if err != nil {
@@ -322,7 +322,7 @@ func (s3opt *S3Options) startS3Server() bool {
}
clientAuth := tls.NoClientCert
- if *s3Options.tlsVerifyClientCert {
+ if *s3opt.tlsVerifyClientCert {
clientAuth = tls.RequireAndVerifyClientCert
}