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
File details
Details for the file kombu-fernet-serializers-0.0.4.tar.gz
.
File metadata
- Download URL: kombu-fernet-serializers-0.0.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7739ef69455ef99ad2d84490e3ea14f91a00ec144a48b576bc3cd63cb2ef24cb |
|
MD5 | 038ea7e344ca757cb8ad63703fbf0293 |
|
BLAKE2b-256 | cbc7b55236f73df759425d3143fa3a431cf4e1a28f8f870f448aaf8b18200dea |