Make deploying client bundle certificate optional#458
Make deploying client bundle certificate optional#458ehelms wants to merge 1 commit intotheforeman:masterfrom
Conversation
|
The puppet-foreman_proxy_content module includes |
I always had questions about this. Why is the reverse proxy configured with a private key? That just screams potential security holes to me. Quoting https://httpd.apache.org/docs/current/mod/mod_ssl.html#sslproxymachinecertificatefile
Why do we need that? |
I believe this is used to perform re-encryption because SSL was being terminated in Apache on the Capsule and we then need to proxy the communication while preserving the SSL client certificate header (https://github.com/theforeman/puppet-foreman_proxy_content/blob/master/manifests/reverse_proxy.pp#L62). |
|
My expectation is that it would simply result in a different SSL client certificate header. The one belongs to the certificate & private key provided in the bundle. |
|
My understanding is that without setting this, the proxy cannot present a valid certificate to the Apache on Foreman. While this appears to work without SSLProxyMachineCertificateFile, there are errors within the log: In all cases, the client certificate information has to be extracted and put into a new header that is sent along, this line (https://github.com/theforeman/puppet-foreman_proxy_content/blob/master/manifests/reverse_proxy.pp#L62) because the client certificates cannot be passed along. |
3047eb1 to
ec4826d
Compare
Currently we deploy this certificate in all deployments but it should only be deployed onto a foreman-proxy where reverse proxy is present. It is useless and unused on a Foreman deployment. This keeps the default behaviour by defaulting to 'present' but provides a way to set this to false in
puppet-foreman_proxy_content(PR to follow).