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

Encryption process strips leading comments #374

Closed
grantbachman opened this issue Aug 30, 2018 · 2 comments
Closed

Encryption process strips leading comments #374

grantbachman opened this issue Aug 30, 2018 · 2 comments

Comments

@grantbachman
Copy link

grantbachman commented Aug 30, 2018

I'm using Sops 3.05, and found that if a file contains a leading comment, like in the example below, it is completely absent in the encrypted version of the file. Is there a reason for this or is this just a bug?

# Comment
key: value
# Another Comment
@autrilla
Copy link
Contributor

autrilla commented Aug 30, 2018

This is a known bug (see #300 (comment)). The reason for this is that it was too complicated to support this in our YAML parser. A contribution that fixes this would of course be very welcome.

@grantbachman
Copy link
Author

Thanks for the quick reply! Completely understandable. It seems more and more tools are written in Go, which I don't yet know...

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

2 participants