Secrets: Remove proxy certs (#110140)

This commit is contained in:
Matheus Macabu
2025-08-26 16:24:26 +02:00
committed by GitHub
parent 2cba22c092
commit 60f31342c0
7 changed files with 2 additions and 42 deletions
@@ -34,8 +34,6 @@ var _ contracts.DecryptService = &GRPCDecryptClient{}
type TLSConfig struct {
UseTLS bool
CertFile string
KeyFile string
CAFile string
ServerName string
InsecureSkipVerify bool
@@ -91,14 +89,6 @@ func createTLSCredentials(config TLSConfig) (credentials.TransportCredentials, e
tlsConfig.RootCAs = caCertPool
}
if config.CertFile != "" && config.KeyFile != "" {
cert, err := tls.LoadX509KeyPair(config.CertFile, config.KeyFile)
if err != nil {
return nil, fmt.Errorf("failed to load client certificate: %w", err)
}
tlsConfig.Certificates = []tls.Certificate{cert}
}
if config.ServerName != "" {
tlsConfig.ServerName = config.ServerName
}