Skip to content
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

Merged
merged 10 commits into from
Feb 28, 2018

Conversation

bharath-b23
Copy link
Contributor

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.

if disableClientCerts {
tlsConf.ClientAuth = tls.NoClientCert
}
if !disableClientCerts {
Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@jefferai jefferai added this to the 0.9.6 milestone Feb 28, 2018
@jefferai
Copy link
Member

Thanks!

@jefferai jefferai merged commit 0652461 into hashicorp:master Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants