Manage oslo_middleware/max_request_body_size
So that we can increase it from the default 114688
Useful in case for example the OS-Federation mapping is too large.
If this limit is breached keystone will return a 413 Entity Too Large
and not log anything to keystone.log.
Closes-Bug: #1835161
Change-Id: If9fc5c0bb5d6216b8656ee1673e1812c543de305
Signed-off-by: Johan Guldmyr <johan.guldmyr@csc.fi>
(cherry picked from commit a60980f3da
)
This commit is contained in:
parent
d280980d0e
commit
972ba8729d
|
@ -532,6 +532,10 @@
|
|||
# HTTPProxyToWSGI middleware.
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*max_request_body_size*]
|
||||
# (Optional) Set max request body size
|
||||
# Defaults to $::os_service_default.
|
||||
#
|
||||
# [*purge_config*]
|
||||
# (Optional) Whether to set only the specified config options
|
||||
# in the keystone config.
|
||||
|
@ -681,6 +685,7 @@ class keystone(
|
|||
$keystone_group = $::keystone::params::keystone_group,
|
||||
$manage_policyrcd = false,
|
||||
$enable_proxy_headers_parsing = $::os_service_default,
|
||||
$max_request_body_size = $::os_service_default,
|
||||
$purge_config = false,
|
||||
$amqp_durable_queues = $::os_service_default,
|
||||
# DEPRECATED PARAMETERS
|
||||
|
@ -841,6 +846,7 @@ admin_token will be removed in a later release")
|
|||
|
||||
oslo::middleware { 'keystone_config':
|
||||
enable_proxy_headers_parsing => $enable_proxy_headers_parsing,
|
||||
max_request_body_size => $max_request_body_size,
|
||||
}
|
||||
|
||||
# configure based on the catalog backend
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
features:
|
||||
- |
|
||||
Add support to configure `[oslo_middleware]/max_request_body_size` with
|
||||
`$max_request_body_size` in the `keystone::` class.
|
|
@ -666,6 +666,14 @@ describe 'keystone' do
|
|||
)}
|
||||
end
|
||||
|
||||
describe 'setting max_request_body_size' do
|
||||
let :params do
|
||||
default_params.merge({:max_request_body_size => '1146880' })
|
||||
end
|
||||
|
||||
it { is_expected.to contain_keystone_config('oslo_middleware/max_request_body_size').with_value('1146880') }
|
||||
end
|
||||
|
||||
describe 'setting sql policy driver' do
|
||||
let :params do
|
||||
default_params.merge({:policy_driver => 'sql' })
|
||||
|
|
Loading…
Reference in New Issue