| 13 Jan 2024 |
n3v3r_a9a1n | I'm currently using sops-nix for managing secrets And i've got a yubikey But i can't find any documentation for sops, so i started looking into other options What is like the best option to manage secrets on nixos with a yubikey? 😅 | 07:40:25 |
| 14 Jan 2024 |
Alok Parlikar | In reply to @xxxcrow:matrix.org I'm currently using sops-nix for managing secrets And i've got a yubikey But i can't find any documentation for sops, so i started looking into other options What is like the best option to manage secrets on nixos with a yubikey? 😅 I was using git-crypt with yubikey before, and just switched to sops-nix. | 16:03:13 |
n3v3r_a9a1n | In reply to @happyalu:matrix.org I was using git-crypt with yubikey before, and just switched to sops-nix. Is yubikey working for you right now? If yes, can you show me the way to do this, please, i can't find clues 💀 | 17:36:32 |
oddlama | Do you want to use your yubikey to decrypt on system activation, or do you want to use it to store encrypted secrets in your repository which are then rekeyed for the host before deploying? | 21:02:08 |
| @edgar.vincent:matrix.org left the room. | 22:34:50 |
| 15 Jan 2024 |
n3v3r_a9a1n | In reply to @oddlama:matrix.org Do you want to use your yubikey to decrypt on system activation, or do you want to use it to store encrypted secrets in your repository which are then rekeyed for the host before deploying? First! The second one i just don't understand 😅 | 02:31:47 |
Alok Parlikar | In reply to @xxxcrow:matrix.org Is yubikey working for you right now? If yes, can you show me the way to do this, please, i can't find clues 💀 I'm using gpg on my yubikey to encrypt secrets in the repo. sops-nix decrypts them at system activation. Yubikey is not (needeed to be) present during the activation. Not sure if that matches with what you are trying to do.
I found these resources helpful:
- create ECC based gpg key. https://illuad.fr/2020/10/06/build-an-openpgp-key-based-on-ecc.html
- add the key to yubikey. https://illuad.fr/2020/10/07/store-openpgp-keys-on-a-yubikey.html
After that I just followed the sops-nix readme to add my gpg key fingerprint to the .sops.yaml file.
| 04:52:19 |