Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database encryption #561

Open
eatyourpeas opened this issue Aug 31, 2023 · 2 comments
Open

Database encryption #561

eatyourpeas opened this issue Aug 31, 2023 · 2 comments
Assignees
Labels
to-close-with-confirmation awaiting confirmation from issue creator before closing

Comments

@eatyourpeas
Copy link
Member

Certain particularly sensitive data items should be encrypted before storing in the database.

@pacharanero
Copy link
Member

I've done a little looking around in terms of what encryption libraries are available, and this one seems fairly well maintained and modern

https://github.com/georgemarshall/django-cryptography/
https://django-cryptography.readthedocs.io/en/latest/index.html

We would inject the symmetric encryption key at runtime vian env var, which means it would require someone to capture the machine RAM state of the running Python/Django app/VM, in order to read key, and access the encrypted data.

If they obtained a 'static' file copy of the live DB they would not be able to read encrypted fields without the symmetric key.

Worth having a go at this before we go live? As it will make significant changes to the Models.

(And of course vital that we have the encryption key securely stored ourselves in a few places, because if we lost that, we would lose all the data!)

@dc2007git
Copy link
Contributor

@pacharanero is this still worth exploring if we have already gone live?

@dc2007git dc2007git added the to-close-with-confirmation awaiting confirmation from issue creator before closing label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-close-with-confirmation awaiting confirmation from issue creator before closing
Projects
None yet
Development

No branches or pull requests

3 participants