Skip to content

Commit

Permalink
Set min TLS version to 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kpachhai committed Dec 13, 2024
1 parent b17fd29 commit 17fcf21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extension/externalsubscriber/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ func NewExternalSubscriberClient(
var opts []grpc.DialOption
if useTLS {
// Use default TLS credentials
creds := credentials.NewTLS(&tls.Config{})
creds := credentials.NewTLS(&tls.Config{
MinVersion: tls.VersionTLS12, // Ensure a secure minimum TLS version
})
opts = append(opts, grpc.WithTransportCredentials(creds))
} else {
// Use insecure credentials for plaintext communication
Expand Down

0 comments on commit 17fcf21

Please sign in to comment.