From 50651ca6c08613b9861034ced6189a35430368bd Mon Sep 17 00:00:00 2001 From: James Page Date: Mon, 9 Apr 2018 11:29:51 +0100 Subject: [PATCH] Enable proxy header parsing Ensure that oslo.middleware parses any proxy information forwarded from haproxy/apache with regards to protocol; this ensures that https connections are correctly detected. Change-Id: I64e8c14123e5d12850902ce99490697ca4bb853d Closes-Bug: 1758675 --- templates/mitaka/cinder.conf | 3 +++ templates/ocata/cinder.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/templates/mitaka/cinder.conf b/templates/mitaka/cinder.conf index 624f3a46..171fa1b3 100644 --- a/templates/mitaka/cinder.conf +++ b/templates/mitaka/cinder.conf @@ -76,3 +76,6 @@ lock_path = /var/lock/cinder # XXX: hack to work around http://pad.lv/1516085 # will be superseded by SRU to cinder package encryption_auth_url = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v3 + +[oslo_middleware] +enable_proxy_headers_parsing = True diff --git a/templates/ocata/cinder.conf b/templates/ocata/cinder.conf index eba4daf6..a8e8fec2 100644 --- a/templates/ocata/cinder.conf +++ b/templates/ocata/cinder.conf @@ -62,3 +62,6 @@ lock_path = /var/lock/cinder # XXX: hack to work around http://pad.lv/1516085 # will be superseded by SRU to cinder package encryption_auth_url = {{ service_protocol }}://{{ service_host }}:{{ service_port }}/v3 + +[oslo_middleware] +enable_proxy_headers_parsing = True