NixOS / nixops

NixOps is a tool for deploying to NixOS machines in a network or cloud.
https://nixos.org/nixops
GNU Lesser General Public License v3.0
1.84k stars 363 forks source link

storeKeysOnMachine does not respect user/group/permissions #666

Open domenkozar opened 7 years ago

domenkozar commented 7 years ago

If keys are stored into /nix/store, they are symlinked into /run/keys. Any chown/chmod calls then are made to the origin file, failing since it's part of /nix/store.

Possible solution would be to copy the keys, then chown call would work but we would also need to chmod.

See https://github.com/NixOS/nixops/pull/661/files#r116222331 for initial discussion.

rvolosatovs commented 4 years ago

This behavior should really be documented.