Skip to content

hetzner: Don't create /root/.ssh/authorized_keys.#349

Merged
edolstra merged 1 commit intoNixOS:masterfrom
aszlig:hetzner-mutable-users
Oct 26, 2015
Merged

hetzner: Don't create /root/.ssh/authorized_keys.#349
edolstra merged 1 commit intoNixOS:masterfrom
aszlig:hetzner-mutable-users

Conversation

@aszlig
Copy link
Member

@aszlig aszlig commented Oct 21, 2015

Fixes configurations with users.mutableUsers = false.

I have no idea why I didn't use users.extraUsers.root.openssh.authorizedKeys.keys in the first place, but since NixOS/nixpkgs@6e76765 it's necessary to do so with users.mutableUsers set to false.

This is good, because now we shouldn't have cruft like .ssh/authorized_keys laying around just for NixOps to work.

However, I didn't look into the other backends whether they work with mutableUsers = false, because I'm not able to properly test them.

I have no idea why I didn't use
users.extraUsers.root.openssh.authorizedKeys.keys in the first place,
but since NixOS/nixpkgs@6e76765 it's necessary to do so with
users.mutableUsers set to false.

This is good, because now we shouldn't have cruft like
.ssh/authorized_keys laying around just for NixOps to work.

However, I didn't look into the other backends whether they work with
mutableUsers = false, because I'm not able to properly test them.

Also, please note that we still have to users.extraUsers instead of
users.users, because we want to retain backwards-compatibility.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
@aszlig aszlig force-pushed the hetzner-mutable-users branch from 1fe75c8 to 93bea39 Compare October 21, 2015 16:39
aszlig added a commit to aszlig/nixops that referenced this pull request Oct 23, 2015
hetzner: Don't create /root/.ssh/authorized_keys.
aszlig added a commit to openlab-aux/vuizvui that referenced this pull request Oct 23, 2015
Instead of merging all those PRs via the patches attribute, I've now
created a branch that has all those PRs merged, which are:

 * NixOS/nixops#201: Use dedicated SSH keypair for "none" backend
 * NixOS/nixops#348: Fixup and refactor Hetzner backend tests
 * NixOS/nixops#349: hetzner: Don't create /root/.ssh/authorized_keys
 * NixOS/nixops#350: Fix tests for the "none" backend

So our version of NixOps now should now correctly cope with
users.mutableUsers set to false.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
edolstra added a commit that referenced this pull request Oct 26, 2015
hetzner: Don't create /root/.ssh/authorized_keys.
@edolstra edolstra merged commit 13a1d27 into NixOS:master Oct 26, 2015
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.

2 participants