!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

334 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena117 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
18 Oct 2022
@linus:schreibt.jetztLinux Hackerman Shyim: only on the machine from which you're deploying 09:06:01
@shyim:matrix.orgShyimAHHH. cool09:06:43
@linus:schreibt.jetztLinux Hackermanbut I think I'll be switching to agenix or sops-nix at some point in the future, partly because this approach is colmena-specific and I'm not sure I want to stick with colmena09:06:57
@linus:schreibt.jetztLinux Hackermanand partly because the secrets are persisted unencrypted on the target machines' disks, which I'd also prefer not to do09:07:26
@shyim:matrix.orgShyimI currently join ssh and just do nixos-rebuild so. tbh: I don't care if it's in nix store. I just don't want to have them on Github publicly accessible as my nix files are public :D 09:08:14
@linus:schreibt.jetztLinux Hackermanboth agenix and sops-nix copy the encrypted secrets to the store as part of the system closure, and they're encrypted to a key that lies on the machine (often the SSH host key) to be decrypted only to a ramfs at runtime09:08:37
@linus:schreibt.jetztLinux Hackermanthen again, having both the encrypted secrets and the unencrypted SSH host key on disk isn't much different from having the unencrypted secrets on disk I guess09:09:27
@linus:schreibt.jetztLinux Hackermanthe next-level thing would be to add a TPM and measured boot into the setup, but I'm nowhere near getting there lol09:10:05
@v:meowy.tech@v:meowy.tech
In reply to @linus:schreibt.jetzt
then again, having both the encrypted secrets and the unencrypted SSH host key on disk isn't much different from having the unencrypted secrets on disk I guess
the various permissions on the file also matter, the nix store is world readable but the ssh host key probably isnt
09:10:16
@linus:schreibt.jetztLinux Hackermanright, but none of these approaches make the unencrypted secrets world-readable09:10:36
@linus:schreibt.jetztLinux Hackermanthat's definitely off the table for me ^^09:10:56
@v:meowy.tech@v:meowy.techMy setup with a hashicorp vault is probably overkill, but when set up it does work quite nicely I have to say09:11:40
@linus:schreibt.jetztLinux HackermanI kind of want to have something like that but I also don't want to set it up and maintain it x)09:12:05
@shyim:matrix.orgShyimI feel that too xD09:12:33
@shyim:matrix.orgShyimmore services more pain09:12:42

Show newer messages


Back to Room ListRoom Version: 6