fix(clients): inline Go gosec directive and strip IPv6 brackets in Python authority split

This commit is contained in:
Joseph Doherty
2026-06-01 07:57:22 -04:00
parent e5c704de69
commit 9bdb899774
3 changed files with 27 additions and 6 deletions
+3 -5
View File
@@ -234,11 +234,9 @@ func tlsConfigForOptions(opts Options) *tls.Config {
return nil
}
return &tls.Config{
MinVersion: tls.VersionTLS12,
ServerName: opts.ServerNameOverride,
//nolint:gosec // internal tool; self-signed cert is the expected gateway default;
// opt-in to strict verification via RequireCertificateValidation.
InsecureSkipVerify: !opts.RequireCertificateValidation,
MinVersion: tls.VersionTLS12,
ServerName: opts.ServerNameOverride,
InsecureSkipVerify: !opts.RequireCertificateValidation, //nolint:gosec // internal tool; self-signed gateway cert expected; opt-in strict via RequireCertificateValidation
}
}