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

owncloud: don't store plaintext adminPassword in nix store #6842

Merged
merged 1 commit into from
Mar 17, 2015
Merged

owncloud: don't store plaintext adminPassword in nix store #6842

merged 1 commit into from
Mar 17, 2015

Conversation

philandstuff
Copy link
Contributor

Rather than using openssl to hash the password at build time, and hence
leaving the plaintext password world-readable in the nix store, we can
instead hash the password in the nix expression itself using
builtins.hashString.

I'm new to nix and nixpkgs so I would appreciate feedback on this PR. In particular, I note that hashString isn't used anywhere else in nixpkgs so I wonder if this somehow is not idiomatic.

Rather than using openssl to hash the password at build time, and hence
leaving the plaintext password world-readable in the nix store, we can
instead hash the password in the nix expression itself using
builtins.hashString.
lucabrunox pushed a commit that referenced this pull request Mar 17, 2015
owncloud: don't store plaintext adminPassword in nix store
@lucabrunox lucabrunox merged commit c91ccb4 into NixOS:master Mar 17, 2015
@lucabrunox
Copy link
Contributor

Who cares, looks cool. Merging, cc @edolstra if he's not in favor of using hashString we can revert :)

@philandstuff philandstuff deleted the hash-owncloud-admin-password branch March 18, 2015 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants