Skip to content

Commit

Permalink
Switch back to TLSv1.2 on the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Jan 14, 2015
1 parent a59052e commit 42028d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion salt/haproxy/config/haproxy.cfg.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ backend {{ service }}
{% endfor -%}

{{ "{{" }}range service "{{ service }}@{{ pillar.dc }}"}}
{% raw %}server {{.Name}} {{.Address}}:{{.Port}}{% endraw %}{% if config.get("check", True) %} check{% endif %} ssl verifyhost {{ config.get("verify_host", service + ".psf.io") }} ca-file {{ config.get("ca-file", "PSF_CA.pem") }}{{ "{{end}}" }}
{% raw %}server {{.Name}} {{.Address}}:{{.Port}}{% endraw %}{% if config.get("check", True) %} check{% endif %} ssl force-tlsv12 verifyhost {{ config.get("verify_host", service + ".psf.io") }} ca-file {{ config.get("ca-file", "PSF_CA.pem") }}{{ "{{end}}" }}

{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion salt/hg/config/hg.apache.conf.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SSLCertificateKeyFile /etc/ssl/private/hg.psf.io.pem
SSLCipherSuite {{ pillar["tls"]["ciphers"].get("backend", pillar["tls"]["ciphers"]["default"]) }}
SSLHonorCipherOrder on
# SSLProtocol TLSv1.2
SSLProtocol TLSv1.2

TransferLog /var/log/apache2/hg.access.log
ErrorLog /var/log/apache2/hg.error.log
Expand Down
4 changes: 1 addition & 3 deletions salt/nginx/config/fastly_params.jinja
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
port_in_redirect off;

ssl_ciphers {{ pillar["tls"]["ciphers"].get("backend", pillar["tls"]["ciphers"]["default"]) }};
# Once the LBs upgrade to Trusty try turning this back on.
# Also set force-tlsv12 back on the HAProxy backends.
# ssl_protocols TLSv1.2;
ssl_protocols TLSv1.2;

set_real_ip_from {{ pillar["psf_internal_network"] }};
set_real_ip_from {{ pillar["pypi_internal_network"] }};
Expand Down

0 comments on commit 42028d7

Please sign in to comment.