From 122660fc8c25a51c50e1cf28099ae06f7986664c Mon Sep 17 00:00:00 2001 From: "Derrick J. Wippler" Date: Fri, 24 Aug 2018 09:59:37 -0500 Subject: [PATCH] Added support for ETCD3_ENABLE_TLS --- etcdutil/config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etcdutil/config.go b/etcdutil/config.go index e3dd3605..4f2bc0d6 100644 --- a/etcdutil/config.go +++ b/etcdutil/config.go @@ -109,6 +109,11 @@ func NewEtcdConfig(cfg *etcd.Config) (*etcd.Config, error) { cfg.TLS.InsecureSkipVerify = true } + // Enable TLS with no additional configuration + if os.Getenv("ETCD3_ENABLE_TLS") != "" { + holster.SetDefault(&cfg.TLS, &tls.Config{}) + } + return cfg, nil }