Skip to content

Idea: add cipher step #5

@danbraik

Description

@danbraik

Hi,
thank you for the automation.

It may be a bad idea to keep plain data if there is some sensible one.
To keep things simple, we can just add a step to encrypt the files.

For example:


- name: Encrypt data.sql
        if: env.BACKUP_ENABLED == 'true'
        run: |
          openssl enc -aes-256-cbc -pbkdf2 -salt -in packages/database/prisma/backups/data.sql -out packages/database/prisma/backups/data.sql.enc -k "$CIPHER_KEY"
          rm packages/database/prisma/backups/data.sql

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