!XLCFfvFhUkYwOMLbVx:nixos.org

agenix

359 Members
age-encrypted secrets for NixOS https://github.com/ryantm/agenix/91 Servers

Load older messages


SenderMessageTime
18 Dec 2022
@dasj19:matrix.orgdasj19

this is in the result:

  • echo 'DEBUG PASSWORDFILE'
    DEBUG PASSWORDFILE
  • cat /run/agenix/daniel-password
    $6$HgyUnbDcnnfRn4Ox$Ttzd6kxqrt2ZoutO.kfEXWzc4zCDCXYwHKN5X4NyB/scHOrWKoYbHQhuxtjI1tq8BRHn5Avxcgim5FHoNv90R1+ (( _localstatus > 0 ))
22:43:59
@dasj19:matrix.orgdasj19so the secret gets decrypted correctly but does not end in the /etc/shadow22:45:13
@dasj19:matrix.orgdasj19I am doing a system update and see if the issue persists22:47:08
@ryantm:matrix.orgryantmok, seems like everything is working...22:47:26
@dasj19:matrix.orgdasj19system update did not help, i'll try on another system tomorrow, can't think of anything else i can try22:51:14
@ryantm:matrix.orgryantmdasj19: aside from editing the perl script, me neither.22:51:37
@dasj19:matrix.orgdasj19ok, but you can confirm that the current way of doing it is the right approach22:52:44
@dasj19:matrix.orgdasj19thanks a lot for assistance, i have to go to bed soon22:53:58
@ryantm:matrix.orgryantmYes.22:58:49
@ryantm:matrix.orgryantmOf course I can't see your whole configuration files, so there might be something obviously bad lurking.22:59:13
19 Dec 2022
@lgcl:lgcl.delgcl (they/them) changed their profile picture.13:45:44
20 Dec 2022
@dasj19:matrix.orgdasj19 ryantm: I have spinned up a virtual machine with latest nixos unstable and followed the readme file present on the github project and I end up in the same situation. So it can't just be my old config that is wrong, it must be something I do or something in the unstable branch 22:14:05
21 Dec 2022
@gador:matrix.orggadorDid you try it without agenix and a plain test file with the password in it? Just to rule out an agenix problem here? 05:08:58
@ryantm:matrix.orgryantm ☝️dasj19 18:16:02
22 Dec 2022
@null_radix:matrix.orgnull_radix joined the room.08:48:08
@null_radix:matrix.orgnull_radixhello, I have a directory with 100+ files that each contain a secret. Is it possible just to encrypt the entire dir, instead of each individual file?08:49:28
@ryantm:matrix.orgryantm null_radix: you could first tar it the encrypt that 13:30:27
@ryantm:matrix.orgryantm* null_radix: you could first tar it then encrypt that13:30:44
@dasj19:matrix.orgdasj19 ryantm: I ended up deleting my user entry in /etc/shadow and then rebuilt, and everything looks normal now. Got inspired from: https://github.com/NixOS/nixpkgs/issues/99433 . So it wasnt a specific agenix issue but rather a issue with the user update script 13:59:43
@null_radix:matrix.orgnull_radix
In reply to @ryantm:matrix.org
null_radix: you could first tar it then encrypt that
how would you untar them? would you use system.activationScripts?
17:15:37
@null_radix:matrix.orgnull_radixits for a service so maybe a systemd service makes more sense17:16:03
@ryantm:matrix.orgryantm null_radix: yeah, either way. 17:25:56
24 Dec 2022
@dasj19:matrix.orgdasj19 Hi ryantm FYI, i just pulled together a solution for password updates via the perl script in NixOS https://github.com/NixOS/nixpkgs/pull/207593 17:34:16
25 Dec 2022
@ahsmha:matrix.orgahmed left the room.10:35:09
26 Dec 2022
@tommy:datenkollektiv.netTommy Hey there. That's possibly a stupid question but I'm kind of stuck here: I understand how the builtins.readFile is an anti-pattern but I nevertheless like to use agenix to encrypt my known wifi psk. What is the proper way to implement this since networking.wireless.networks.<name> only has a string option for the psk not an option to provide a file? 14:44:52
@ryantm:matrix.orgryantm Tommy: proper way might require fixing NixOS. 15:22:15
@tommy:datenkollektiv.netTommyMhmm. What does that mean? Implementing an option like `networking.wireless. networks.<name>.passwordFile`? And what are options not being proper and also not storing the passwords in the nix store?15:28:12
@ryantm:matrix.orgryantmRight 15:32:09
@ar:is-a.catari ❄ left the room.22:01:28
30 Dec 2022
@federicodschonborn:matrix.orgFederico Damián Schonborn joined the room.00:13:58

Show newer messages


Back to Room ListRoom Version: 6