Merge "Raise maximum allowed secret size"
This commit is contained in:
commit
2e9d3ae6b8
@ -29,8 +29,8 @@ from oslo_service import _options
|
|||||||
from barbican import i18n as u
|
from barbican import i18n as u
|
||||||
import barbican.version
|
import barbican.version
|
||||||
|
|
||||||
MAX_BYTES_REQUEST_INPUT_ACCEPTED = 15000
|
MAX_BYTES_REQUEST_INPUT_ACCEPTED = 25000
|
||||||
DEFAULT_MAX_SECRET_BYTES = 10000
|
DEFAULT_MAX_SECRET_BYTES = 20000
|
||||||
KS_NOTIFICATIONS_GRP_NAME = 'keystone_notifications'
|
KS_NOTIFICATIONS_GRP_NAME = 'keystone_notifications'
|
||||||
|
|
||||||
context_opts = [
|
context_opts = [
|
||||||
|
@ -628,7 +628,7 @@ class WhenGettingPuttingOrDeletingSecret(utils.BarbicanAPIBaseTestCase):
|
|||||||
|
|
||||||
self.assertEqual(201, resp.status_int)
|
self.assertEqual(201, resp.status_int)
|
||||||
|
|
||||||
text_too_big = 'x' * 10050
|
text_too_big = 'x' * 20050
|
||||||
put_resp = self.app.put(
|
put_resp = self.app.put(
|
||||||
'/secrets/{0}'.format(secret_uuid),
|
'/secrets/{0}'.format(secret_uuid),
|
||||||
text_too_big,
|
text_too_big,
|
||||||
|
@ -36,7 +36,7 @@ conf_multiple_backends_enabled = CONF.keymanager.\
|
|||||||
|
|
||||||
|
|
||||||
class TestCase(oslotest.BaseTestCase):
|
class TestCase(oslotest.BaseTestCase):
|
||||||
max_payload_size = 10000
|
max_payload_size = 20000
|
||||||
max_sized_payload = b'a' * max_payload_size
|
max_sized_payload = b'a' * max_payload_size
|
||||||
oversized_payload = b'a' * (max_payload_size + 1)
|
oversized_payload = b'a' * (max_payload_size + 1)
|
||||||
max_field_size = 255
|
max_field_size = 255
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
The default maximum secret size has been increased from 10 kB to 20 kb, and
|
||||||
|
the default maximum request size has been increased from 15 kB to 25 kB.
|
Loading…
x
Reference in New Issue
Block a user