Deprecate [api] use_forwarded_for
... because functionality of this parameter is effectively duplicate of the HTTPProxyToWSGI middleware in oslo.middleware library. Closes-Bug: #1967686 Change-Id: Ifebcfb6b5c1594c075bb9c152a06aa7af7c61bc8
This commit is contained in:
@@ -6,7 +6,7 @@ use = egg:Paste#urlmap
|
|||||||
/: meta
|
/: meta
|
||||||
|
|
||||||
[pipeline:meta]
|
[pipeline:meta]
|
||||||
pipeline = cors metaapp
|
pipeline = cors http_proxy_to_wsgi metaapp
|
||||||
|
|
||||||
[app:metaapp]
|
[app:metaapp]
|
||||||
paste.app_factory = nova.api.metadata.handler:MetadataRequestHandler.factory
|
paste.app_factory = nova.api.metadata.handler:MetadataRequestHandler.factory
|
||||||
|
@@ -42,7 +42,11 @@ Determine the strategy to use for authentication.
|
|||||||
"""),
|
"""),
|
||||||
cfg.BoolOpt("use_forwarded_for",
|
cfg.BoolOpt("use_forwarded_for",
|
||||||
default=False,
|
default=False,
|
||||||
|
deprecated_for_removal=True,
|
||||||
|
deprecated_reason='This feature is duplicate of the HTTPProxyToWSGI '
|
||||||
|
'middleware in oslo.middleware',
|
||||||
deprecated_group="DEFAULT",
|
deprecated_group="DEFAULT",
|
||||||
|
deprecated_since='26.0.0',
|
||||||
help="""
|
help="""
|
||||||
When True, the 'X-Forwarded-For' header is treated as the canonical remote
|
When True, the 'X-Forwarded-For' header is treated as the canonical remote
|
||||||
address. When False (the default), the 'remote_address' header is used.
|
address. When False (the default), the 'remote_address' header is used.
|
||||||
|
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The default ``api-paste.ini`` file has been updated and now the Metadata
|
||||||
|
API pipeline includes the ``HTTPProxyToWSGI`` middleware.
|
||||||
|
|
||||||
|
deprecations:
|
||||||
|
- |
|
||||||
|
The ``[api] 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 nova.conf.
|
Reference in New Issue
Block a user