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

Add encryption for backups #13

Open
tkhduracell opened this issue Mar 19, 2021 · 0 comments
Open

Add encryption for backups #13

tkhduracell opened this issue Mar 19, 2021 · 0 comments

Comments

@tkhduracell
Copy link
Contributor

Would adding encryption be useful?

I have an internal fork of this repo that also adds encryption. This basically add a ENCRYPTION_KEY var that you point to a key file.

ENCRYPTION_KEY: Use AES encryption to protect the uploaded file.

Cons:

  • Needs openssl to be installed in Dockerfile

Basically it adds yet another step in the backup process.

def encrypt_backup():
    out = backup_file + '.aes'
    cmd("openssl aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in %s -out %s -pass file:%s" % (
        backup_file, out, ENCRYPTION_KEY
    ))
    return out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant