Sender | Message | Time |
---|---|---|
15 Sep 2024 | ||
Surely I'll not be the first one to do this. I have an existing setup of gpg keys, that I have backed up various places. I would like to use my gpg keys w/ agenix, in case I loose my ssh key. So, my thinking is to generate a age key, encrypt that with my gpg key, and place inside the repo. So in case I fuck something up, I can always decrypt it, and get access to my secrets. Does this sound 100% idiotic? Am I missing something? | 10:42:49 | |
* Surely I'll not be the first one to do this. I have an existing setup of gpg keys, that I have backed up various places. I would like to use my gpg keys w/ agenix, in case I lose my ssh key. So, my thinking is to generate a age key, encrypt that with my gpg key, and place inside the repo. So in case I fuck something up, I can always decrypt it, and get access to my secrets. Does this sound 100% idiotic? Am I missing something? | 10:45:51 | |
I don't think that sounds completely insane but also yuck | 10:46:19 | |
Perfect, that's just what I was going for. | 10:47:23 | |
I looked into using sops-nix, as I could use my gpg key there, but it feels very complex compared to what I need. agenix is just very very KISS in that regards. The only other thing I considered, was adding a age key to my yubikey, but then I would need to have N times age secrets to manage. | 10:48:31 | |
But granted, managing GPG keys is usually quite yuck. | 10:48:45 | |
In reply to @ryantm:matrix.orgI guess this would require you to touch the file first, maybe? | 12:16:04 | |
Because you can't edit a file, which does not exists. Or rather, when you do agenix -e somefile.age , it will try to find the file in the secrets.nix file, and THEN IF it is in there, you can edit it. Otherwise you get a "attribute missing" error. | 12:20:10 | |
16 Sep 2024 | ||
19:56:14 | ||
17 Sep 2024 | ||
02:46:19 | ||
hihihi, i am switching a ton of my stuff over to agenix. quick question though. How can I properly use a nix file as a secret. For instance. I have a wifi-passwords.nix, with declarations for each network and such. And I import it and such. But the thing is that I have to build my system, restart agenix. make sure the secret is there. and then uncomment the part referencing the secret. | 02:47:53 | |
hihihi, i am switching a ton of my stuff over to agenix. quick question though. How can I properly use a nix file as a secret. For instance. I have a wifi-passwords.nix, with declarations for each network and such. And I import it and such. But the thing is that I have to build my system, restart agenix. make sure the secret is there. and then uncomment the part referencing the secret. Is there a better way of doing this? | 02:48:00 | |
hihihi, i am switching a ton of my stuff over to agenix. quick question though. How can I properly use a nix file as a secret. For instance. I have a wifi-passwords.nix, with declarations for each network and such. And I import it and such. But the thing is that I have to build my system, restart agenix. make sure the secret is there. and then uncomment the part referencing the secret. Is there a better way of doing this? There are some options that just require an actual string. not a file. I'm doing the best I can :( | 02:48:47 | |
You could just use git-crypt or something for those | 04:53:37 | |
Since you're doing impure anyway | 04:53:41 | |
Or just gitignore the file | 04:53:45 | |
In reply to@k900:0upti.meyea I did that before, but then i have to copy around that nix file which is annoying, instead of having it in my dotfiles repo | 13:35:08 | |
In reply to@k900:0upti.mehaven't heard of git-crypt before. ty for the tip! | 13:35:27 | |
seems this exists too! https://github.com/vlaci/git-agecrypt | 13:36:42 | |
cool stuff | 13:36:43 | |
In reply to@titaniumtown:envs.netI'm gonna switch to this. ty for the suggestion @K900! | 13:41:53 | |
21:06:23 | ||
18 Sep 2024 | ||
07:19:12 | ||
Is it possible for agenix just to ignore files, when it doesn't have permission (the right keys) to decrypt them? I get this error chown: cannot access '/run/agenix.d/2/zrepl-chronos': No such file or directory | 16:44:56 | |
19 Sep 2024 | ||
01:52:26 | ||
02:02:29 | ||
06:28:11 | ||
20 Sep 2024 | ||
Cheers, how would you go about encrypting a binary file with agenix? | 19:45:54 | |
In reply to @madonius:entropia.de cat mywallpaper.jpg | agenix -e somefile.age | 19:49:38 | |
22 Sep 2024 | ||
09:51:31 |