Skip to main content

Symmetrically encrypted serializers for Kombu

Project description

This library registers a set of Kombu serializers which take those built into Kombu and symmetrically encrypts them using Fernet.

The encryption key is accessed via the KOMBU_FERNET_KEY environment variable. To set the encryption key:

import os
from cryptography.fernet import Fernet

key = Fernet.generate_key()
os.environ['KOMBU_FERNET_KEY'] = key

To try it out, start a redis server and from the example directory, run:

pip install celery redis
celery -A tasks worker

Then from another shell:

python -c "from tasks import add; add.delay(1, 2)"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kombu-fernet-serializers-0.0.3.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file kombu-fernet-serializers-0.0.3.tar.gz.

File metadata

File hashes

Hashes for kombu-fernet-serializers-0.0.3.tar.gz
Algorithm Hash digest
SHA256 86db14c4674627181f24d05fb6cd99ba11fb1bdcd3f634bc3d3d08d065434a1d
MD5 5eb502c8b8e08945ff916c55cc2a7767
BLAKE2b-256 736d3cac21470f70c7f49e51f160244008590c3bd4eca63398a657c4a76fe5a1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page