Deprecate [DEFAULT] use_forwarded_for
... because functionality of this parameter is effectively duplicate of the HTTPProxyToWSGI middleware in oslo.middleware library. Closes-Bug: #1967686 Change-Id: I4db615093b739c7ff582f348a6fb6eabb8068257
This commit is contained in:
parent
cbf142912d
commit
b24fc87a1d
@ -32,6 +32,10 @@ from manila.wsgi import common as base_wsgi
|
|||||||
use_forwarded_for_opt = cfg.BoolOpt(
|
use_forwarded_for_opt = cfg.BoolOpt(
|
||||||
'use_forwarded_for',
|
'use_forwarded_for',
|
||||||
default=False,
|
default=False,
|
||||||
|
deprecated_for_removal=True,
|
||||||
|
deprecated_reason='This feature is duplicate of the HTTPProxyToWSGI '
|
||||||
|
'middleware of oslo.middleware.',
|
||||||
|
deprecated_since='Zed',
|
||||||
help='Treat X-Forwarded-For as the canonical remote address. '
|
help='Treat X-Forwarded-For as the canonical remote address. '
|
||||||
'Only enable this if you have a sanitizing proxy.')
|
'Only enable this if you have a sanitizing proxy.')
|
||||||
|
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
The ``[DEFAULT] use_forwarded_for`` parameter has been deprecated. Instead
|
||||||
|
of using this parameter, add the ``HTTPProxyToWSGI`` middleware to api
|
||||||
|
pipelines, and ``[oslo_middleware] enable_proxy_headers_parsing = True``
|
||||||
|
to manila.conf.
|
Loading…
Reference in New Issue
Block a user