| 12 Dec 2023 |
greg | Doing a little bit of checking, the file stops working with rage 0.9.0. Works great with versions up through 0.8.1. I don't see any info from the rage folks about a breaking change | 05:27:37 |
greg | greg@jude ~/tmp main @ rage -V
rage 0.8.1
greg@jude ~/tmp main @ rage --decrypt -i ~/.ssh/id_rsa -o - /etc/nixos/secrets/linode-forgejo-runner.age
TOKEN=<redacted>
greg@jude ~/tmp main @ rage -V
rage 0.9.0
greg@jude ~/tmp main @ rage --decrypt -i ~/.ssh/id_rsa -o - /etc/nixos/secrets/linode-forgejo-runner.age
Error: Decryption failed
| 05:47:13 |
ryantm | I wonder how it does with age | 06:20:48 |
greg | I think that the build in nixpkgs has a problem. Trying to create a new file on the system where I have rage 0.9.2 gives me this message:
Unsupported SSH Key Type
------------------------
OpenSSH supports various different key types, but rage only supports a
subset of these for backwards compatibility, specifically the 'ssh-rsa'
and 'ssh-ed25519' key types. This SSH key uses the unsupported key type
'ssh-rsa'.
| 15:25:43 |
greg | Ah well, it's a good reason for me to upgrade all my keys to ed25519 anyway. | 17:38:16 |
uep | I was going to ask if it was something to do with key types, but.. uh.. that's a rather special message. | 22:41:53 |
uep | * I was going to ask if it was something to do with key types, but rsa should be fine and .. uh.. that's a rather special message. | 22:42:05 |
uep | there are several different file content formats for RSA keys, though, and perhaps that's the actual issue? | 22:43:10 |
uep | regardless, yeah, moving to ed25519 is a win | 22:43:30 |
| 15 Dec 2023 |
| lep joined the room. | 13:34:17 |
lep | does anyone have a full flake using agenix as an example? i'm missing something. the file is successfully decrypted and put under /run/agenix but i cannot use it via config.age.secrets... because nix complains that config as no attribute age | 13:44:16 |
ryantm | lep: there's sort of one here https://github.com/ryantm/agenix/blob/main/test%2Fintegration.nix#L13 | 13:49:17 |
tim | In reply to @lep-:matrix.org does anyone have a full flake using agenix as an example? i'm missing something. the file is successfully decrypted and put under /run/agenix but i cannot use it via config.age.secrets... because nix complains that config as no attribute age You probably want to load the overlay instead of calling callPackage in your system packages | 13:55:47 |
tim | Something like
```
nixpkgs = {
overlays = [
inputs.agenix.overlays.default
];
};
```
But then you also need to pass the input flake to that file with extraArgs or specialArgs | 13:58:25 |
lep | hmm, i think i'm lacking some basic nixos knowledge here. | 14:01:51 |
ryantm | Can you share your flake or a minimal repro? | 14:06:02 |
lep | yeah, im considering that | 14:06:10 |
tim | Reconsidering my previous statement, the overlay is for the package which you seem to have, you are probably not importing the module which makes the config option available | 14:07:43 |
lep | i will try to do a minimal example but it might take a while. thank you so far. | 14:09:00 |
lep | yeah ok, the minimal example works of course. so i have an error on my side somewhere. but i guess now i have an angle to work from. | 15:10:37 |
lep | because it seems to work in general | 15:10:53 |
| 16 Dec 2023 |
| zxfsee joined the room. | 22:34:30 |
| 20 Dec 2023 |
| Johannes changed their display name from l0zzy to Johannes. | 13:25:40 |
ryantm | https://github.com/ryantm/agenix/pull/230 any objections to switching back to the reference implementation age? | 21:22:36 |
ryantm | In reply to @ryantm:matrix.org https://github.com/ryantm/agenix/pull/230 any objections to switching back to the reference implementation age? Here's a good reason: apparently age doesn't build on Darwin https://github.com/ryantm/agenix/actions/runs/7280921838/job/19840358228?pr=230 | 21:28:37 |
| 21 Dec 2023 |
jeroen | just wanted to chime in on macos build failing :) | 12:01:57 |
jeroen | hence, no objection from me | 12:03:19 |
Ilan Joselevich (Kranzes) | Rage works for me but im not on macos or anything | 12:30:36 |
Ilan Joselevich (Kranzes) | In reply to @ryantm:matrix.org Here's a good reason: apparently age doesn't build on Darwin https://github.com/ryantm/agenix/actions/runs/7280921838/job/19840358228?pr=230 age or rage? | 12:31:39 |
jeroen | in my case, it's rage that doesn't build | 12:40:20 |