Deprecate [wsgi] secure_proxy_ssl_header

The functionality of this parameter is same as the http_proxy_to_wsgi
middleware in oslo.middleware. The http_proxy_to_wsgi middleware is
widely used in multiple OpenStack services and has been enabled in
default pipelines for several cycles. So the own implementation can be
completely replaced by the common one provided by the oslo library.

Change-Id: I5db80ca504e444346afcc264d3260861e54f266d
This commit is contained in:
Takashi Kajinami 2021-11-15 19:34:50 +09:00 committed by Takashi Kajinami
parent ed2bf3699d
commit 838706ded9
2 changed files with 11 additions and 0 deletions

View File

@ -71,6 +71,12 @@ Possible values:
cfg.StrOpt(
'secure_proxy_ssl_header',
deprecated_group='DEFAULT',
deprecated_for_removal=True,
deprecated_since='31.0.0',
deprecated_reason="""
The functionality of this parameter is duplicate of the http_proxy_to_wsgi
middleware of oslo.middleware and will be completely replaced.
""",
help="""
This option specifies the HTTP header used to determine the protocol scheme
for the original request, even if it was removed by a SSL terminating proxy.

View File

@ -0,0 +1,5 @@
---
deprecations:
- |
The ``[wsgi] secure_proxy_ssl_header`` parameter has been deprecated. Use
the ``http_proxy_to_wsgi`` middleware from ``oslo.middleware`` instead.