From 5ec561c8d6fb9f4486986a0c71f594fc44139c45 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Tue, 23 Nov 2021 16:31:27 -0500 Subject: [PATCH] types: adding ConsulAutoConfigTLSVersionStrings --- types/tls.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/tls.go b/types/tls.go index bc48644f86..33fc30c59f 100644 --- a/types/tls.go +++ b/types/tls.go @@ -45,6 +45,16 @@ var ( TLSv1_2: "TLS 1.2", TLSv1_3: "TLS 1.3", } + // NOTE: these currently map to the deprecated config strings to support the + // deployment pattern of upgrading servers first. These should be updated to + // the newer config strings in a future release. + ConsulAutoConfigTLSVersionStrings = map[TLSVersion]string{ + TLSVersionAuto: "", + TLSv1_0: "tls10", + TLSv1_1: "tls11", + TLSv1_2: "tls12", + TLSv1_3: "tls13", + } EnvoyTLSVersionStrings = map[TLSVersion]string{ TLSVersionAuto: "TLS_AUTO", TLSv1_0: "TLSv1_0",