-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config parameter "tls_disable_client_certs" is wrongly evaluated. #4049
Conversation
LD_FLAGS can be used as environment variable
Merge latest changes to master
command/server/listener.go
Outdated
if disableClientCerts { | ||
tlsConf.ClientAuth = tls.NoClientCert | ||
} | ||
if !disableClientCerts { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if
section shouldn't be here. Only the first is needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If "tls_disable_client_certs" is set to false, then if client provides a certificate shouldn't it be validated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I overlooked the default value set.
…ts is set to true.
Thanks! |
Config parameter "tls_disable_client_certs" is evaluated wrongly, i.e. irrespective of the value set the action taken is that of when set to true.