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

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

Closed
akanix42 opened this issue Jul 23, 2020 · 4 comments
Closed

Comments

@akanix42
Copy link

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"'
@autrilla
Copy link
Contributor

Thanks for pointing this out. I opened #706 to handle this.

@DrPhil
Copy link

DrPhil commented Aug 20, 2020

Duplicate of #702?

@ajvb
Copy link
Contributor

ajvb commented Sep 14, 2020

@ajvb ajvb closed this as completed Sep 14, 2020
@chrisrink10
Copy link

Reverting this change broke sops for any files created or converted to the 3.5.x format.

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

5 participants