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 cannot handle multi-line .env files #965

Open
karlschriek opened this issue Dec 2, 2021 · 0 comments · May be fixed by #1748
Open

SOPS cannot handle multi-line .env files #965

karlschriek opened this issue Dec 2, 2021 · 0 comments · May be fixed by #1748

Comments

@karlschriek
Copy link

karlschriek commented Dec 2, 2021

The parser that SOPS uses seems to have a different interpretation of what constitutes a dotenv file from what how bash views is. This relates in particular to encrypting/decrypt dotenvs that have multiline environement variables.

However, SOPS is not able to handle encrypting this file. Calling sops -e --pgp xxxxxxxx my-vars.env will produce the following error:

Error unmarshalling file: invalid dotenv input line: some values

The parser is trying to interpret the second line of BAR (which is "some values") as another key-value pair, which does not work.

This is a pretty major inconsistency.

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

Successfully merging a pull request may close this issue.

1 participant