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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
add TLS grpc support for filer meta clients
Chris Lu3afbf04007eb
diff --git a/weed/command/filer_backup.go b/weed/command/filer_backup.goindex 888b46fe71..fc4dd82986 100644--- a/weed/command/filer_backup.go+++ b/weed/command/filer_backup.go@@ -52,11 +52,11 @@ var cmdFilerBackup = &Command{func runFilerBackup(cmd *Command, args []string) bool {- grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")-util.LoadConfiguration("security", false)util.LoadConfiguration("replication", true)+ grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")+for {err := doFilerBackup(grpcDialOption, &filerBackupOptions)if err != nil {diff --git a/weed/command/filer_meta_backup.go b/weed/command/filer_meta_backup.goindex ba0b446596..28bd367e72 100644--- a/weed/command/filer_meta_backup.go+++ b/weed/command/filer_meta_backup.go@@ -53,6 +53,7 @@ The backup writes to another filer store specified in a backup_filer.toml.func runFilerMetaBackup(cmd *Command, args []string) bool {+ util.LoadConfiguration("security", false)metaBackup.grpcDialOption = security.LoadClientTLS(util.GetViper(), "grpc.client")// load backup_filer.tomldiff --git a/weed/command/filer_meta_tail.go b/weed/command/filer_meta_tail.goindex 8451ffd786..76699bb5ed 100644--- a/weed/command/filer_meta_tail.go+++ b/weed/command/filer_meta_tail.go@@ -45,6 +45,7 @@ var (func runFilerMetaTail(cmd *Command, args []string) bool {+ util.LoadConfiguration("security", false)grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")var filterFunc func(dir, fname string) booldiff --git a/weed/command/filer_sync.go b/weed/command/filer_sync.goindex 211c34aeae..7cfc8a7fe3 100644--- a/weed/command/filer_sync.go+++ b/weed/command/filer_sync.go@@ -89,6 +89,7 @@ var cmdFilerSynchronize = &Command{func runFilerSynchronize(cmd *Command, args []string) bool {+ util.LoadConfiguration("security", false)grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")grace.SetupProfiling(*syncCpuProfile, *syncMemProfile)diff --git a/weed/command/iam.go b/weed/command/iam.goindex 17d0832cbc..ed4eea543e 100644--- a/weed/command/iam.go+++ b/weed/command/iam.go@@ -49,6 +49,7 @@ func (iamopt *IamOptions) startIamServer() bool {return false}+ util.LoadConfiguration("security", false)grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")for {err = pb.WithGrpcFilerClient(filerGrpcAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {