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

Add new verify_server_hostname to mitigate possibility of MITM #927

Merged
merged 11 commits into from
May 12, 2015
Merged

Conversation

armon
Copy link
Member

@armon armon commented May 11, 2015

Fixes #792. Previously, a compromised client could be restarted as a server and perform a MITM attack against the cluster. With this PR, TLS certs can be generated matching the pattern of "server..", which is optionally verified using this flag. This prevents a MITM by a compromised client, as the TLS handshake will always fail.

This should be the default, but it would break all currently TLS secured clusters unless they used this specific SAN already, which is unlikely. In the future, we will deprecate support for this being false, and verify_outgoing will just imply this behavior.

@ryanuber
Copy link
Member

This LGTM!

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.

Allow verification of server capabilities via TLS SAN
2 participants