Skip to content

Add encryption for backups #13

Description

@tkhduracell

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions