Skip to content

Encrypt dotenv file inplace more than once should be failsafe. #1384

@r10r

Description

@r10r

Oh no It hit me again. After changing the configuration in .sops.yaml I usually run sops -i -d; sops -i -e on the encrypted files to apply the changes. (Maybe there is a better way to do this ?)

But if I run sops -i -e twice on a file, then the file can not be encrypted afterwards and sops returns the error MAC mismatch. File has .... Any succeeding sops -i -e call on a file should abort if the file is already encrypted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions