Added olso_middleware.sizelimit support

Change-Id: I484e4a88993196f63c8c9285dc2772507cc4d8c5
This commit is contained in:
Gregory Thiemonge 2023-11-28 03:37:57 -05:00
parent 7310986de9
commit a81cf552ce
4 changed files with 12 additions and 0 deletions

View File

@ -26,4 +26,5 @@ Octavia Configuration Options
oslo.db
oslo.log
oslo.messaging
oslo.middleware.sizelimit
cotyledon

View File

@ -9,6 +9,7 @@ namespace = oslo.messaging
namespace = oslo.middleware.cors
namespace = oslo.middleware.http_proxy_to_wsgi
namespace = oslo.middleware.healthcheck
namespace = oslo.middleware.sizelimit
namespace = oslo.policy
namespace = keystonemiddleware.audit
namespace = keystonemiddleware.auth_token

View File

@ -20,6 +20,7 @@ from oslo_log import log as logging
from oslo_middleware import cors
from oslo_middleware import http_proxy_to_wsgi
from oslo_middleware import request_id
from oslo_middleware import sizelimit
from pecan import configuration as pecan_configuration
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']
)
app = sizelimit.RequestBodySizeLimiter(app, cfg.CONF)
return app

View File

@ -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.