From b86ad9b87e2192a6d3fb119275ebe6bb064d526e Mon Sep 17 00:00:00 2001 From: Alexey Potapenko Date: Fri, 4 Oct 2024 12:27:11 +0300 Subject: [PATCH] start: failed to start Tarantool 3 with encrypted etcd This patch fixes an incorrect SSL certificate parameter name. Closes #938 --- lib/cluster/cluster.go | 2 +- lib/cluster/cluster_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cluster/cluster.go b/lib/cluster/cluster.go index 80d6588b1..ed67c00f5 100644 --- a/lib/cluster/cluster.go +++ b/lib/cluster/cluster.go @@ -129,7 +129,7 @@ type ClusterConfig struct { Prefix string `yaml:"prefix"` Ssl struct { KeyFile string `yaml:"ssl_key"` - CertFile string `yaml:"cert_file"` + CertFile string `yaml:"ssl_cert"` CaPath string `yaml:"ca_path"` CaFile string `yaml:"ca_file"` VerifyPeer bool `yaml:"verify_peer"` diff --git a/lib/cluster/cluster_test.go b/lib/cluster/cluster_test.go index fadaa0362..90cd8e7ba 100644 --- a/lib/cluster/cluster_test.go +++ b/lib/cluster/cluster_test.go @@ -141,7 +141,7 @@ func TestMakeClusterConfig_settings(t *testing.T) { expected.Config.Etcd.Prefix) config.Set([]string{"config", "etcd", "ssl", "ssl_key"}, expected.Config.Etcd.Ssl.KeyFile) - config.Set([]string{"config", "etcd", "ssl", "cert_file"}, + config.Set([]string{"config", "etcd", "ssl", "ssl_cert"}, expected.Config.Etcd.Ssl.CertFile) config.Set([]string{"config", "etcd", "ssl", "ca_path"}, expected.Config.Etcd.Ssl.CaPath)