mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
add TLS grpc support for filer meta clients
This commit is contained in:
parent
fe60c6ef9a
commit
3afbf04007
|
@ -52,11 +52,11 @@ var cmdFilerBackup = &Command{
|
||||||
|
|
||||||
func runFilerBackup(cmd *Command, args []string) bool {
|
func runFilerBackup(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
|
||||||
|
|
||||||
util.LoadConfiguration("security", false)
|
util.LoadConfiguration("security", false)
|
||||||
util.LoadConfiguration("replication", true)
|
util.LoadConfiguration("replication", true)
|
||||||
|
|
||||||
|
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
||||||
|
|
||||||
for {
|
for {
|
||||||
err := doFilerBackup(grpcDialOption, &filerBackupOptions)
|
err := doFilerBackup(grpcDialOption, &filerBackupOptions)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -53,6 +53,7 @@ The backup writes to another filer store specified in a backup_filer.toml.
|
||||||
|
|
||||||
func runFilerMetaBackup(cmd *Command, args []string) bool {
|
func runFilerMetaBackup(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
|
util.LoadConfiguration("security", false)
|
||||||
metaBackup.grpcDialOption = security.LoadClientTLS(util.GetViper(), "grpc.client")
|
metaBackup.grpcDialOption = security.LoadClientTLS(util.GetViper(), "grpc.client")
|
||||||
|
|
||||||
// load backup_filer.toml
|
// load backup_filer.toml
|
||||||
|
|
|
@ -45,6 +45,7 @@ var (
|
||||||
|
|
||||||
func runFilerMetaTail(cmd *Command, args []string) bool {
|
func runFilerMetaTail(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
|
util.LoadConfiguration("security", false)
|
||||||
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
||||||
|
|
||||||
var filterFunc func(dir, fname string) bool
|
var filterFunc func(dir, fname string) bool
|
||||||
|
|
|
@ -89,6 +89,7 @@ var cmdFilerSynchronize = &Command{
|
||||||
|
|
||||||
func runFilerSynchronize(cmd *Command, args []string) bool {
|
func runFilerSynchronize(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
|
util.LoadConfiguration("security", false)
|
||||||
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
||||||
|
|
||||||
grace.SetupProfiling(*syncCpuProfile, *syncMemProfile)
|
grace.SetupProfiling(*syncCpuProfile, *syncMemProfile)
|
||||||
|
|
|
@ -49,6 +49,7 @@ func (iamopt *IamOptions) startIamServer() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
util.LoadConfiguration("security", false)
|
||||||
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
grpcDialOption := security.LoadClientTLS(util.GetViper(), "grpc.client")
|
||||||
for {
|
for {
|
||||||
err = pb.WithGrpcFilerClient(filerGrpcAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
|
err = pb.WithGrpcFilerClient(filerGrpcAddress, grpcDialOption, func(client filer_pb.SeaweedFilerClient) error {
|
||||||
|
|
Loading…
Reference in a new issue