georgemarshall / django-cryptography

Easily encrypt data in Django
https://django-cryptography.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
371 stars 70 forks source link

Add support for using REMOTE_SECRET_KEY in combination with local SECRET_KEY for decrypting. #35

Open jackton1 opened 4 years ago

jackton1 commented 4 years ago

This should address most of the issues related to BadSignature.

georgemarshall commented 4 years ago

I am not following as to how REMOTE_SECRET_KEY would work in conjunction with SECRET_KEY. This description is very vague.

jackton1 commented 4 years ago

The issue here is using multiple SECRET_KEY's often for some test database you get to face errors like #26 due to not using the same key to decrypt the secret.

It would make sense to provide a possible MASTER KEY or a list of possible keys that can be used in tandem.

georgemarshall commented 4 years ago

Understood, I will add in support for multiple keys.