diff options
-rw-r--r-- | etc/heat/api-paste.ini | 9 | ||||
-rw-r--r-- | heat/api/middleware/ssl.py | 5 | ||||
-rw-r--r-- | heat/api/openstack/__init__.py | 3 | ||||
-rw-r--r-- | requirements.txt | 1 |
4 files changed, 13 insertions, 5 deletions
diff --git a/etc/heat/api-paste.ini b/etc/heat/api-paste.ini index b0613156a..5ea89b5ae 100644 --- a/etc/heat/api-paste.ini +++ b/etc/heat/api-paste.ini @@ -1,7 +1,7 @@ # heat-api pipeline [pipeline:heat-api] -pipeline = cors request_id faultwrap ssl versionnegotiation osprofiler authurl authtoken context apiv1app +pipeline = cors request_id faultwrap http_proxy_to_wsgi versionnegotiation osprofiler authurl authtoken context apiv1app # heat-api pipeline for standalone heat # ie. uses alternative auth backend that authenticates users against keystone @@ -12,7 +12,7 @@ pipeline = cors request_id faultwrap ssl versionnegotiation osprofiler authurl a # flavor = standalone # [pipeline:heat-api-standalone] -pipeline = cors request_id faultwrap ssl versionnegotiation authurl authpassword context apiv1app +pipeline = cors request_id faultwrap http_proxy_to_wsgi versionnegotiation authurl authpassword context apiv1app # heat-api pipeline for custom cloud backends # i.e. in heat.conf: @@ -78,9 +78,8 @@ paste.filter_factory = heat.common.context:ContextMiddleware_filter_factory [filter:ec2authtoken] paste.filter_factory = heat.api.aws.ec2token:EC2Token_filter_factory -[filter:ssl] -paste.filter_factory = heat.common.wsgi:filter_factory -heat.filter_factory = heat.api.openstack:sslmiddleware_filter +[filter:http_proxy_to_wsgi] +paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory # Middleware to set auth_url header appropriately [filter:authurl] diff --git a/heat/api/middleware/ssl.py b/heat/api/middleware/ssl.py index e7c6bcc24..42f74c7f8 100644 --- a/heat/api/middleware/ssl.py +++ b/heat/api/middleware/ssl.py @@ -11,6 +11,7 @@ # License for the specific language governing permissions and limitations # under the License. +from debtcollector import removals from oslo_config import cfg from oslo_middleware import ssl @@ -24,6 +25,10 @@ ssl_middleware_opts = [ ] +removals.removed_module(__name__, + "oslo_middleware.http_proxy_to_wsgi") + + class SSLMiddleware(ssl.SSLMiddleware): def __init__(self, application, *args, **kwargs): diff --git a/heat/api/openstack/__init__.py b/heat/api/openstack/__init__.py index cd5343c66..c7891313d 100644 --- a/heat/api/openstack/__init__.py +++ b/heat/api/openstack/__init__.py @@ -11,6 +11,7 @@ # License for the specific language governing permissions and limitations # under the License. +from debtcollector import removals from heat.api.middleware import fault from heat.api.middleware import ssl from heat.api.middleware import version_negotiation as vn @@ -26,5 +27,7 @@ def faultwrap_filter(app, conf, **local_conf): return fault.FaultWrapper(app) +@removals.remove(message='Use oslo_middleware.http_proxy_to_wsgi instead.', + version='6.0.0', removal_version='8.0.0') def sslmiddleware_filter(app, conf, **local_conf): return ssl.SSLMiddleware(app) diff --git a/requirements.txt b/requirements.txt index b0347a4fe..fb6cb7ed5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,6 +6,7 @@ pbr>=1.6 # Apache-2.0 Babel>=1.3 # BSD croniter>=0.3.4 # MIT License cryptography>=1.0 # BSD/Apache-2.0 +debtcollector>=0.3.0 # Apache-2.0 eventlet>=0.17.4 # MIT greenlet>=0.3.2 # MIT keystonemiddleware>=4.0.0 # Apache-2.0 |