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 the accept argument to :class:~kombu.Consumer.

    ๐Ÿ”„ Changes

    • ๐Ÿ†• New utility function to disable/enable untrusted serializers.

      • :func:kombu.disable_insecure_serializers
      • :func:kombu.enable_insecure_serializers.
    • 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 existing on_decode_error callback

      Examples:

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