Fix linter issue (#3211)

Silence the warning about Insecure being true. `Insecure` is not our
default configuration, but need it to work in some cases.
This commit is contained in:
Ralf Haferkamp
2022-02-21 17:39:05 +01:00
committed by GitHub
parent 4cf52e5976
commit 70a08774bd
+2 -1
View File
@@ -63,7 +63,8 @@ func NewService(opts ...Option) Service {
var tlsConf *tls.Config
if options.Config.Identity.LDAP.Insecure {
tlsConf = &tls.Config{
InsecureSkipVerify: true,
//nolint:gosec // We need the ability to run with "insecure" (dev/testing)
InsecureSkipVerify: options.Config.Identity.LDAP.Insecure,
}
}