Remove secure_proxy_ssl_header logic

According to nova doc, secure_proxy_ssl_header has been deprecated and
has no effect [1]. Since these variables are not used for other purpose
we drop them.

[1] https://docs.openstack.org/nova/latest/configuration/config.html#oslo_middleware.secure_proxy_ssl_header

Change-Id: Ibc3ac4f0f3fb038463748f8c1608fa475374cf67
This commit is contained in:
Dmitriy Rabotyagov 2022-02-09 09:41:55 +02:00
parent 7589b7b66b
commit 5846e4d0b1
3 changed files with 7 additions and 9 deletions

View File

@ -291,12 +291,6 @@ nova_vencrypt_ca_certs: "/etc/pki/nova-novncproxy/ca-cert.pem"
# it is possible to remove the none option from the list
nova_vencrypt_auth_scheme: "vencrypt,none"
# Set to true when terminating SSL/TLS at a load balancer
nova_external_ssl: "{{ openstack_external_ssl | default(False) }}"
# External SSL forwarding proto
nova_secure_proxy_ssl_header: HTTP_X_FORWARDED_PROTO
## Nova global config
nova_image_cache_manager_interval: 0

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
Variables ``nova_external_ssl`` and ``nova_secure_proxy_ssl_header``
have been removed since secure_proxy_ssl_header option from nova.conf
they controlled has been deprecated and has no effect.

View File

@ -279,9 +279,7 @@ insecure = {{ keystone_service_adminuri_insecure | bool }}
[wsgi]
api_paste_config = /etc/nova/api-paste.ini
{% if nova_external_ssl | bool %}
secure_proxy_ssl_header = {{ nova_secure_proxy_ssl_header }}
{% endif %}
[api]
use_forwarded_for = {{ nova_network_services[nova_network_type]['use_forwarded_for'] | bool }}