New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: runtime error: invalid memory address or nil pointer dereference when using updatekeys #1505
Comments
Which version of sops are you using? |
3.8.1 from nixpkgs unstable, although I’ve checked with nixos-23.11 with the same sops version and nixos-23.05 which is version 3.7.3. Exactly the same results with each. |
The problem is probably that no config file was found. In that case, |
My .sops.yaml is further up the tree, but I haven’t had any trouble until trying to add a new key today. I can also still access secrets.yaml just not update the keys. |
Does |
Yes, with the ´path_regex’ pointing to ´secrets.yaml$’ and ´key_groups’ containing the age passwords for each corresponding key. I should not that what’s happened is that one of my machines died and I lost the private key so I’ve updated the age value of one of these entries. I don’t think this should be a problem, but just in case. |
Sorry about formatting, I’m currently on my phone |
Hmm, I checked all possible code paths, the only way I can produce the crash you have is if |
Wow, okay... yes there was an accidental Thanks for your help and your time. |
No worries! SOPS definitely shouldn't crash in that case. I've created #1506 which should fix that. It will tell you something like
|
Haha, wow, perfect! Thanks. Just to note, my error wasn't missing Thanks again. Your help is massively appreciated |
I am trying to update my secrets.yaml with a new set of keys for a different computer and when I run:
I get:
Just so you know, I've changed the path to the secrets.yaml to
/path-to-secret
.I'm not quite sure whats going on. Any chance of a hand 😄
The text was updated successfully, but these errors were encountered: