deprecate module heat.api.middleware.ssl
Use oslo_middleware.http_proxy_to_wsgi instead of oslo_middleware.ssl due to the 'oslo_middleware.ssl' module is deprecated. Change-Id: Ibb137049ca4005dd9a886de1ecc6b00dbae79789 Closes-Bug: #1526656
This commit is contained in:
parent
336f0f8f34
commit
ed33ec56ab
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
# heat-api pipeline
|
# heat-api pipeline
|
||||||
[pipeline:heat-api]
|
[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
|
# heat-api pipeline for standalone heat
|
||||||
# ie. uses alternative auth backend that authenticates users against keystone
|
# 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
|
# flavor = standalone
|
||||||
#
|
#
|
||||||
[pipeline:heat-api-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
|
# heat-api pipeline for custom cloud backends
|
||||||
# i.e. in heat.conf:
|
# i.e. in heat.conf:
|
||||||
@ -78,9 +78,8 @@ paste.filter_factory = heat.common.context:ContextMiddleware_filter_factory
|
|||||||
[filter:ec2authtoken]
|
[filter:ec2authtoken]
|
||||||
paste.filter_factory = heat.api.aws.ec2token:EC2Token_filter_factory
|
paste.filter_factory = heat.api.aws.ec2token:EC2Token_filter_factory
|
||||||
|
|
||||||
[filter:ssl]
|
[filter:http_proxy_to_wsgi]
|
||||||
paste.filter_factory = heat.common.wsgi:filter_factory
|
paste.filter_factory = oslo_middleware:HTTPProxyToWSGI.factory
|
||||||
heat.filter_factory = heat.api.openstack:sslmiddleware_filter
|
|
||||||
|
|
||||||
# Middleware to set auth_url header appropriately
|
# Middleware to set auth_url header appropriately
|
||||||
[filter:authurl]
|
[filter:authurl]
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from debtcollector import removals
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_middleware import ssl
|
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):
|
class SSLMiddleware(ssl.SSLMiddleware):
|
||||||
|
|
||||||
def __init__(self, application, *args, **kwargs):
|
def __init__(self, application, *args, **kwargs):
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from debtcollector import removals
|
||||||
from heat.api.middleware import fault
|
from heat.api.middleware import fault
|
||||||
from heat.api.middleware import ssl
|
from heat.api.middleware import ssl
|
||||||
from heat.api.middleware import version_negotiation as vn
|
from heat.api.middleware import version_negotiation as vn
|
||||||
@ -26,5 +27,7 @@ def faultwrap_filter(app, conf, **local_conf):
|
|||||||
return fault.FaultWrapper(app)
|
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):
|
def sslmiddleware_filter(app, conf, **local_conf):
|
||||||
return ssl.SSLMiddleware(app)
|
return ssl.SSLMiddleware(app)
|
||||||
|
@ -6,6 +6,7 @@ pbr>=1.6 # Apache-2.0
|
|||||||
Babel>=1.3 # BSD
|
Babel>=1.3 # BSD
|
||||||
croniter>=0.3.4 # MIT License
|
croniter>=0.3.4 # MIT License
|
||||||
cryptography>=1.0 # BSD/Apache-2.0
|
cryptography>=1.0 # BSD/Apache-2.0
|
||||||
|
debtcollector>=0.3.0 # Apache-2.0
|
||||||
eventlet>=0.17.4 # MIT
|
eventlet>=0.17.4 # MIT
|
||||||
greenlet>=0.3.2 # MIT
|
greenlet>=0.3.2 # MIT
|
||||||
keystonemiddleware>=4.0.0 # Apache-2.0
|
keystonemiddleware>=4.0.0 # Apache-2.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user