Skip to content

sops 3.6 fails to properly decrypt .env files created using sops 3.5 #705

@akanix42

Description

@akanix42

sops 3.6.0 is adding additional quotes when decrypting .env files from version 3.5.0, which results in a breaking change as the output is no longer correct.

This appears to be caused by this change: #622, which from what I gather was supposed to be backwards compatible with v3.5.0 files.
This issue is separate from #702 as that deals with the reverse (3.6.0 files being read by 3.5.0).

Example showing the issue:

❯ cat test.dev-plain.env
FOO="foo"
❯ sops -e --output test.dev-3_5.env test.dev-plain.env
❯ sops -d test.dev-3_5.env
FOO="foo"
❯ ~/Downloads/sops-v3.6.0.darwin -d test.dev-3_5.env
FOO='"foo"'

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