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

Implement a simple way to hook into local credential stores #4367

Closed
copumpkin opened this issue Oct 2, 2014 · 3 comments
Closed

Implement a simple way to hook into local credential stores #4367

copumpkin opened this issue Oct 2, 2014 · 3 comments

Comments

@copumpkin
Copy link
Member

Not sure if this can be done in nixpkgs or has to be in nix, but I recently added a fetchadc (#4327) fixed-output function that retrieves files from the Apple official developer download site. To use it, you need to put credentials into your config though, and seeing passwords in a cleartext file makes me feel icky. On Mac OS, it's not hard to use the security tool (which is bundled with Mac OS but I conveniently also added to nixpkgs recently in #4326) to look up credentials in the systemwide keychain, which doesn't seem bad to use in a fixed-output derivation, but I don't know how best to hook that into a function that someone could call in their confix.nix. Whatever it ends up being, I assume something similar could be done on linux.

This also seems tangentially related to NixOS/nix#329, although I don't envision the credentials ever making it into the store.

@bluescreen303
Copy link
Contributor

I use systemd-ask-password in my configuration.nix in a systemd service which pipes the answer to the program that needs it. Then I use systemd-tty-ask-password-agent on a tty to supply the password to the service.

@jagajaga
Copy link
Member

@copumpkin can't we do that yet? @bluescreen303 answered you?

@joachifm
Copy link
Contributor

joachifm commented Apr 3, 2016

Looks to me like this has been answered

@joachifm joachifm closed this as completed Apr 3, 2016
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