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

fix: allow for newlines in keys #256

Merged
merged 1 commit into from
Apr 26, 2024
Merged

fix: allow for newlines in keys #256

merged 1 commit into from
Apr 26, 2024

Conversation

spectre256
Copy link
Contributor

Previously, empty lines in the keys would be interpreted as a recipient key, leading to the error message age: Error: unknown recipient type: "". This is easy to do if you keep your ssh keys in separate files then add them to secrets.nix using builtins.readFile, since editors like vim will add an invisible newline to the end of every file. (unless you set noeol)

This fixes the issue by ignoring empty lines.

@martijnboers
Copy link

@ryantm maybe you can look at this or #250 or #249?

Copy link
Owner

@ryantm ryantm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@ryantm ryantm merged commit 24a7ea3 into ryantm:main Apr 26, 2024
4 checks passed
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 this pull request may close these issues.

3 participants