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

Carriage return (% / ^M) added to every entry #685

Open
Tjorbenn opened this issue Nov 27, 2024 · 2 comments
Open

Carriage return (% / ^M) added to every entry #685

Tjorbenn opened this issue Nov 27, 2024 · 2 comments

Comments

@Tjorbenn
Copy link

All my unencrypted entries in /run/secrets/... have a carriage return symbol added to the end of them making my passwords fail (I use them to authenticate my email), because a "^M" is added to the end of them, when neomutt/aerc is trying to authenticate with IMAP servers.
I get the passwords via the passwordCommand cat /run/secrets/.... When I just try the command in the terminal, a "%" symbol is added to the end of the password.

Is this an issue with sops/sops-nix, or is this an issue with my passwordCommand?

@Tjorbenn
Copy link
Author

Tjorbenn commented Nov 27, 2024

I also tried different editors to make sure I'm not adding them while I input the password or when I paste them.

@Tjorbenn
Copy link
Author

A fix is to run the output through dos2unix, even though nothing is ever input from Windows

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

1 participant