Skip to content

Commit

Permalink
feat: update GRPC server to support minimum TLS version TLS 1.2
Browse files Browse the repository at this point in the history
- Add support for minimum TLS version TLS 1.2 in the GRPC server

Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Nov 26, 2023
1 parent 80509be commit 86af425
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 86af425

Please sign in to comment.