Haproxy: When using TLS everywhere, use verifyhost for the balancermembers
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 18 Apr 2017 11:49:09 +0000 (14:49 +0300)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 18 Apr 2017 11:51:03 +0000 (14:51 +0300)
This checks that the subjectAltName in the backend server's certificate
matches the server's name that was intended to be used.

Change-Id: If1c61e1becf9cc84c9b18835aef1eaaa8c0d4341

manifests/haproxy.pp

index a6bd1eb..d497056 100644 (file)
@@ -718,6 +718,9 @@ class tripleo::haproxy (
 
   if $enable_internal_tls {
     $internal_tls_member_options = ['ssl', 'verify required', "ca-file ${ca_bundle}"]
+    Haproxy::Balancermember {
+      verifyhost => true
+    }
   } else {
     $internal_tls_member_options = []
   }