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

support encrypting plain passwords for hashedPasswordFiles #492

Open
RonnyPfannschmidt opened this issue Feb 17, 2024 · 5 comments
Open

Comments

@RonnyPfannschmidt
Copy link

with nix starting to warn about passwordFile being deprecated and the migration to hashedPasswordFile

i'd still like to use plain passwords in my sops files (in order to avoid the need for secondary password managers or sync)

would it be fesible to make the decryption of password files appy mkpasswd as a filter?

@Mic92
Copy link
Owner

Mic92 commented Mar 14, 2024

Any idea why it's deprecated?

@bjornfor
Copy link

Is this about NixOS/nixpkgs@5666a37? If so, I believe passwordFile has always been expected to contain a hashed password, hence it was a good idea to rename the option.

@RonnyPfannschmidt
Copy link
Author

Interesting I wasn't aware of that
Is there a recommend patterns or should I just create a nix config for the hashed passwords

@the-furry-hubofeverything
Copy link
Contributor

Interesting I wasn't aware of that Is there a recommend patterns or should I just create a nix config for the hashed passwords

Personally, since I use root passwords sparingly (I use my user account for sudo), I generate a device unique password and add it as a comment in the sops file, which gets encrypted along with the hashed password.

@RonnyPfannschmidt
Copy link
Author

I migrated towards a pattern of storring the hashed passwords alongside the unhashed ones in my sops configuration

I'd still appreciate a utility to deliver a password as hashed password file without having to store both

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

4 participants