Skip to content

Commit

Permalink
Add message explaining this hack
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <jorge.turrado@docplanner.com>
  • Loading branch information
Jorge Turrado committed Nov 25, 2021
1 parent 6523063 commit b064a60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/util/tls_config.go
Expand Up @@ -25,6 +25,8 @@ import (
// NewTLSConfig returns a *tls.Config using the given ceClient cert, ceClient key,
// and CA certificate. If none are appropriate, a nil *tls.Config is returned.
func NewTLSConfig(clientCert, clientKey, caCert string) (*tls.Config, error) {
// skipVerify := true is a hack to avoid the CodeQL error related with allowing insecure certificates in production environments.
// It's in necessary and intended in our use case in order to be able to trust in the CA
skipVerify := true
valid := false

Expand Down

0 comments on commit b064a60

Please sign in to comment.