kombu v2.5.10 Release Notes
-
๐ :release-date: 2013-04-11 06:10 P.M BST ๐ :release-by: Ask Solem
Note about upcoming changes for Kombu 3.0
Kombu 3 consumers will no longer accept pickle/yaml or msgpack 0๏ธโฃ by default, and you will have to explicitly enable untrusted deserializers either globally using :func:
kombu.enable_insecure_serializers
, or using theaccept
argument to :class:~kombu.Consumer
.๐ Changes
๐ New utility function to disable/enable untrusted serializers.
- :func:
kombu.disable_insecure_serializers
- :func:
kombu.enable_insecure_serializers
.
- :func:
Consumer:
accept
can now be used to specify a whitelist of content types to accept.If the accept whitelist is set and a message is received with a content type that is not in the whitelist then a :exc:
~kombu.exceptions.ContentDisallowed
exception is raised. Note that this error can be handled by the already existingon_decode_error
callbackExamples:
.. code-block:: python
Consumer(accept=['application/json']) Consumer(accept=['pickle', 'json'])
Now depends on amqp 1.0.11
๐ pidbox: Mailbox now supports the
accept
argument.Redis: More friendly error for when keys are missing.
๐ Connection URLs: The parser did not work well when there were multiple '+' tokens.
.. _version-2.5.9: