We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a35b2 commit 5af3b4aCopy full SHA for 5af3b4a
config/config.go
@@ -97,9 +97,7 @@ func (c *Config) validate() error {
97
if am.TLS != nil {
98
// For cert-based auth (type: tls), cert and key are required
99
// For other auth types, TLS config is optional and used for transport security
100
- if strings.ToLower(am.Type) == "tls" {
101
- // Already validated above that cert and key are present
102
- } else {
+ if strings.ToLower(am.Type) != "tls" {
103
// For non-TLS auth types, if cert/key are provided, both must be present
104
if (am.TLS.CertFile != "") != (am.TLS.KeyFile != "") {
105
return fmt.Errorf("auth_module %s: if providing client certificate, both cert_file and key_file must be specified", name)
0 commit comments