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

Nix daemon: allow setting sshPublicHostKey for buildMachines #14017

Closed
wants to merge 1 commit into from
Closed

Nix daemon: allow setting sshPublicHostKey for buildMachines #14017

wants to merge 1 commit into from

Conversation

domenkozar
Copy link
Member

Things done:
  • Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
  • Built on platform(s)
    • NixOS
    • OS X
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.
More

cc @edolstra

@domenkozar domenkozar added this to the 16.03 milestone Mar 18, 2016
@peti
Copy link
Member

peti commented Mar 18, 2016

I usually configure

  programs.ssh = {
    knownHosts."foo.cryp.to".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIObJL16zTudDie5u3Bu0XuC3BVlqeleb/9Ru8pObo9Bf";
    knownHosts."bar.cryp.to".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIF999GR+egNpI67jLR2A0zuyMp2iSVME/oDUNjeqZVa";
  };

in configuration.nix. Is that not sufficient?

@domenkozar
Copy link
Member Author

See peti/hydra-tutorial#2 for background information.

@edolstra
Copy link
Member

Yeah, programs.ssh.knownHosts is what we do for the static machines in the Delft buildfarm too.

@domenkozar
Copy link
Member Author

So this should be abandoned all together then?

@domenkozar domenkozar closed this Mar 20, 2016
@Ericson2314
Copy link
Member

As long as the functionality implemented in 2a7fbd57ccce6a309aebc13b076eaee096987a86 still exists in Nix, I don't see any reason not to do this. The commit message mentions various distributed settings in which it claims the known hosts method is not convenient, too.

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.

None yet

4 participants