Added olso_middleware.sizelimit support
Change-Id: I484e4a88993196f63c8c9285dc2772507cc4d8c5
This commit is contained in:
parent
7310986de9
commit
a81cf552ce
@ -26,4 +26,5 @@ Octavia Configuration Options
|
|||||||
oslo.db
|
oslo.db
|
||||||
oslo.log
|
oslo.log
|
||||||
oslo.messaging
|
oslo.messaging
|
||||||
|
oslo.middleware.sizelimit
|
||||||
cotyledon
|
cotyledon
|
||||||
|
@ -9,6 +9,7 @@ namespace = oslo.messaging
|
|||||||
namespace = oslo.middleware.cors
|
namespace = oslo.middleware.cors
|
||||||
namespace = oslo.middleware.http_proxy_to_wsgi
|
namespace = oslo.middleware.http_proxy_to_wsgi
|
||||||
namespace = oslo.middleware.healthcheck
|
namespace = oslo.middleware.healthcheck
|
||||||
|
namespace = oslo.middleware.sizelimit
|
||||||
namespace = oslo.policy
|
namespace = oslo.policy
|
||||||
namespace = keystonemiddleware.audit
|
namespace = keystonemiddleware.audit
|
||||||
namespace = keystonemiddleware.auth_token
|
namespace = keystonemiddleware.auth_token
|
||||||
|
@ -20,6 +20,7 @@ from oslo_log import log as logging
|
|||||||
from oslo_middleware import cors
|
from oslo_middleware import cors
|
||||||
from oslo_middleware import http_proxy_to_wsgi
|
from oslo_middleware import http_proxy_to_wsgi
|
||||||
from oslo_middleware import request_id
|
from oslo_middleware import request_id
|
||||||
|
from oslo_middleware import sizelimit
|
||||||
from pecan import configuration as pecan_configuration
|
from pecan import configuration as pecan_configuration
|
||||||
from pecan import make_app as pecan_make_app
|
from pecan import make_app as pecan_make_app
|
||||||
|
|
||||||
@ -103,4 +104,6 @@ def _wrap_app(app):
|
|||||||
expose_headers=['X-Auth-Token', 'X-Openstack-Request-Id']
|
expose_headers=['X-Auth-Token', 'X-Openstack-Request-Id']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
app = sizelimit.RequestBodySizeLimiter(app, cfg.CONF)
|
||||||
|
|
||||||
return app
|
return app
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
Octavia now uses the oslo middleware sizelimit module. It allows to limit
|
||||||
|
the size of the incoming requests in the API. Admins may need to ajust the
|
||||||
|
``[oslo_middleware].max_request_body_size`` setting to their needs. The
|
||||||
|
default value for ``max_request_body_size`` is 114688 bytes.
|
Loading…
Reference in New Issue
Block a user