etcdmain: let grpc proxy warn about insecure-skip-tls-verify

This commit is contained in:
Hitoshi Mitake
2020-06-29 23:37:04 +09:00
committed by Sahdev P. Zala
parent 3076b616ab
commit 4ae0875b34

View File

@@ -267,6 +267,9 @@ func newClientCfg(eps []string) (*clientv3.Config, error) {
return nil, err
}
clientTLS.InsecureSkipVerify = grpcProxyInsecureSkipTLSVerify
if clientTLS.InsecureSkipVerify {
lg.Warn("--insecure-skip-tls-verify was given, this grpc proxy process skips authentication of etcd server TLS certificates. This option should be enabled only for testing purposes.")
}
cfg.TLS = clientTLS
plog.Infof("ClientTLS: %s", tls)
}