From 86af425149b7dccea76fe9ce59e0c1c3fbb06b1b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 26 Nov 2023 23:58:06 +0800 Subject: [PATCH] feat: update GRPC server to support minimum TLS version TLS 1.2 - Add support for minimum TLS version TLS 1.2 in the GRPC server Signed-off-by: Bo-Yi Wu --- rpc/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rpc/server.go b/rpc/server.go index e62757b89..4a0fe4213 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -153,6 +153,7 @@ func RunGRPCServer(ctx context.Context, cfg *config.ConfYaml) error { tlsConfig := &tls.Config{ Certificates: []tls.Certificate{tlsCert}, ClientAuth: tls.NoClientCert, + MinVersion: tls.VersionTLS12, // Set minimum TLS version to TLS 1.2 } s = grpc.NewServer(