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.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

kombu_fernet_serializers-0.2.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kombu-fernet-serializers-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for kombu-fernet-serializers-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3ef2b5fd4f571ce399eaeb8bf27179c052e1103eea9e26cb1a950029ef70ae53
MD5 3466362db5cb7e82b09528e64ffc2db5
BLAKE2b-256 7a6a540c2c0bb53a9120a52c5e83131154f3c63b6c03166b95c8dccab478616a

See more details on using hashes here.

File details

Details for the file kombu_fernet_serializers-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kombu_fernet_serializers-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for kombu_fernet_serializers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f76b93e82e9c923dbe4a05822e7eb6c5aa783d9a8223100a410f8fafc0ca7026
MD5 8d0c51e92aa08bd1c70552dc4d10c792
BLAKE2b-256 147395bae3bcceddaf945da148e0d83b2bc1f2d4d6c3ab22d24f06822530f381

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