-
Notifications
You must be signed in to change notification settings - Fork 75
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
lacks a signature by a trusted key, when targetUser is other than root #210
Comments
This happens occasionally for me too. I've discovered that if I My suspicion is that it is caused by a version mismatch of something between the local machine and the remote - next time it happens I will attempt to isolate it. |
ya I have since moved all back to using root in this particular cluster. However, I'd be happy to lend a hand and test anything I can, or anything else I can to do to help hunt down the problem. |
I'm also having this issue. I've been getting by using --build-on-target, but I would like to figure out the root cause. If there's anything I can do to help diagnose this please let me know, because the errors basically mean nothing to me... |
I'm not (yet) using colmena, but the "because it lacks a signature by a trusted key" error happens when the closures are copied to the target nix store (can also be reproduced with Note that:
Alternatively you can sign the store paths with a private key that the target host trusts. But colmena can't do this automatically. See |
Generate key with For deploying the trusted public key, you may need to change the /etc/nix/nix.conf to add the content of public-key-file to |
This is more a workaround, or? I suppose that the |
I think it's the most appropriated way for what the nix is designed, the remote node should take security into consideration.
Hmmm I'm actually using another way, is to patch the colmena to have a |
colmena works great until one of my hosts has developed a "because it lacks a signature by a trusted key" error. (of note this randomly happens to one or more hosts using the alternate targetUser, but not all of them which is very inconsistent).
Performing a
colmena upload-keys
completes without error.How do I force that host to update its keys, or how do I debug as to what is going wrong?
WORKAROUND: I had been using an alternate targetUser, changing this back to root enabled this host to pass the tests. However, all of my other hosts are still using the alternate user, this does seem to be a bug of some sort.
The text was updated successfully, but these errors were encountered: